Skip to content
Snippets Groups Projects
Commit abf75e10 authored by OZG-Cloud Team's avatar OZG-Cloud Team
Browse files

OZG-6748 Cleanup VorgangServiceTest

parent 2688f202
Branches
Tags
No related merge requests found
...@@ -451,7 +451,7 @@ class VorgangRemoteServiceTest { ...@@ -451,7 +451,7 @@ class VorgangRemoteServiceTest {
void mock() { void mock() {
doReturn(response).when(vorgangCreator).waitUntilFutureToComplete(any(), any()); doReturn(response).when(vorgangCreator).waitUntilFutureToComplete(any(), any());
when(incomingFile.getContentStream()).thenReturn(inputStream); when(incomingFile.getContentStream()).thenReturn(inputStream);
doReturn(request).when(vorgangCreator).buildMetaDataRequest(incomingFile); doReturn(request).when(vorgangCreator).buildMetaDataRequest(any());
} }
@DisplayName("should call get content stream") @DisplayName("should call get content stream")
......
...@@ -147,10 +147,6 @@ class VorgangServiceTest { ...@@ -147,10 +147,6 @@ class VorgangServiceTest {
private final FormData formData = FormDataTestFactory.create(); private final FormData formData = FormDataTestFactory.create();
@BeforeEach
void mock() {
}
@DisplayName("should return attachments and representations") @DisplayName("should return attachments and representations")
@Test @Test
void shouldReturnAttachmentsAndRepresentations() { void shouldReturnAttachmentsAndRepresentations() {
...@@ -165,7 +161,7 @@ class VorgangServiceTest { ...@@ -165,7 +161,7 @@ class VorgangServiceTest {
class TestDeleteIncomingFile { class TestDeleteIncomingFile {
@Mock @Mock
Path path; private Path path;
@DisplayName("should call deleteIfExists") @DisplayName("should call deleteIfExists")
@Test @Test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment