|
@ -8,7 +8,8 @@ import org.junit.jupiter.api.Test; |
|
|
|
|
|
|
|
|
class GameLogicTest { |
|
|
class GameLogicTest { |
|
|
|
|
|
|
|
|
private GameLogic game = new GameLogic(); |
|
|
|
|
|
|
|
|
private int size = 3; |
|
|
|
|
|
private GameLogic game = new GameLogic(size); |
|
|
|
|
|
|
|
|
@BeforeAll |
|
|
@BeforeAll |
|
|
static void setUpBeforeClass() throws Exception { |
|
|
static void setUpBeforeClass() throws Exception { |
|
@ -21,7 +22,7 @@ class GameLogicTest { |
|
|
@Test |
|
|
@Test |
|
|
void createGameLogicTest() { |
|
|
void createGameLogicTest() { |
|
|
GameLogic expectedResult = game; |
|
|
GameLogic expectedResult = game; |
|
|
GameLogic realResult = new GameLogic(); |
|
|
|
|
|
|
|
|
GameLogic realResult = new GameLogic(size); |
|
|
|
|
|
|
|
|
assertEquals(expectedResult.getClass(), realResult.getClass()); |
|
|
assertEquals(expectedResult.getClass(), realResult.getClass()); |
|
|
} |
|
|
} |
|
|