|
@ -169,9 +169,10 @@ class LogicTest { |
|
|
assertEquals(expectedResult.getClass(), realResult.getClass()); |
|
|
assertEquals(expectedResult.getClass(), realResult.getClass()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
void getBoardSize() { |
|
|
|
|
|
int expectedResult = 6; |
|
|
|
|
|
|
|
|
@ParameterizedTest(name = "[{index}] size {0}") |
|
|
|
|
|
@MethodSource("boardSizeParameters") |
|
|
|
|
|
void getBoardSize(String testName, int size) { |
|
|
|
|
|
int expectedResult = size; |
|
|
int realResult = testObj.getBoardSize(); |
|
|
int realResult = testObj.getBoardSize(); |
|
|
|
|
|
|
|
|
assertEquals(expectedResult, realResult); |
|
|
assertEquals(expectedResult, realResult); |
|
@ -265,5 +266,11 @@ class LogicTest { |
|
|
Arguments.of("fullyFilled", playfield6, 2580) |
|
|
Arguments.of("fullyFilled", playfield6, 2580) |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private static Stream<Arguments> boardSizeParameters() { |
|
|
|
|
|
return Stream.of( |
|
|
|
|
|
Arguments.of("board with size 0", 0) |
|
|
|
|
|
); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |