@Test public void getJobStatus() throws Exception { JobStatus jobStatus = mock(JobStatus.class); when(wikiCreator.getJobStatus("wikiId")).thenReturn(jobStatus); assertEquals(jobStatus, mocker.getComponentUnderTest().getJobStatus("wikiId")); }
public JobStatus getJobStatus(String wikiId) { return wikiCreator.getJobStatus(wikiId); }
WikiCreationJobScriptServices implements ScriptService { public JobStatus getJobStatus(String wikiId) { return wikiCreator.getJobStatus(wikiId); } }
WikiCreationJobScriptServices implements ScriptService { public JobStatus getJobStatus(String wikiId) { return wikiCreator.getJobStatus(wikiId); }  }
WikiCreationJobScriptServices implements ScriptService { public JobStatus getJobStatus(String wikiId) { return wikiCreator.getJobStatus(wikiId); }  Job createWiki(WikiCreationRequest request); ExtensionId getDefaultWikiExtensionId(); JobStatus getJobStatus(String wikiId); WikiCreationRequest newWikiCreationRequest(); Exception getLastError(); }
WikiCreationJobScriptServices implements ScriptService { public JobStatus getJobStatus(String wikiId) { return wikiCreator.getJobStatus(wikiId); }  Job createWiki(WikiCreationRequest request); ExtensionId getDefaultWikiExtensionId(); JobStatus getJobStatus(String wikiId); WikiCreationRequest newWikiCreationRequest(); Exception getLastError();  }