Explorar el Código

Fixes #364 construct bob in setUp

Tyler Matthews hace 9 años
padre
commit
e255dd0d9c
Se han modificado 1 ficheros con 7 adiciones y 1 borrados
  1. 7
    1
      exercises/bob/src/test/java/BobTest.java

+ 7
- 1
exercises/bob/src/test/java/BobTest.java Ver fichero

@@ -1,12 +1,18 @@
1 1
 import org.junit.Test;
2 2
 import org.junit.Ignore;
3
+import org.junit.Before;
3 4
 
4 5
 import static org.junit.Assert.*;
5 6
 
6 7
 public class BobTest {
7
-    private final Bob bob = new Bob();
8
+    private Bob bob;
8 9
 
9 10
 
11
+    @Before
12
+    public void setUp() {
13
+        bob = new Bob();
14
+    }
15
+
10 16
     @Test
11 17
     public void saySomething() {
12 18
         assertEquals(