@Test public void should_get_description() throws HudsonJobNotFoundException { when(hudsonFinder.getDescription("projectName")).thenReturn("description"); String description = hudson.getDescription("projectName"); assertEquals("description", description); }
public String getDescription(String jobName) throws HudsonJobNotFoundException { checkJobName(jobName); return hudsonFinder.getDescription(jobName); }
Hudson { public String getDescription(String jobName) throws HudsonJobNotFoundException { checkJobName(jobName); return hudsonFinder.getDescription(jobName); } }
Hudson { public String getDescription(String jobName) throws HudsonJobNotFoundException { checkJobName(jobName); return hudsonFinder.getDescription(jobName); } Hudson(String hudsonUrl);  Hudson(String hudsonUrl, String login, String password); }
Hudson { public String getDescription(String jobName) throws HudsonJobNotFoundException { checkJobName(jobName); return hudsonFinder.getDescription(jobName); } Hudson(String hudsonUrl);  Hudson(String hudsonUrl, String login, String password); List<HudsonJob> findAllProjects(); List<String> findAllProjectNames(); HudsonBuild findBuild(String jobName, int buildNumber); HudsonJob findJob(String jobName); String getDescription(String jobName); Date getEstimatedFinishTime(String jobName); int getLastBuildNumber(String projectName); List<String> findJobNames(); List<String> findViews(); List<String> findJobNameByView(String viewName); String findMavenId(String jobName); List<Integer> getBuildNumbers(String jobName); HudsonTestResult findUnitTestResult(String jobName, int lastBuildNumber); HudsonTestResult findIntegrationTestResult(String jobName, int lastBuildNumber); String getUrl(); }
Hudson { public String getDescription(String jobName) throws HudsonJobNotFoundException { checkJobName(jobName); return hudsonFinder.getDescription(jobName); } Hudson(String hudsonUrl);  Hudson(String hudsonUrl, String login, String password); List<HudsonJob> findAllProjects(); List<String> findAllProjectNames(); HudsonBuild findBuild(String jobName, int buildNumber); HudsonJob findJob(String jobName); String getDescription(String jobName); Date getEstimatedFinishTime(String jobName); int getLastBuildNumber(String projectName); List<String> findJobNames(); List<String> findViews(); List<String> findJobNameByView(String viewName); String findMavenId(String jobName); List<Integer> getBuildNumbers(String jobName); HudsonTestResult findUnitTestResult(String jobName, int lastBuildNumber); HudsonTestResult findIntegrationTestResult(String jobName, int lastBuildNumber); String getUrl();  }