diff --git a/collaboration-manager-server/src/test/java/de/ozgcloud/collaboration/CollaborationRequestMapperTest.java b/collaboration-manager-server/src/test/java/de/ozgcloud/collaboration/CollaborationRequestMapperTest.java index 0566f090440a4865532281f2d1605c01b2a7f9be..eb380e38728cd9b0cf24af45ddd3e477b2431aa4 100644 --- a/collaboration-manager-server/src/test/java/de/ozgcloud/collaboration/CollaborationRequestMapperTest.java +++ b/collaboration-manager-server/src/test/java/de/ozgcloud/collaboration/CollaborationRequestMapperTest.java @@ -92,31 +92,6 @@ class CollaborationRequestMapperTest { } } - @Nested - class TestGetZustaendigeStelleFromCommandBody { - - private static final Map<String, Object> PROPERTY_MAP = Map.of( - CollaborationRequest.PROPERTY_ZUSTAENDIGE_STELLE, FachstelleTestFactory.TECHNICAL_ID, - CollaborationRequest.PROPERTY_COLLABORATION_LEVEL, CollaborationRequestTestFactory.COLLABORATION_LEVEL); - - @Test - void shouldCallFachstelleService() { - mapper.getZustaendigeStelleFromCommandBody(PROPERTY_MAP); - - verify(fachstelleService).getFachstelle(FachstelleTestFactory.TECHNICAL_ID, CollaborationRequestTestFactory.COLLABORATION_LEVEL); - } - - @Test - void shouldReturnFachstelle() { - var expectedFachstelle = FachstelleTestFactory.create(); - when(fachstelleService.getFachstelle(any(), anyInt())).thenReturn(expectedFachstelle); - - var actualFachstelle = mapper.getZustaendigeStelleFromCommandBody(PROPERTY_MAP); - - assertThat(actualFachstelle).isSameAs(expectedFachstelle); - } - } - @Nested class TestToOzgCloudCommand {