Advertisement
Guest User

Untitled

a guest
Mar 31st, 2020
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.64 KB | None | 0 0
  1. mockMvc.perform(request)
  2.     .andExpect(MockMvcResultMatchers.status().isOk())
  3.     .andExpect(MockMvcResultMatchers.jsonPath("$.result.errors").isEmpty())
  4.     .andExpect(MockMvcResultMatchers.jsonPath("$.result.countryCode").value("SE"))
  5.     .andExpect(MockMvcResultMatchers.jsonPath("$.result.bicCode").value("SWEDSESSXXX"))
  6.     .andExpect(MockMvcResultMatchers.content().json("{\n" +
  7.         "  \"jsonrpc\": \"2.0\",\n" +
  8.         "  \"id\": \"1\",\n" +
  9.         "  \"result\": {\n" +
  10.         "    \"errors\": [],\n" +
  11.         "    \"countryCode\": \"SE\",\n" +
  12.         "    \"bicCode\": \"SWEDSESSXXX\"\n" +
  13.         "  }\n" +
  14.         "}"));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement