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

OZG-5412 Format with eclipse

parent 124e85bb
No related branches found
No related tags found
No related merge requests found
......@@ -59,22 +59,19 @@ class XtaITCase {
private void mockStartVorgangCreation() {
stubFor(
unaryMethod(VorgangServiceGrpc.getStartCreationMethod())
.willReturn(GrpcCreateVorgangResponse.getDefaultInstance())
);
.willReturn(GrpcCreateVorgangResponse.getDefaultInstance()));
}
private void mockUploadBinaryFiles() {
stubFor(
clientStreamingMethod(BinaryFileServiceGrpc.getUploadBinaryFileAsStreamMethod())
.willReturn(GrpcUploadBinaryFileResponse.getDefaultInstance())
);
.willReturn(GrpcUploadBinaryFileResponse.getDefaultInstance()));
}
private void mockFinishVorgangCreation() {
stubFor(
unaryMethod(VorgangServiceGrpc.getFinishCreationMethod())
.willReturn(GrpcFinishCreationResponse.getDefaultInstance())
);
.willReturn(GrpcFinishCreationResponse.getDefaultInstance()));
}
@AfterEach
......@@ -92,25 +89,21 @@ class XtaITCase {
verifyThat(
calledMethod(VorgangServiceGrpc.getStartCreationMethod())
.withRequest(GrpcCreateVorgangRequest::hasEingang),
times(1)
);
times(1));
verifyThat(
calledMethod(VorgangServiceGrpc.getFinishCreationMethod()),
times(1)
);
times(1));
}
private void expectTwoUploadCallsForXmlRepresentations() {
Predicate<GrpcUploadBinaryFileRequest> hasXMLContentType = request ->
request.hasMetadata() && request
.getMetadata()
.getContentType()
.contains("xml");
Predicate<GrpcUploadBinaryFileRequest> hasXMLContentType = request -> request.hasMetadata() && request
.getMetadata()
.getContentType()
.contains("xml");
verifyThat(
calledMethod(BinaryFileServiceGrpc.getUploadBinaryFileAsStreamMethod())
.withRequestsContaining(hasXMLContentType),
times(2)
);
times(2));
}
@DisplayName("should have three representations with pdf")
......@@ -202,12 +195,11 @@ class XtaITCase {
private GrpcEingang captureEingang() {
return capturedRequestsFor(
calledMethod(VorgangServiceGrpc.getStartCreationMethod())
)
.getFirst()
.requests()
.getFirst()
.getEingang();
calledMethod(VorgangServiceGrpc.getStartCreationMethod()))
.getFirst()
.requests()
.getFirst()
.getEingang();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment