|
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();