Last active
March 9, 2021 11:42
-
-
Save renato04/bf00ea9b681ca422cde1e08cde0483a3 to your computer and use it in GitHub Desktop.
Assert Example MockMvc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.mockMvc.perform(get("/test")) | |
.andExpect(content().contentType(MediaType.APPLICATION_JSON)) | |
.andExpect(status().isOk()) | |
.andExpect(jsonPath("$.value", is("Olá!"))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment