|
|
@ -35,5 +35,15 @@ class BoardTest { |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@SuppressWarnings("AssertBetweenInconvertibleTypes") |
|
|
|
@Test |
|
|
|
void testEquals() { |
|
|
|
assertNotEquals(board, "Test"); |
|
|
|
Board secondBoard = new Board(); |
|
|
|
assertEquals(board, secondBoard); |
|
|
|
secondBoard.getStates()[0] = Board.State.CROSS; |
|
|
|
assertNotEquals(board, secondBoard); |
|
|
|
board.getStates()[0] = Board.State.CROSS; |
|
|
|
assertEquals(board, secondBoard); |
|
|
|
} |
|
|
|
} |