To perform integration testing in Spring Boot, the _____ annotation is used to enable full application context loading.
- @ContextConfiguration
- @IntegrationTest
- @RunWith(SpringRunner.class)
- @SpringBootTest
In Spring Boot, to perform integration testing and enable full application context loading, you use the @SpringBootTest annotation. This annotation loads the entire Spring application context, making it suitable for integration testing scenarios.
Loading...
Related Quiz
- In which scenario would you use the @ConditionalOnProperty annotation in Auto Configuration?
- How can database query optimization improve the performance of a Spring Boot application interacting with a database?
- You are building a microservices architecture using Spring Cloud. How would you manage external configurations and secrets across different microservices?
- To apply data migration scripts in Spring Boot, you can use tools like _____ or _____.
- The @DataJpaTest annotation in Spring Boot is typically used to test _____.