|
@ -34,6 +34,7 @@ class LogicTest { |
|
|
int column = 0; |
|
|
int column = 0; |
|
|
int player = 1; |
|
|
int player = 1; |
|
|
int expectedResult = 0; |
|
|
int expectedResult = 0; |
|
|
|
|
|
testObj.create4gewinntGui(); |
|
|
int realResult = testObj.playChip(playfield, column, player); |
|
|
int realResult = testObj.playChip(playfield, column, player); |
|
|
|
|
|
|
|
|
assertEquals(expectedResult, realResult); |
|
|
assertEquals(expectedResult, realResult); |
|
@ -46,6 +47,7 @@ class LogicTest { |
|
|
int player = 1; |
|
|
int player = 1; |
|
|
int expectedResult = 2; |
|
|
int expectedResult = 2; |
|
|
|
|
|
|
|
|
|
|
|
testObj.create4gewinntGui(); |
|
|
testObj.playChip(playfield, column, player); |
|
|
testObj.playChip(playfield, column, player); |
|
|
int realResult = testObj.currentPlayer; |
|
|
int realResult = testObj.currentPlayer; |
|
|
|
|
|
|
|
@ -59,6 +61,7 @@ class LogicTest { |
|
|
int player = 2; |
|
|
int player = 2; |
|
|
int expectedResult = 1; |
|
|
int expectedResult = 1; |
|
|
|
|
|
|
|
|
|
|
|
testObj.create4gewinntGui(); |
|
|
testObj.playChip(playfield, column, player); |
|
|
testObj.playChip(playfield, column, player); |
|
|
int realResult = testObj.currentPlayer; |
|
|
int realResult = testObj.currentPlayer; |
|
|
|
|
|
|
|
|