diff --git a/Praktikum/VINF_TicTacToe/.classpath b/Praktikum/VINF_TicTacToe/.classpath index a391d07e4a752822b28386d466ffbce147e6fd45..1e3a3d403b85196c91410e2797c1acf623e1157f 100644 --- a/Praktikum/VINF_TicTacToe/.classpath +++ b/Praktikum/VINF_TicTacToe/.classpath @@ -3,5 +3,6 @@ <classpathentry kind="src" path="src"/> <classpathentry kind="src" path="test"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/> + <classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/> <classpathentry kind="output" path="bin"/> </classpath> diff --git a/Praktikum/VINF_TicTacToe/test/tictactoePraktikum/TicTacToeTest.java b/Praktikum/VINF_TicTacToe/test/tictactoePraktikum/TicTacToeTest.java index 04a03b84eebda6e0c24d5d5910dbf93de8aad31b..c50cfab4b5726d307388181c082a5d2b72a13b80 100644 --- a/Praktikum/VINF_TicTacToe/test/tictactoePraktikum/TicTacToeTest.java +++ b/Praktikum/VINF_TicTacToe/test/tictactoePraktikum/TicTacToeTest.java @@ -9,12 +9,14 @@ import static org.junit.Assert.*; */ public class TicTacToeTest { + private static TicTacToe ttt; + /** * @throws java.lang.Exception */ @BeforeClass public static void SetUpBeforeClass() throws Exception { - + ttt = new TicTacToe(new TicTacToeApp()); } /** @@ -22,7 +24,7 @@ public class TicTacToeTest { */ @AfterClass public static void tearDownAfterClass() throws Exception { - + ttt = null; } /** @@ -30,7 +32,7 @@ public class TicTacToeTest { */ @Before public void setUp() throws Exception { - + ttt.resetSpiel(); } /**