Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.