simulate a pair of dice.

123456789101112131415161718192021222324252627282930
  1. import static org.junit.Assert.*;
  2. import org.junit.After;
  3. import org.junit.Before;
  4. import org.junit.Test;
  5. /**
  6. * The test class DiceTest.
  7. *
  8. * @author (your name)
  9. * @version (a version number or a date)
  10. */
  11. public class DiceTest
  12. {
  13. @Before
  14. public void setUp()
  15. {
  16. Dice dice = new Dice();
  17. Dice dice1 = new Dice();
  18. }
  19. @Test
  20. public void testOf1()
  21. {
  22. Assert.assertEquals(dice);
  23. Assert.assertEquals(dice1);
  24. }
  25. }