diff --git a/xta-adapter/src/test/java/de/ozgcloud/eingang/xta/XtaITCase.java b/xta-adapter/src/test/java/de/ozgcloud/eingang/xta/XtaITCase.java index a0d085e824c2e4558caed9510b5e05b7dab81820..f69ee9212f93876a7834bfe97a9945328c635425 100644 --- a/xta-adapter/src/test/java/de/ozgcloud/eingang/xta/XtaITCase.java +++ b/xta-adapter/src/test/java/de/ozgcloud/eingang/xta/XtaITCase.java @@ -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(); } }