Skip to content

Instantly share code, notes, and snippets.

@jochil
Last active April 11, 2024 09:08
Show Gist options
  • Save jochil/b907e7505e4994a72249b8c456724d76 to your computer and use it in GitHub Desktop.
Save jochil/b907e7505e4994a72249b8c456724d76 to your computer and use it in GitHub Desktop.
@FuzzTest(maxDuration = "30s")
public void fuzzUserEndpoint(UserRequest userRequest, int userID) throws Exception {
mockMvc
.perform(
put("/user")
.contentType(MediaType.APPLICATION_JSON)
.content(userRequest.toString())
.param("id", userID))
.andExpect(statusIsNot5xxServerError());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment