It is possible to send a request body to an integration testing method in Spring Boot JUnit using various methods such as MockMvc or RestAssured. The issue might not be related to objectMapper.writeValueAsString but could be related to other factors such as incorrect request mapping, incorrect data type, insufficient authorization, or incorrect configuration of the test environment.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2021-11-15 11:00:00 +0000
Seen: 11 times
Last updated: Feb 24 '23