some code samples, various examples of simple modeling ideas and some minor algorithms.

12345678910111213141516171819202122232425262728293031323334
  1. import org.junit.Assert;
  2. import org.junit.After;
  3. import org.junit.Before;
  4. import org.junit.Test;
  5. /**
  6. * The test class ScrabbleTest.
  7. *
  8. * @author (your name)
  9. * @version (a version number or a date)
  10. */
  11. public class ScrabbleTest
  12. {
  13. @Test
  14. public void scrabbleTest1(){
  15. Scrabble scrabble = new Scrabble();
  16. int actual = scrabble.score("buzz");
  17. int expected = 24;
  18. Assert.assertEquals(actual,expected);
  19. }
  20. @Test
  21. public void scrabbleTest2(){
  22. Scrabble scrabble = new Scrabble();
  23. int actual = scrabble.score("scrabble");
  24. int expected = 14;
  25. Assert.assertEquals(actual,expected);
  26. }
  27. }