For integration testing in Spring Boot, the _____ annotation is used to specify that only certain parts or layers of the application should be loaded.

  • @ContextConfiguration
  • @IntegrationTest
  • @SpringBootTest
  • @WebMvcTest
In Spring Boot, to load only the web layer of an application during integration tests, you can use the @WebMvcTest annotation. It narrows down the scope of the context loaded for testing to just the web-related components.
Add your answer
Loading...

Leave a comment

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