When testing Spring Boot repositories, the _____ annotation can be used to test only the slice of the application related to data access.

  • @DataRepository
  • @DataSlice
  • @DataTest
  • @RepositoryTest
When testing Spring Boot repositories, you can use the @DataTest annotation to test only the slice of the application related to data access. This annotation loads only the necessary components for data access testing, making the tests more focused and efficient.
Add your answer
Loading...

Leave a comment

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