|
classMap.forEach((entityType, |
I would suggest to rewrite test here if you want to properly check all entities.
import org.assertj.core.api.SoftAssertions;
// when //then
var softly = new SoftAssertions();
classMap.forEach((entityType, expectedCount) ->
softly.assertThat(em.createQuery("from " + entityType.getSimpleName())
.getResultList())
.hasSize(expectedCount));
softly.assertAll();
java-backend-developer-app/src/test/java/com/capgemini/training/appointmentbooking/dataaccess/entity/EntitySmokeIT.java
Line 32 in d9a72dd
I would suggest to rewrite test here if you want to properly check all entities.