In Spring Boot, which annotation is used for a general-purpose test where you want to test the integration of multiple Spring Boot features?
- @IntegrationTest
- @SpringBootIntegration
- @SpringBootTest
- @SpringTest
The @SpringBootTest annotation is used for general-purpose tests where you want to test the integration of multiple Spring Boot features. It loads the complete application context and is often used for end-to-end testing.
Loading...
Related Quiz
- The _____ property in Spring Boot is used to set the TTL (Time-To-Live) for cache entries.
- How does Spring Boot support reactive programming in conjunction with traditional MVC patterns?
- What is the main purpose of Auto Configuration in Spring Boot?
- Which Spring Security annotation is used to apply security constraints at the method level based on SpEL expressions?
- Suppose you are developing a Spring Boot application using Spring Data JPA and are experiencing performance issues due to the loading of a large dataset. How would you optimize the data loading to mitigate the performance issues?