Last active
April 11, 2024 09:08
-
-
Save jochil/b907e7505e4994a72249b8c456724d76 to your computer and use it in GitHub Desktop.
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
@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