@Test void restore() throws Exception { List<Long> documentIds = Arrays.asList(1L, 2L, 3L); RestoreRequest restoreRequest = new RestoreRequest(); restoreRequest.setDeletedDocumentIds(documentIds); when(this.requestFactory.createRestoreRequest(documentIds)).thenReturn(restoreRequest); this.refactoringScriptService.restore(documentIds); verify(this.requestFactory).createRestoreRequest(documentIds); verify(this.jobExecutor).execute(RefactoringJobs.RESTORE, restoreRequest); }
public Job restore(RestoreRequest restoreRequest) { return this.execute(RefactoringJobs.RESTORE, restoreRequest); }
RefactoringScriptService implements ScriptService { public Job restore(RestoreRequest restoreRequest) { return this.execute(RefactoringJobs.RESTORE, restoreRequest); } }
RefactoringScriptService implements ScriptService { public Job restore(RestoreRequest restoreRequest) { return this.execute(RefactoringJobs.RESTORE, restoreRequest); }  }
RefactoringScriptService implements ScriptService { public Job restore(RestoreRequest restoreRequest) { return this.execute(RefactoringJobs.RESTORE, restoreRequest); }  RequestFactory getRequestFactory(); Job move(MoveRequest request); Job move(Collection<EntityReference> sources, EntityReference destination); Job move(EntityReference source, EntityReference destination); Job rename(MoveRequest request); Job rename(EntityReference oldReference, EntityReference newReference); Job rename(EntityReference reference, String newName); Job convertToNestedDocument(DocumentReference documentReference); Job convertToTerminalDocument(DocumentReference documentReference); Job copy(CopyRequest request); Job copy(Collection<EntityReference> sources, EntityReference destination); Job copy(EntityReference source, EntityReference destination); Job copyAs(CopyRequest request); Job copyAs(EntityReference sourceReference, EntityReference copyReference); Job copyAs(EntityReference reference, String copyName); Job delete(EntityRequest request); Job delete(Collection<EntityReference> entityReferences); Job delete(EntityReference entityReference); Job create(CreateRequest request); Job create(Collection<EntityReference> entityReferences); Job create(EntityReference entityReference); Exception getLastError(); Job restore(RestoreRequest restoreRequest); Job restore(String batchId); Job restore(List<Long> deletedDocumentIds); Job permanentlyDelete(PermanentlyDeleteRequest request); Job permanentlyDelete(String batchId); Job permanentlyDelete(List<Long> deletedDocumentIds); @Unstable Job changeDocumentAuthor(DocumentReference oldAuthorReference, DocumentReference newAuthorReference); @Unstable Job replaceUser(ReplaceUserRequest request); @Unstable boolean isRecycleBinSkippingAllowed(); }
RefactoringScriptService implements ScriptService { public Job restore(RestoreRequest restoreRequest) { return this.execute(RefactoringJobs.RESTORE, restoreRequest); }  RequestFactory getRequestFactory(); Job move(MoveRequest request); Job move(Collection<EntityReference> sources, EntityReference destination); Job move(EntityReference source, EntityReference destination); Job rename(MoveRequest request); Job rename(EntityReference oldReference, EntityReference newReference); Job rename(EntityReference reference, String newName); Job convertToNestedDocument(DocumentReference documentReference); Job convertToTerminalDocument(DocumentReference documentReference); Job copy(CopyRequest request); Job copy(Collection<EntityReference> sources, EntityReference destination); Job copy(EntityReference source, EntityReference destination); Job copyAs(CopyRequest request); Job copyAs(EntityReference sourceReference, EntityReference copyReference); Job copyAs(EntityReference reference, String copyName); Job delete(EntityRequest request); Job delete(Collection<EntityReference> entityReferences); Job delete(EntityReference entityReference); Job create(CreateRequest request); Job create(Collection<EntityReference> entityReferences); Job create(EntityReference entityReference); Exception getLastError(); Job restore(RestoreRequest restoreRequest); Job restore(String batchId); Job restore(List<Long> deletedDocumentIds); Job permanentlyDelete(PermanentlyDeleteRequest request); Job permanentlyDelete(String batchId); Job permanentlyDelete(List<Long> deletedDocumentIds); @Unstable Job changeDocumentAuthor(DocumentReference oldAuthorReference, DocumentReference newAuthorReference); @Unstable Job replaceUser(ReplaceUserRequest request); @Unstable boolean isRecycleBinSkippingAllowed();  }