improve test assertions
This commit is contained in:
parent
ae1b6b44b6
commit
a042eff8bc
@ -87,12 +87,28 @@ public class ImportOfficeTables extends ContextBasedTest {
|
|||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
// no sensible content without contacts, thus just checking counts
|
// no contacts yet => mostly null values
|
||||||
assertThat(partners.size()).isEqualTo(3);
|
assertThat(partners.toString()).isEqualToIgnoringWhitespace("""
|
||||||
assertThat(contacts.size()).isEqualTo(0);
|
{
|
||||||
assertThat(persons.size()).isEqualTo(3);
|
7=partner(null, null: null),
|
||||||
assertThat(debitors.size()).isEqualTo(3);
|
10=partner(null, null: null),
|
||||||
assertThat(memberships.size()).isEqualTo(3);
|
12=partner(null, null: null)
|
||||||
|
}
|
||||||
|
""");
|
||||||
|
assertThat(contacts.toString()).isEqualTo("{}");
|
||||||
|
assertThat(debitors.toString()).isEqualToIgnoringWhitespace("""
|
||||||
|
{
|
||||||
|
7=debitor(10007: null, null),
|
||||||
|
10=debitor(10010: null, null),
|
||||||
|
12=debitor(11012: null, null)}
|
||||||
|
""");
|
||||||
|
assertThat(memberships.toString()).isEqualToIgnoringWhitespace("""
|
||||||
|
{
|
||||||
|
7=Membership(10007, null, null, 10007, [2000-12-06,), NONE),
|
||||||
|
10=Membership(10010, null, null, 10010, [2000-12-06,2016-01-01), UNKNOWN),
|
||||||
|
12=Membership(11012, null, null, 11012, [2021-04-01,), NONE)
|
||||||
|
}
|
||||||
|
""");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Loading…
Reference in New Issue
Block a user