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

fix build

parent 95a57d9b
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,6 @@ import static org.mockito.Mockito.*;
import java.io.InputStream;
import java.util.Map;
import java.util.Optional;
import java.util.concurrent.CompletableFuture;
import java.util.stream.Stream;
import org.apache.http.entity.ContentType;
......@@ -196,7 +195,7 @@ class PersistPostfachNachrichtByCommandServiceTest {
class TestPersistAttachment {
@BeforeEach
void init() {
when(fileService.uploadFileStream(any(), any(), any(), any())).thenReturn(CompletableFuture.completedFuture(FileId.from("42")));
when(fileService.uploadFileStream(any(), any(), any(), any())).thenReturn(FileId.from("42"));
}
@DisplayName("Upload files Reference")
......
......@@ -32,7 +32,6 @@ import java.io.InputStream;
import java.util.Collection;
import java.util.Collections;
import java.util.Optional;
import java.util.concurrent.TimeUnit;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
......@@ -112,8 +111,7 @@ class FileServiceTest {
@Test
void shouldReturnId() throws Exception {
var id = service.uploadFileStream(ref, file, user, contentStream).get(5,
TimeUnit.SECONDS);
var id = service.uploadFileStream(ref, file, user, contentStream);
assertThat(id).isEqualTo(IncomingFileTestFactory.ID);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment