/** * Tests the delete method, by deleting a gem and checking if it has disappeared and if the other * gems are on the right place. */ @Test public final void testDelete() { board = new Board(3, 0, 0, false); gems = board.getGems(); gems[0][0].setType(1); gems[1][0].setType(1); Gem gem1 = gems[0][0]; Gem gem2 = gems[1][0]; board.delete(2, 0); assertEquals(gems[2][0], gem2); assertEquals(gems[1][0], gem1); }