add @test verifyMembershipsActuallyPersisted

This commit is contained in:
Michael Hoennig 2024-08-03 19:13:41 +02:00
parent b41dce5c6c
commit cebba7fe24

View File

@ -693,6 +693,13 @@ public class ImportOfficeData extends CsvDataImport {
} }
@Test
@Order(9190)
void verifyMembershipsActuallyPersisted() {
final var biCount = (Integer) em.createNativeQuery("SELECT count(*) FROM hs_office_membership", Integer.class).getSingleResult();
assertThat(biCount).isGreaterThan(isImportingControlledTestData() ? 5 : 300);
}
protected void assumeThatWeAreExplicitlyImportingOfficeData() { protected void assumeThatWeAreExplicitlyImportingOfficeData() {
// not throwing AssumptionException // not throwing AssumptionException
} }