From 1323f271caef7f67db67c142faf5a2131f293469 Mon Sep 17 00:00:00 2001
From: OZGCloud <ozgcloud@mgm-tp.com>
Date: Thu, 9 Nov 2023 12:48:42 +0100
Subject: [PATCH] OZG-4461 remove System.out.printlns

---
 .../alfa/common/command/CommandByRelationControllerTest.java | 5 -----
 .../alfa/postfach/PostfachMailCommandControllerTest.java     | 5 +----
 2 files changed, 1 insertion(+), 9 deletions(-)

diff --git a/alfa-service/src/test/java/de/ozgcloud/alfa/common/command/CommandByRelationControllerTest.java b/alfa-service/src/test/java/de/ozgcloud/alfa/common/command/CommandByRelationControllerTest.java
index 568ee45b2f..76cfb71214 100644
--- a/alfa-service/src/test/java/de/ozgcloud/alfa/common/command/CommandByRelationControllerTest.java
+++ b/alfa-service/src/test/java/de/ozgcloud/alfa/common/command/CommandByRelationControllerTest.java
@@ -46,8 +46,6 @@ import org.springframework.test.web.servlet.MockMvc;
 import org.springframework.test.web.servlet.ResultActions;
 import org.springframework.test.web.servlet.setup.MockMvcBuilders;
 
-import com.fasterxml.jackson.databind.ObjectMapper;
-
 import de.itvsh.kop.common.test.TestUtils;
 import de.ozgcloud.alfa.common.command.CommandController.CommandByRelationController;
 import de.ozgcloud.alfa.vorgang.VorgangHeaderTestFactory;
@@ -107,8 +105,6 @@ class CommandByRelationControllerTest {
 
 		@Test
 		void shouldFillGenericBody() throws Exception {
-			var oj = new ObjectMapper();
-
 			var content = TestUtils.loadTextFile("jsonTemplates/command/createCommandWithBody.json.tmpl", CommandOrder.CREATE_BESCHEID.name(),
 					"{\"bescheidVom\":\"2023-06-26\"}");
 
@@ -117,7 +113,6 @@ class CommandByRelationControllerTest {
 			verify(service).createCommand(createCommandCaptor.capture(), anyLong());
 			var body = (GenericCommandBody) createCommandCaptor.getValue().getBody();
 			assertThat(body).isNotNull().contains(entry("bescheidVom", "2023-06-26"));
-			System.out.println(body);
 		}
 
 		private ResultActions doRequest() throws Exception {
diff --git a/alfa-service/src/test/java/de/ozgcloud/alfa/postfach/PostfachMailCommandControllerTest.java b/alfa-service/src/test/java/de/ozgcloud/alfa/postfach/PostfachMailCommandControllerTest.java
index 949fa091f4..c074c935bd 100644
--- a/alfa-service/src/test/java/de/ozgcloud/alfa/postfach/PostfachMailCommandControllerTest.java
+++ b/alfa-service/src/test/java/de/ozgcloud/alfa/postfach/PostfachMailCommandControllerTest.java
@@ -83,10 +83,7 @@ class PostfachMailCommandControllerTest {
 		void init() {
 			when(service.findById(any())).thenReturn(PostfachMailTestFactory.create());
 			when(commandByRelationController.createCommand(any()))
-					.thenAnswer((i) -> {
-						System.out.println("Order: " + ((CreateCommand) i.getArgument(0)).getOrder());
-						return CommandTestFactory.createBuilder().order(((CreateCommand) i.getArgument(0)).getOrder()).build();
-					});
+					.thenAnswer((i) -> CommandTestFactory.createBuilder().order(((CreateCommand) i.getArgument(0)).getOrder()).build());
 		}
 
 		@Test
-- 
GitLab