Skip to content
Snippets Groups Projects
Commit 1b6bc46f authored by Jan Zickermann's avatar Jan Zickermann
Browse files

OZG-6748 Cleanup VorgangServiceTest

parent 5c4ee5cd
No related branches found
No related tags found
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