Commit 3178511e by hexy

提交测试

1 parent 9580b52c
...@@ -22,6 +22,7 @@ public class ShopMallMockMvcTestDemo { ...@@ -22,6 +22,7 @@ public class ShopMallMockMvcTestDemo {
@Test @Test
public void apiTest() { public void apiTest() {
try { try {
System.out.println(1);
MvcResult mvcResult = mockMvc.perform(MockMvcRequestBuilders.get("/hello")) MvcResult mvcResult = mockMvc.perform(MockMvcRequestBuilders.get("/hello"))
.andExpect(MockMvcResultMatchers.status().isOk()).andReturn(); .andExpect(MockMvcResultMatchers.status().isOk()).andReturn();
} catch (Exception e) { } catch (Exception e) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!