Skip to content
Snippets Groups Projects
Commit 015807ea authored by OZGCloud's avatar OZGCloud
Browse files

OZG-4857 OZG-4934 improve tests

parent f7d35353
Branches
Tags
No related merge requests found
......@@ -97,7 +97,9 @@ class PrimaerdokumentTypeBuilderTest {
@Test
void shouldThrowIllegalgStateException() {
assertThatThrownBy(() -> builder.withOzgFile(null).build()).isInstanceOf(IllegalStateException.class);
builder.withOzgFile(null);
assertThatThrownBy(builder::build).isInstanceOf(IllegalStateException.class);
}
}
......
......@@ -296,7 +296,7 @@ class DokumentTypeBuilderTest {
void shouldReturnBuildPrimaerdokument() {
var primaerdokument = builder.createPrimaerdokument();
assertThat(primaerdokument).isEqualTo(primaerdokument);
assertThat(primaerdokument).isEqualTo(primaerdokumentType);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment