Which two statements are true regarding @WebMvcTest? (Choose two.)
It auto-configures a MockMvc.
It will only scan for @Controller beans in the source code.
It is used for testing Spring MVC components such as @Controller with a running server.
Typically it is used in combination with @MockBean when there is a dependency bean to be mocked.
It is typically used with @ExtendWith(MockitoExtension.class) in JUnit 5.
Submit