Esempio n. 1
0
 /**
  * Tests the setSecondGem and getSecondGem methods, by first setting a Gem on second and then
  * checking with getSecondGem if it was second.
  */
 @Test
 public final void secondGemTest() {
   board = new Board(2, 0, 0, false);
   gems = board.getGems();
   Gem gem = gems[0][0];
   assertNull(board.getSecondGem());
   board.setSecondGem(gem);
   assertEquals(board.getSecondGem(), gem);
 }