|
@@ -1,7 +1,9 @@
|
1
|
1
|
package io.zipcoder.crudapp;
|
2
|
2
|
|
|
3
|
+import org.junit.Assert;
|
3
|
4
|
import org.junit.Test;
|
4
|
5
|
import org.junit.runner.RunWith;
|
|
6
|
+import org.springframework.beans.factory.annotation.Autowired;
|
5
|
7
|
import org.springframework.boot.test.context.SpringBootTest;
|
6
|
8
|
import org.springframework.test.context.junit4.SpringRunner;
|
7
|
9
|
|
|
@@ -9,8 +11,12 @@ import org.springframework.test.context.junit4.SpringRunner;
|
9
|
11
|
@SpringBootTest
|
10
|
12
|
public class CRUDApplicationTests {
|
11
|
13
|
|
|
14
|
+ @Autowired
|
|
15
|
+ PersonController personController;
|
|
16
|
+
|
12
|
17
|
@Test
|
13
|
18
|
public void contextLoads() {
|
|
19
|
+ Assert.assertNotNull(personController);
|
14
|
20
|
}
|
15
|
21
|
|
16
|
22
|
}
|