Skip to content
Snippets Groups Projects
Commit 1323f271 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-4461 remove System.out.printlns

parent a4ac3b50
No related branches found
No related tags found
No related merge requests found
...@@ -46,8 +46,6 @@ import org.springframework.test.web.servlet.MockMvc; ...@@ -46,8 +46,6 @@ import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.ResultActions; import org.springframework.test.web.servlet.ResultActions;
import org.springframework.test.web.servlet.setup.MockMvcBuilders; import org.springframework.test.web.servlet.setup.MockMvcBuilders;
import com.fasterxml.jackson.databind.ObjectMapper;
import de.itvsh.kop.common.test.TestUtils; import de.itvsh.kop.common.test.TestUtils;
import de.ozgcloud.alfa.common.command.CommandController.CommandByRelationController; import de.ozgcloud.alfa.common.command.CommandController.CommandByRelationController;
import de.ozgcloud.alfa.vorgang.VorgangHeaderTestFactory; import de.ozgcloud.alfa.vorgang.VorgangHeaderTestFactory;
...@@ -107,8 +105,6 @@ class CommandByRelationControllerTest { ...@@ -107,8 +105,6 @@ class CommandByRelationControllerTest {
@Test @Test
void shouldFillGenericBody() throws Exception { void shouldFillGenericBody() throws Exception {
var oj = new ObjectMapper();
var content = TestUtils.loadTextFile("jsonTemplates/command/createCommandWithBody.json.tmpl", CommandOrder.CREATE_BESCHEID.name(), var content = TestUtils.loadTextFile("jsonTemplates/command/createCommandWithBody.json.tmpl", CommandOrder.CREATE_BESCHEID.name(),
"{\"bescheidVom\":\"2023-06-26\"}"); "{\"bescheidVom\":\"2023-06-26\"}");
...@@ -117,7 +113,6 @@ class CommandByRelationControllerTest { ...@@ -117,7 +113,6 @@ class CommandByRelationControllerTest {
verify(service).createCommand(createCommandCaptor.capture(), anyLong()); verify(service).createCommand(createCommandCaptor.capture(), anyLong());
var body = (GenericCommandBody) createCommandCaptor.getValue().getBody(); var body = (GenericCommandBody) createCommandCaptor.getValue().getBody();
assertThat(body).isNotNull().contains(entry("bescheidVom", "2023-06-26")); assertThat(body).isNotNull().contains(entry("bescheidVom", "2023-06-26"));
System.out.println(body);
} }
private ResultActions doRequest() throws Exception { private ResultActions doRequest() throws Exception {
......
...@@ -83,10 +83,7 @@ class PostfachMailCommandControllerTest { ...@@ -83,10 +83,7 @@ class PostfachMailCommandControllerTest {
void init() { void init() {
when(service.findById(any())).thenReturn(PostfachMailTestFactory.create()); when(service.findById(any())).thenReturn(PostfachMailTestFactory.create());
when(commandByRelationController.createCommand(any())) when(commandByRelationController.createCommand(any()))
.thenAnswer((i) -> { .thenAnswer((i) -> CommandTestFactory.createBuilder().order(((CreateCommand) i.getArgument(0)).getOrder()).build());
System.out.println("Order: " + ((CreateCommand) i.getArgument(0)).getOrder());
return CommandTestFactory.createBuilder().order(((CreateCommand) i.getArgument(0)).getOrder()).build();
});
} }
@Test @Test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment