|
@ -6,14 +6,22 @@ import org.junit.jupiter.api.BeforeEach; |
|
|
import org.junit.jupiter.api.Test; |
|
|
import org.junit.jupiter.api.Test; |
|
|
|
|
|
|
|
|
class LogicTest { |
|
|
class LogicTest { |
|
|
|
|
|
|
|
|
|
|
|
private Logic testObj; |
|
|
|
|
|
|
|
|
@BeforeEach |
|
|
@BeforeEach |
|
|
void setUp() throws Exception { |
|
|
void setUp() throws Exception { |
|
|
|
|
|
testObj = new Logic(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Test |
|
|
@Test |
|
|
void test() { |
|
|
|
|
|
fail("Not yet implemented"); |
|
|
|
|
|
|
|
|
void testForWinTest() { |
|
|
|
|
|
int[][] testField = new int[6][6]; |
|
|
|
|
|
boolean expectedResult = false; |
|
|
|
|
|
|
|
|
|
|
|
boolean realResult = testObj.testForWin(testField, 1); |
|
|
|
|
|
|
|
|
|
|
|
assertEquals(expectedResult, realResult); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |