When performing integration testing in Spring Boot, which of the following is used to load only specific slices of the application?

  • @AutoConfigureMockMvc
  • @DataJpaTest
  • @SpringBootTest
  • @WebMvcTest
The @WebMvcTest annotation is used to load only specific slices of the application, typically focused on testing web controllers and related components in a Spring Boot application.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *