diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/test/java/de/tealfire/BowlingTest.java b/src/test/java/de/tealfire/BowlingTest.java index 54f2680..724c946 100644 --- a/src/test/java/de/tealfire/BowlingTest.java +++ b/src/test/java/de/tealfire/BowlingTest.java @@ -1,11 +1,17 @@ package de.tealfire; +import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; public class BowlingTest { + private Bowling bowling; + @BeforeEach + public void setUp() { + bowling = new Bowling(); + } + @Test public void testScoreGutterGame() { - Bowling bowling = new Bowling(); for (int i = 0; i < 20; i++) { bowling.roll(0); } @@ -14,7 +20,6 @@ public class BowlingTest { @Test public void testScoreGameOfOnes() { - Bowling bowling = new Bowling(); for (int i = 0; i < 20; i++) { bowling.roll(1); }