python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
spring mock mvc perform post request body is missing : error 400
I try to mock a mvc request for testing end to end my controller in spring.
The post request needs a request body but I get an error 400 telling me that required request body is missing even though I ...

eln
Votes: 0
Answers: 3
How can I test gzip with mockMvc?
I'm testing spring boot compression property:
server.compression.enabled=true
I would like to validate that after sending a request with a header "Accept-Encoding":"gzip",
I would ...
Evandro
Votes: 0
Answers: 0
MockMvc SpringBoot integration tests passing individually but failing when running consecutively? (DataIntegrityViolation)
I have developed integration tests using MockMvc to send requests to the API server.
When I run each test individually they pass, but if I run the entire test class, the first passes and the rest fail...
devo9191
Votes: 0
Answers: 1
@RequestBody List<MultipartFile> documents integration test
I can't figure out why my List documents is always null
That's Controller code
@PostMapping(value = "/{documentType}/list", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
public Respons...

Alexander Kukhtin
Votes: 0
Answers: 1