import-debitor-relationship (into intermediate data structure) #22

Merged
hsh-michaelhoennig merged 5 commits from import-debitor-relationship into master 2024-03-12 10:13:37 +01:00
Showing only changes of commit abfcbd8d58 - Show all commits

View File

@ -175,7 +175,7 @@ public class ImportOfficeData extends ContextBasedTest {
} }
@Test @Test
@Order(1011) @Order(1019)
void verifyBusinessPartners() { void verifyBusinessPartners() {
assumeThatWeAreImportingControlledTestData(); assumeThatWeAreImportingControlledTestData();
@ -327,7 +327,7 @@ public class ImportOfficeData extends ContextBasedTest {
} }
@Test @Test
@Order(1031) @Order(1039)
void verifySepaMandates() { void verifySepaMandates() {
assumeThatWeAreImportingControlledTestData(); assumeThatWeAreImportingControlledTestData();
@ -359,7 +359,7 @@ public class ImportOfficeData extends ContextBasedTest {
} }
@Test @Test
@Order(1041) @Order(1049)
void verifyCoopShares() { void verifyCoopShares() {
assumeThatWeAreImportingControlledTestData(); assumeThatWeAreImportingControlledTestData();
@ -386,7 +386,7 @@ public class ImportOfficeData extends ContextBasedTest {
} }
@Test @Test
@Order(1051) @Order(1059)
void verifyCoopAssets() { void verifyCoopAssets() {
assumeThatWeAreImportingControlledTestData(); assumeThatWeAreImportingControlledTestData();
@ -418,7 +418,7 @@ public class ImportOfficeData extends ContextBasedTest {
} }
@Test @Test
@Order(2001) @Order(2009)
void removeEmptyRelationships() { void removeEmptyRelationships() {
assumeThatWeAreImportingControlledTestData(); assumeThatWeAreImportingControlledTestData();
@ -431,7 +431,7 @@ public class ImportOfficeData extends ContextBasedTest {
idsToRemove.add(id); idsToRemove.add(id);
} }
}); });
assertThat(idsToRemove.size()).isEqualTo(1); // only from partner #99 (partner+contractual roles) assertThat(idsToRemove.size()).isEqualTo(9); // only from partner #99 (partner+contractual roles)
idsToRemove.forEach(id -> relationships.remove(id)); idsToRemove.forEach(id -> relationships.remove(id));
} }
@ -449,7 +449,7 @@ public class ImportOfficeData extends ContextBasedTest {
idsToRemove.add(id); idsToRemove.add(id);
} }
}); });
assertThat(idsToRemove.size()).isEqualTo(1); // only from partner #99 assertThat(idsToRemove.size()).isEqualTo(9); // only from partner #99
idsToRemove.forEach(id -> partners.remove(id)); idsToRemove.forEach(id -> partners.remove(id));
} }
@ -467,7 +467,7 @@ public class ImportOfficeData extends ContextBasedTest {
idsToRemove.add(id); idsToRemove.add(id);
} }
}); });
assertThat(idsToRemove.size()).isEqualTo(1); // only from partner #99 assertThat(idsToRemove.size()).isEqualTo(9); // only from partner #99
idsToRemove.forEach(id -> debitors.remove(id)); idsToRemove.forEach(id -> debitors.remove(id));
} }