|
|
@ -0,0 +1,29 @@ |
|
|
|
package de.tims.tictactoe; |
|
|
|
|
|
|
|
import static org.junit.jupiter.api.Assertions.*; |
|
|
|
|
|
|
|
import org.junit.jupiter.api.BeforeAll; |
|
|
|
import org.junit.jupiter.api.BeforeEach; |
|
|
|
import org.junit.jupiter.api.Test; |
|
|
|
|
|
|
|
class GameLogicTest { |
|
|
|
|
|
|
|
private GameLogic game = new GameLogic(); |
|
|
|
|
|
|
|
@BeforeAll |
|
|
|
static void setUpBeforeClass() throws Exception { |
|
|
|
} |
|
|
|
|
|
|
|
@BeforeEach |
|
|
|
void setUp() throws Exception { |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
void createGameLogicTest() { |
|
|
|
GameLogic expectedResult = game; |
|
|
|
GameLogic realResult = new GameLogic(); |
|
|
|
|
|
|
|
assertEquals(expectedResult.getClass(), realResult.getClass()); |
|
|
|
} |
|
|
|
|
|
|
|
} |