Skip to content
Snippets Groups Projects
Commit 55582549 authored by Krzysztof Witukiewicz's avatar Krzysztof Witukiewicz
Browse files

OZG-7262 OZG-7657 Fix AntragraumITCase

parent 70078ff6
Branches
Tags
1 merge request!14OZG-7262 OZG-7585 Upgrade common-lib to snapshot version
......@@ -50,6 +50,7 @@ import org.springframework.test.annotation.DirtiesContext;
import com.google.protobuf.ByteString;
import de.ozgcloud.apilib.common.datatypes.GenericId;
import de.ozgcloud.apilib.common.errorhandling.NotFoundException;
import de.ozgcloud.common.test.DataITCase;
import de.ozgcloud.common.test.TestUtils;
......@@ -472,10 +473,7 @@ class AntragraumITCase {
.setFileId(fileId)
.build();
grpcService.getAttachmentContent(request, responseObserver);
verify(responseObserver, never()).onNext(any());
assertThatThrownBy(() -> grpcService.getAttachmentContent(request, responseObserver)).hasRootCauseInstanceOf(SecurityException.class);
}
@Test
......@@ -489,9 +487,8 @@ class AntragraumITCase {
.setFileId(fileId)
.build();
grpcService.getAttachmentContent(request, responseObserver);
verify(responseObserver, never()).onNext(any());
assertThatThrownBy(() -> grpcService.getAttachmentContent(request, responseObserver)).hasRootCause(new NotFoundException(
GenericId.from(request.getNachrichtId()), "PostfachNachricht"));
}
@Test
......@@ -506,9 +503,8 @@ class AntragraumITCase {
.setFileId(fileId)
.build();
grpcService.getAttachmentContent(request, responseObserver);
verify(responseObserver, never()).onNext(any());
assertThatThrownBy(() -> grpcService.getAttachmentContent(request, responseObserver)).hasRootCause(new NotFoundException(
GenericId.from(request.getNachrichtId()), "PostfachNachricht"));
}
@Test
......@@ -523,9 +519,8 @@ class AntragraumITCase {
.setFileId(fileId)
.build();
grpcService.getAttachmentContent(request, responseObserver);
verify(responseObserver, never()).onNext(any());
assertThatThrownBy(() -> grpcService.getAttachmentContent(request, responseObserver)).hasRootCause(new NotFoundException(
GenericId.from(request.getNachrichtId()), "PostfachNachricht"));
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment