79113462

Date: 2024-10-22 10:00:35
Score: 0.5
Natty:
Report link

You could check the status in the ResultHandler

mockMvc.perform(post("/xyz").contentType(...).content(...))
     .andDo(r -> { 
        if (r.getResponse().getStatus() != 200) {
            printResponse(r);
        }
    })
    .andExpect(status().isOk)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: sweintritt