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