Skip to content
Snippets Groups Projects
Commit b7b8bc63 authored by Jan Zickermann's avatar Jan Zickermann
Browse files

OZG-6748 Test that GrpcEingang values are not null

parent f9882d1c
Branches
Tags
No related merge requests found
......@@ -85,6 +85,7 @@ class GrpcEingangMapperITCase {
void eingangShouldHaveZustaendigeStelle() {
var zustaendigeStelle = grpcEingangMapper.toEingang(FormDataTestFactory.create(), Optional.of(ZustaendigeStelleTestFactory.ORGANISATIONSEINHEIT_ID)).getZustaendigeStelle();
assertThat(zustaendigeStelle).isNotNull();
assertThat(zustaendigeStelle.getOrganisationseinheitenId()).isEqualTo(ZustaendigeStelleTestFactory.ORGANISATIONSEINHEIT_ID);
assertThat(zustaendigeStelle.getEmail()).isEqualTo(ZustaendigeStelleTestFactory.EMAIL);
}
......@@ -94,6 +95,7 @@ class GrpcEingangMapperITCase {
void shouldMapEmptyOrganisationeinheitIdIfMissing() {
var zustaendigeStelle = grpcEingangMapper.toEingang(FormDataTestFactory.create(), Optional.empty()).getZustaendigeStelle();
assertThat(zustaendigeStelle).isNotNull();
assertThat(zustaendigeStelle.getOrganisationseinheitenId()).isEmpty();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment