Spring Boot: How to Deal With That Nasty 415 Response Code When Running MockMvc Unit Tests If you're stumped about how to deal with a 415 response code from your Spring Boot unit tests, you've come to the right place.
Spring Boot: How to Test the Web Layer with MockMvc Automated unit tests will save you from a world of heartache. Fortunately, you can easily implement Spring Boot web layer tests with MockMvc.