@Test public void should_get_last_build_number() throws HudsonJobNotFoundException, HudsonBuildNotFoundException { when(hudsonFinder.getLastBuildNumber("projectName")).thenReturn(42); int lastBuildNumber = hudson.getLastBuildNumber("projectName"); assertEquals(42, lastBuildNumber); }
public int getLastBuildNumber(String projectName) throws HudsonJobNotFoundException, HudsonBuildNotFoundException { checkJobName(projectName); return hudsonFinder.getLastBuildNumber(projectName); }
Hudson { public int getLastBuildNumber(String projectName) throws HudsonJobNotFoundException, HudsonBuildNotFoundException { checkJobName(projectName); return hudsonFinder.getLastBuildNumber(projectName); } }
Hudson { public int getLastBuildNumber(String projectName) throws HudsonJobNotFoundException, HudsonBuildNotFoundException { checkJobName(projectName); return hudsonFinder.getLastBuildNumber(projectName); } Hudson(String hudsonUrl);  Hudson(String hudsonUrl, String login, String password); }
Hudson { public int getLastBuildNumber(String projectName) throws HudsonJobNotFoundException, HudsonBuildNotFoundException { checkJobName(projectName); return hudsonFinder.getLastBuildNumber(projectName); } 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 int getLastBuildNumber(String projectName) throws HudsonJobNotFoundException, HudsonBuildNotFoundException { checkJobName(projectName); return hudsonFinder.getLastBuildNumber(projectName); } 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();  }