From 9daf696bc792aac27f5bf6ba16d523e5aaa12d08 Mon Sep 17 00:00:00 2001 From: "Zickermann, Jan" <jan.zickermann@dataport.de> Date: Tue, 14 May 2024 12:54:58 +0200 Subject: [PATCH] OZG-5412 Format with eclipse --- .../de/ozgcloud/eingang/xta/XtaITCase.java | 38 ++++++++----------- 1 file changed, 15 insertions(+), 23 deletions(-) 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 a0d085e82..f69ee9212 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(); } } -- GitLab