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