Skip to content
Snippets Groups Projects
Commit c490e9f0 authored by l13f04751's avatar l13f04751
Browse files

general Test-Class configured

parent 40e60359
Branches
No related tags found
No related merge requests found
...@@ -3,5 +3,6 @@ ...@@ -3,5 +3,6 @@
<classpathentry kind="src" path="src"/> <classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="test"/> <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.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"/> <classpathentry kind="output" path="bin"/>
</classpath> </classpath>
...@@ -9,12 +9,14 @@ import static org.junit.Assert.*; ...@@ -9,12 +9,14 @@ import static org.junit.Assert.*;
*/ */
public class TicTacToeTest { public class TicTacToeTest {
private static TicTacToe ttt;
/** /**
* @throws java.lang.Exception * @throws java.lang.Exception
*/ */
@BeforeClass @BeforeClass
public static void SetUpBeforeClass() throws Exception { public static void SetUpBeforeClass() throws Exception {
ttt = new TicTacToe(new TicTacToeApp());
} }
/** /**
...@@ -22,7 +24,7 @@ public class TicTacToeTest { ...@@ -22,7 +24,7 @@ public class TicTacToeTest {
*/ */
@AfterClass @AfterClass
public static void tearDownAfterClass() throws Exception { public static void tearDownAfterClass() throws Exception {
ttt = null;
} }
/** /**
...@@ -30,7 +32,7 @@ public class TicTacToeTest { ...@@ -30,7 +32,7 @@ public class TicTacToeTest {
*/ */
@Before @Before
public void setUp() throws Exception { public void setUp() throws Exception {
ttt.resetSpiel();
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment