From 0a72c8a44b66b0a573f243484ffd2fd50e23979f Mon Sep 17 00:00:00 2001 From: OZGCloud <ozgcloud@mgm-tp.com> Date: Fri, 25 Aug 2023 11:08:09 +0200 Subject: [PATCH] prj42 fix itcase --- .../ozg/mail/postfach/PostfachMailITCase.java | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/pluto-server/src/test/java/de/itvsh/ozg/mail/postfach/PostfachMailITCase.java b/pluto-server/src/test/java/de/itvsh/ozg/mail/postfach/PostfachMailITCase.java index 36e57f6c9..ff9bc09c3 100644 --- a/pluto-server/src/test/java/de/itvsh/ozg/mail/postfach/PostfachMailITCase.java +++ b/pluto-server/src/test/java/de/itvsh/ozg/mail/postfach/PostfachMailITCase.java @@ -64,14 +64,12 @@ import de.itvsh.ozg.pluto.files.FileService; import de.itvsh.ozg.pluto.files.OzgFile; import io.grpc.stub.StreamObserver; -@SpringBootTest( - classes = { PlutoServerApplication.class, OsiPostfachProperties.class }, - properties = { - "kop.osi.postfach.proxyapi.url=http://localhost/ApiProxy/V1/Message", - "kop.osi.postfach.proxyapi.key=1234", - "kop.osi.postfach.proxyapi.realm=test-realm", - "kop.osi.postfach.notification.mail-from=test@local.host" - }) +@SpringBootTest(classes = { PlutoServerApplication.class, OsiPostfachProperties.class }, properties = { + "kop.osi.postfach.proxyapi.url=http://localhost/ApiProxy/V1/Message", + "kop.osi.postfach.proxyapi.key=1234", + "kop.osi.postfach.proxyapi.realm=test-realm", + "kop.osi.postfach.notification.mail-from=test@local.host" +}) @WithMockUser @DataITCase class PostfachMailITCase { @@ -212,7 +210,7 @@ class PostfachMailITCase { } private GrpcSendPostfachMailRequest buildSendPostfachMailRequestWithoutAttachments() { - var grpcPostfachMail = GrpcPostfachMailTestFactory.createBuilder().clearAttachment().clearCreatedAt().clearDirection().build(); + var grpcPostfachMail = GrpcPostfachMailTestFactory.createBuilder().clearId().clearAttachment().clearCreatedAt().clearDirection().build(); return GrpcSendPostfachMailRequestTestFactory.createBuilder().setMail(grpcPostfachMail).build(); } -- GitLab