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.
Add your answer
Loading...

Leave a comment

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