Commit a3463079 by Pengguohui

去掉多余的注释代码

parent 6969dc13
...@@ -16,13 +16,6 @@ public class TestWorldController extends FastApplicationTests { ...@@ -16,13 +16,6 @@ public class TestWorldController extends FastApplicationTests {
//验证controller是否正常响应并判断返回结果是否正确 //验证controller是否正常响应并判断返回结果是否正确
mvc.perform(MockMvcRequestBuilders.get("/world"). mvc.perform(MockMvcRequestBuilders.get("/world").
param("name", "1234").accept(MediaType.APPLICATION_JSON_UTF8_VALUE)).andExpect(MockMvcResultMatchers.status().isOk()).andExpect(MockMvcResultMatchers.content().string(("123"))); param("name", "1234").accept(MediaType.APPLICATION_JSON_UTF8_VALUE)).andExpect(MockMvcResultMatchers.status().isOk()).andExpect(MockMvcResultMatchers.content().string(("123")));
// Person person = new Person(1, "张三");
/* ObjectMapper mapper = new ObjectMapper();
ObjectWriter ow = mapper.writer().withDefaultPrettyPrinter();
String str = ow.writeValueAsString(person);
mvc.perform(MockMvcRequestBuilders.post("/saveHello").content(str).accept(MediaType.APPLICATION_JSON_VALUE)).andDo(MockMvcResultHandlers.print())
.andExpect(MockMvcResultMatchers.status().isOk()).andReturn();*/
//Assert.assertSame("企业数量有误",500,new Object());
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment