Browse Source

tictactoe: added class for gamelogic

tictactoe
Malte Schellhardt 2 years ago
committed by Lorenz Hohmann
parent
commit
4e743e694e
  1. 5
      src/main/java/de/tims/tictactoe/GameLogic.java
  2. 29
      src/test/java/de/tims/tictactoe/GameLogicTest.java

5
src/main/java/de/tims/tictactoe/GameLogic.java

@ -0,0 +1,5 @@
package de.tims.tictactoe;
public class GameLogic {
}

29
src/test/java/de/tims/tictactoe/GameLogicTest.java

@ -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());
}
}
Loading…
Cancel
Save