|
|
@ -16,7 +16,7 @@ class LogicTest { |
|
|
|
|
|
|
|
@BeforeEach |
|
|
|
void setUp() throws Exception { |
|
|
|
testObj = new Logic(); |
|
|
|
testObj = new Logic(6); |
|
|
|
} |
|
|
|
|
|
|
|
@ParameterizedTest(name = "[{index}] {0} Player {2} {3}") |
|
|
@ -160,6 +160,15 @@ class LogicTest { |
|
|
|
assertEquals(expectedResult, realResult); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
void createGameLogicTest() { |
|
|
|
int size = 6; |
|
|
|
Logic expectedResult = testObj; |
|
|
|
Logic realResult = new Logic(size); |
|
|
|
|
|
|
|
assertEquals(expectedResult.getClass(), realResult.getClass()); |
|
|
|
} |
|
|
|
|
|
|
|
private static Stream<Arguments> playfieldResults() { |
|
|
|
int[][] playfield1 = {{0, 0, 0, 0, 0, 0}, |
|
|
|
{0, 0, 0, 0, 0, 0}, |
|
|
|