diff --git a/src/test/java/edu/stanford/protege/webprotege/project/CreateProjectSagaManagerTest.java b/src/test/java/edu/stanford/protege/webprotege/project/CreateProjectSagaManagerTest.java index 7d827c432..e64a3b3b8 100644 --- a/src/test/java/edu/stanford/protege/webprotege/project/CreateProjectSagaManagerTest.java +++ b/src/test/java/edu/stanford/protege/webprotege/project/CreateProjectSagaManagerTest.java @@ -76,7 +76,8 @@ void setUp() { processOntologiesExecutor, createInitialRevisionHistoryExecutor, prepareBinaryFileBackupForUseExecutor, - createProjectSmallFilesExecutor, fileDownloader, + createProjectSmallFilesExecutor, + fileDownloader, revisionHistoryReplacer, projectPermissionsInitializer); janeDoe = UserId.valueOf("JaneDoe"); @@ -240,6 +241,9 @@ void shouldCreateProjectFromBackupFile() throws ExecutionException, InterruptedE when(projectPermissionsInitializer.applyDefaultPermissions(any(ProjectId.class), any(UserId.class))) .thenReturn(CompletableFuture.completedFuture(null)); + when(createProjectSmallFilesExecutor.execute(any(), eq(executionContext))) + .thenReturn(CompletableFuture.completedFuture(null)); + when(projectDetailsManager.getProjectDetails(any(ProjectId.class))) .thenReturn(projectDetails);