@Test public void getWikiProvisioningJobStatus() throws Exception { WikiProvisioningJob job = mock(WikiProvisioningJob.class); when(wikiTemplateManager.getWikiProvisioningJob(anyList())).thenReturn(job); JobStatus status = mock(JobStatus.class); when(job.getStatus()).thenReturn(status); List<String> jobId = new ArrayList<String>(); JobStatus result = mocker.getComponentUnderTest().getWikiProvisioningJobStatus(jobId); assertEquals(status, result); }
@Deprecated public JobStatus getWikiProvisioningJobStatus(List<String> jobId) { try { WikiProvisioningJob wikiProvisioningJob = wikiTemplateManager.getWikiProvisioningJob(jobId); if (wikiProvisioningJob == null) { return null; } return wikiProvisioningJob.getStatus(); } catch (WikiTemplateManagerException e) { error("Failed to get tge wiki provisioning job.", e); return null; } }
WikiTemplateManagerScript implements ScriptService { @Deprecated public JobStatus getWikiProvisioningJobStatus(List<String> jobId) { try { WikiProvisioningJob wikiProvisioningJob = wikiTemplateManager.getWikiProvisioningJob(jobId); if (wikiProvisioningJob == null) { return null; } return wikiProvisioningJob.getStatus(); } catch (WikiTemplateManagerException e) { error("Failed to get tge wiki provisioning job.", e); return null; } } }
WikiTemplateManagerScript implements ScriptService { @Deprecated public JobStatus getWikiProvisioningJobStatus(List<String> jobId) { try { WikiProvisioningJob wikiProvisioningJob = wikiTemplateManager.getWikiProvisioningJob(jobId); if (wikiProvisioningJob == null) { return null; } return wikiProvisioningJob.getStatus(); } catch (WikiTemplateManagerException e) { error("Failed to get tge wiki provisioning job.", e); return null; } }  }
WikiTemplateManagerScript implements ScriptService { @Deprecated public JobStatus getWikiProvisioningJobStatus(List<String> jobId) { try { WikiProvisioningJob wikiProvisioningJob = wikiTemplateManager.getWikiProvisioningJob(jobId); if (wikiProvisioningJob == null) { return null; } return wikiProvisioningJob.getStatus(); } catch (WikiTemplateManagerException e) { error("Failed to get tge wiki provisioning job.", e); return null; } }  Exception getLastError(); Collection<WikiDescriptor> getTemplates(); boolean setTemplate(String wikiId, boolean value); Boolean isTemplate(String wikiId); @Deprecated boolean createWikiFromTemplate(String newWikiId, String newWikiAlias,
            String templateId, String ownerId, boolean failOnExist); @Deprecated Exception getLastException(); @Deprecated JobStatus getWikiProvisioningJobStatus(List<String> jobId); }
WikiTemplateManagerScript implements ScriptService { @Deprecated public JobStatus getWikiProvisioningJobStatus(List<String> jobId) { try { WikiProvisioningJob wikiProvisioningJob = wikiTemplateManager.getWikiProvisioningJob(jobId); if (wikiProvisioningJob == null) { return null; } return wikiProvisioningJob.getStatus(); } catch (WikiTemplateManagerException e) { error("Failed to get tge wiki provisioning job.", e); return null; } }  Exception getLastError(); Collection<WikiDescriptor> getTemplates(); boolean setTemplate(String wikiId, boolean value); Boolean isTemplate(String wikiId); @Deprecated boolean createWikiFromTemplate(String newWikiId, String newWikiAlias,
            String templateId, String ownerId, boolean failOnExist); @Deprecated Exception getLastException(); @Deprecated JobStatus getWikiProvisioningJobStatus(List<String> jobId); @Deprecated
    static final String CONTEXT_LASTEXCEPTION; }