From 4e743e694e30bb8a742989bebe352155fdf2676c Mon Sep 17 00:00:00 2001 From: Malte Schellhardt Date: Sun, 30 Jan 2022 13:26:44 +0100 Subject: [PATCH] tictactoe: added class for gamelogic --- .../java/de/tims/tictactoe/GameLogic.java | 5 ++++ .../java/de/tims/tictactoe/GameLogicTest.java | 29 +++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 src/main/java/de/tims/tictactoe/GameLogic.java create mode 100644 src/test/java/de/tims/tictactoe/GameLogicTest.java diff --git a/src/main/java/de/tims/tictactoe/GameLogic.java b/src/main/java/de/tims/tictactoe/GameLogic.java new file mode 100644 index 0000000..5980f54 --- /dev/null +++ b/src/main/java/de/tims/tictactoe/GameLogic.java @@ -0,0 +1,5 @@ +package de.tims.tictactoe; + +public class GameLogic { + +} diff --git a/src/test/java/de/tims/tictactoe/GameLogicTest.java b/src/test/java/de/tims/tictactoe/GameLogicTest.java new file mode 100644 index 0000000..a33d7bb --- /dev/null +++ b/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()); + } + +}