Concept Flow - @DataJpaTest for repository testing
Start Test Class
@DataJpaTest Annotation
Spring Boot Loads In-Memory DB
Inject Repository Bean
Run Repository Methods
Verify Results
Test Ends
The test class annotated with @DataJpaTest loads an in-memory database and injects the repository to run and verify database operations.