gs-testing-web icon indicating copy to clipboard operation
gs-testing-web copied to clipboard

Mention solution to common pitfall in "Testing the Web Layer"

Open rehevkor5 opened this issue 3 years ago • 3 comments

Add explanation to https://spring.io/guides/gs/testing-web/ about the causes of HttpMediaTypeNotAcceptableException or HttpMessageNotWritableException when using @SpringBootTest with @AutoConfigureMockMvc, and what to do about it (probably just adding @AutoConfigureWebMvc).

This was suggested in https://github.com/spring-projects/spring-boot/issues/24000#issuecomment-943134815

rehevkor5 avatar Oct 18 '21 22:10 rehevkor5

To encourage the community to get involved, I'll add the help wanted label. It's also a pretty straightforward addition, so I'll also add the good first issue label.

Buzzardo avatar Oct 18 '23 20:10 Buzzardo

Hi I would like to work on this one!

manumafe98 avatar Jan 06 '24 22:01 manumafe98

You don't need to tell us that you want to work on it. To quote a certain shoe company, "Just do it!" Then make a pull request to this repository. Thanks. :)

Buzzardo avatar Jan 08 '24 14:01 Buzzardo