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.
Asked: 2021-11-15 11:00:00 +0000
Seen: 11 times
Last updated: Feb 24 '23