|
|
@ -56,7 +56,7 @@ class LogicTest { |
|
|
|
testObj.setCurrentPlayer(player); |
|
|
|
testObj.playChip(column); |
|
|
|
|
|
|
|
int realResult = testObj.currentPlayer; |
|
|
|
int realResult = testObj.getCurrentPlayer(); |
|
|
|
|
|
|
|
assertEquals(expectedResult, realResult); |
|
|
|
} |
|
|
@ -70,7 +70,7 @@ class LogicTest { |
|
|
|
testObj.setCurrentPlayer(player); |
|
|
|
testObj.playChip(column); |
|
|
|
|
|
|
|
int realResult = testObj.currentPlayer; |
|
|
|
int realResult = testObj.getCurrentPlayer(); |
|
|
|
|
|
|
|
assertEquals(expectedResult, realResult); |
|
|
|
} |
|
|
@ -97,7 +97,7 @@ class LogicTest { |
|
|
|
|
|
|
|
testObj.setField(player, row, column); |
|
|
|
|
|
|
|
assertEquals(1, testObj.board[row][column]); |
|
|
|
assertEquals(1, testObj.getField(row, column)); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
@ -108,7 +108,7 @@ class LogicTest { |
|
|
|
|
|
|
|
testObj.setField(player, row, column); |
|
|
|
|
|
|
|
assertEquals(player, testObj.board[row][column]); |
|
|
|
assertEquals(player, testObj.getField(row, column)); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
@ -129,7 +129,7 @@ class LogicTest { |
|
|
|
|
|
|
|
testObj.setCurrentPlayer(player); |
|
|
|
|
|
|
|
assertEquals(player, testObj.currentPlayer); |
|
|
|
assertEquals(player, testObj.getCurrentPlayer()); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
@ -147,7 +147,7 @@ class LogicTest { |
|
|
|
int expectedResult = 500; |
|
|
|
testObj.setPlayer1Score(expectedResult); |
|
|
|
|
|
|
|
assertEquals(expectedResult, testObj.player1Score); |
|
|
|
assertEquals(expectedResult, testObj.getPlayer1Score()); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|