Testing Spring

Which of these annotations need to be used along with the given annotation to inject a MockMvc instance for testing a spring app?

@SpringBootTest

Options
  1. @WebMvcTest
  2. @MockMvcTest
  3. @ConfigureWebMockMvc
  4. @AutoConfigureMockMvc
  5. None of the above

Related Posts

Close Bitnami banner
Bitnami