I am looking for a feature that is similar to what @WebMvcTest
does.
What @WebMvcTest
does .
1. only instantiating the web layer, not the whole context
2. Only works with Spring Boot
application (as it is in the package - org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest).
What I want to achieve
Write unit test case on Controller only instantiating the web layer, not the whole context on Spring MVC application (not Spring Boot application)?
Is there a way to achieve that?