123456789101112131415161718192021222324252627282930313233343536 |
-
-
- import static org.junit.Assert.*;
- import org.junit.After;
- import org.junit.Before;
- import org.junit.Test;
-
- /**
- * The test class ScrabbleTest.
- *
- * @author (your name)
- * @version (a version number or a date)
- */
- public class ScrabbleTest
- {
- /**
- * Default constructor for test class ScrabbleTest
- */
-
- Scrabble rabble = new Scrabble();
- @Test
- public void ScoreTest(){
- //given:
- String word = "Zoo";
-
- //then:
- int expected = 12;
- int actual = rabble.score(word);
-
- //assert:
- assertEquals(expected,actual);
- }
- }
-
-
|