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 568ee45b2f4502af1c5631d1d4566e0b2a49eed0..76cfb712140497d67e155945a676d94b4d8266da 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 949fa091f4ab910b87e297f3ebdc678bceb1e6c9..c074c935bd8cbb0a52a34fce1600e0f577247bdf 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