|
@ -226,6 +226,16 @@ class LogicTest { |
|
|
assertEquals(testObj.getBoardSize() - 3, testObj.getFreePlace(0)); |
|
|
assertEquals(testObj.getBoardSize() - 3, testObj.getFreePlace(0)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
void checkButtonsTest() { |
|
|
|
|
|
testObj.create4gewinntGui(); |
|
|
|
|
|
boolean expectedResult = true; |
|
|
|
|
|
|
|
|
|
|
|
boolean realResult = testObj.checkButtons(); |
|
|
|
|
|
|
|
|
|
|
|
assertEquals(expectedResult, realResult); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
private static Stream<Arguments> playfieldResults() { |
|
|
private static Stream<Arguments> playfieldResults() { |
|
|
int[][] playfield1 = {{0, 0, 0, 0, 0, 0}, |
|
|
int[][] playfield1 = {{0, 0, 0, 0, 0, 0}, |
|
|
{0, 0, 0, 0, 0, 0}, |
|
|
{0, 0, 0, 0, 0, 0}, |
|
|