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 { Scrabble scrabble; /** * Default constructor for test class ScrabbleTest */ public ScrabbleTest() { } /** * Sets up the test fixture. * * Called before every test case method. */ @Before public void setUp() { scrabble = new Scrabble(); } @Test public void scrabbleTest1() { assertEquals(9,scrabble.score("snake")); } @Test public void scrabbleTest2() { assertEquals(11,scrabble.score("mamba")); } @Test public void scrabbleTest3() { assertEquals(22,scrabble.score("Quiz")); } /** * Tears down the test fixture. * * Called after every test case method. */ @After public void tearDown() { } }