Spring Boot offers a convenient way of writing test classes to run Spring Data JPA transactions.
Creating tests for Spring Data JPA
Getting ready
Open the Spring Boot ch09-flux project and add the following test classes for Spring Data JPA repository transactions.
How to do it...
Perform the following steps in creating test cases for Spring Data JPA repository layer:
- Just like in the previous recipe, add the required Spring Test starter POM dependency in the project's pom.xml file.
- Inside src/test/java, create an org.packt.spring.boot.test package and add inside...