|
@@ -0,0 +1,27 @@
|
|
|
+package fcb.project.manager;
|
|
|
+
|
|
|
+import lombok.SneakyThrows;
|
|
|
+import org.junit.Assert;
|
|
|
+import org.junit.Test;
|
|
|
+import org.junit.runner.RunWith;
|
|
|
+import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
|
|
|
+import org.springframework.boot.test.context.SpringBootTest;
|
|
|
+import org.springframework.test.context.junit4.SpringRunner;
|
|
|
+
|
|
|
+@RunWith(SpringRunner.class)
|
|
|
+@SpringBootTest(classes = FcbProjectManagerApplication.class)
|
|
|
+@AutoConfigureMockMvc
|
|
|
+public class TestController {
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 单元测试
|
|
|
+ */
|
|
|
+ @Test
|
|
|
+ @SneakyThrows
|
|
|
+ public void test() {
|
|
|
+ String a = null;
|
|
|
+ Assert.assertTrue("a为空",a != null);
|
|
|
+ }
|
|
|
+
|
|
|
+}
|