-
Notifications
You must be signed in to change notification settings - Fork 131
Open
Labels
Description
Description
I'd like to test that my exceptions and handled correctly and application/problem+json response is returned.
For that, I write tests annotated with @WebMvcTest.
Expected Behavior
Auto-configurations from org.zalando:problem-spring-web-autoconfigure are included in the test context.
Actual Behavior
Auto-configurations from org.zalando:problem-spring-web-autoconfigure are NOT included in the test context.
Possible Fix
Copy content of META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports into:
META-INF/spring/org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureWebMvc.imports- to support@WebMvcTestMETA-INF/spring/org.springframework.boot.test.autoconfigure.web.reactive.AutoConfigureWebFlux.imports- to support@WebFluxTest
msdousti24 and laskovenko