Esempio n. 1
0
 /** Tests the equality with the same Game set (the Game does not contains any Hit). */
 @Test
 public void testEqualityWithSameGame() {
   games1.getGame().add(JUnitTestConstants.getFilledGame());
   games2.getGame().add(JUnitTestConstants.getFilledGame());
   assertEquals(games1, games2);
   assertEquals(games1, games1);
   assertEquals(games2, games1);
   assertEquals(games2, games2);
 }
Esempio n. 2
0
 /** Tests the equality with the same Game set (the Game does not contains any Hit). */
 @Test
 public void testGamesNotEqual01() {
   Game game1 = JUnitTestConstants.getFilledGame();
   Game game2 = JUnitTestConstants.getFilledGame();
   game2.setBlack("otherBlackValue");
   games1.getGame().add(game1);
   games2.getGame().add(game2);
   assertNotSame(games1, games2);
   assertNotSame(games2, games1);
 }
Esempio n. 3
0
 /** Tests the equality with the same Game set (the Game does not contains any Hit). */
 @Test
 public void testEqualityWithSameGameAndHits() {
   Game game1 = JUnitTestConstants.getFilledGame();
   Game game2 = JUnitTestConstants.getFilledGame();
   game1.setHits(JUnitTestConstants.getFilledHits());
   game2.setHits(JUnitTestConstants.getFilledHits());
   games1.getGame().add(game1);
   games2.getGame().add(game2);
   assertEquals(games1, games2);
   assertEquals(games1, games1);
   assertEquals(games2, games1);
   assertEquals(games2, games2);
 }