Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- why I get blank in outputResult ? when I test with swagger UI , I get output for the same input.
- Is this code wrong to get response output ?
- MvcResult result = mvc.perform( MockMvcRequestBuilders
- .post("/api")
- .content(inputJsonContent)
- .contentType(MediaType.APPLICATION_JSON)
- .accept(MediaType.APPLICATION_JSON))
- .andExpect(status().isOk())
- .andReturn();
- String outputResult= result.getResponse().getContentAsString();
- System.out.println("outputResult="+ outputResult);
Add Comment
Please, Sign In to add comment