12345678910111213141516171819202122232425262728293031 |
- import static org.junit.Assert.*;
- import org.junit.After;
- import org.junit.Before;
- import org.junit.Test;
-
- public class ScrabbleTest
- {
- /**
- * Default constructor for test class ScrabbleTest
- */
- public ScrabbleTest()
- {
- }
- Scrabble scrabble = new Scrabble();
- @Test
- public void word()
- {
- String word = "word";
- int expected = 8;
- assertEquals(scrabble.score(word), 8);
- }
- @Test
- public void wordInCaps()
- {
- String word = "WORD";
- int expected = 8;
- assertEquals(scrabble.score(word), 8);
- }
-
- }
|