@Test public void should_have_three_views() { List<String> views = connection.findViews(); assertEquals(3, views.size()); assertEquals("Telluriques", views.get(0)); assertEquals("Gazeuses", views.get(1)); assertEquals("Other", views.get(2)); }
@Override public List<String> findViews() { return views; }
DemoConnection implements BuildCapability, TestCapability, ViewCapability, MetricCapability { @Override public List<String> findViews() { return views; } }
DemoConnection implements BuildCapability, TestCapability, ViewCapability, MetricCapability { @Override public List<String> findViews() { return views; } DemoConnection(); }
DemoConnection implements BuildCapability, TestCapability, ViewCapability, MetricCapability { @Override public List<String> findViews() { return views; } DemoConnection(); @Override void connect(String url, String login, String password); @Override void close(); @Override boolean isClosed(); @Override Map<SoftwareProjectId, String> listSoftwareProjectIds(); @Override String getMavenId(SoftwareProjectId softwareProjectId); @Override String getDescription(SoftwareProjectId softwareProjectId); @Override String getName(SoftwareProjectId projectId); @Override SoftwareProjectId identify(ProjectKey projectKey); @Override boolean isProjectDisabled(SoftwareProjectId softwareProjectId); @Override Map<String, List<QualityMetric>> getMetricsByCategory(); @Override QualityResult analyzeQuality(SoftwareProjectId projectId, String... metrics); @Override List<SoftwareProjectId> findSoftwareProjectIdsByViews(List<String> views); @Override List<String> findViews(); @Override List<String> findProjectNamesByView(String viewName); @Override TestResult analyzeUnitTests(SoftwareProjectId projectId); @Override TestResult analyzeIntegrationTests(SoftwareProjectId projectId); @Override List<Commiter> getBuildCommiters(SoftwareProjectId softwareProjectId, String buildId); @Override BuildTime getBuildTime(SoftwareProjectId softwareProjectId, String buildId); @Override List<String> getBuildIds(SoftwareProjectId softwareProjectId); @Override BuildState getBuildState(SoftwareProjectId projectId, String buildId); @Override Date getEstimatedFinishTime(SoftwareProjectId projectId, String buildId); @Override boolean isBuilding(SoftwareProjectId projectId, String buildId); @Override String getLastBuildId(SoftwareProjectId softwareProjectId); @Override String toString(); }
DemoConnection implements BuildCapability, TestCapability, ViewCapability, MetricCapability { @Override public List<String> findViews() { return views; } DemoConnection(); @Override void connect(String url, String login, String password); @Override void close(); @Override boolean isClosed(); @Override Map<SoftwareProjectId, String> listSoftwareProjectIds(); @Override String getMavenId(SoftwareProjectId softwareProjectId); @Override String getDescription(SoftwareProjectId softwareProjectId); @Override String getName(SoftwareProjectId projectId); @Override SoftwareProjectId identify(ProjectKey projectKey); @Override boolean isProjectDisabled(SoftwareProjectId softwareProjectId); @Override Map<String, List<QualityMetric>> getMetricsByCategory(); @Override QualityResult analyzeQuality(SoftwareProjectId projectId, String... metrics); @Override List<SoftwareProjectId> findSoftwareProjectIdsByViews(List<String> views); @Override List<String> findViews(); @Override List<String> findProjectNamesByView(String viewName); @Override TestResult analyzeUnitTests(SoftwareProjectId projectId); @Override TestResult analyzeIntegrationTests(SoftwareProjectId projectId); @Override List<Commiter> getBuildCommiters(SoftwareProjectId softwareProjectId, String buildId); @Override BuildTime getBuildTime(SoftwareProjectId softwareProjectId, String buildId); @Override List<String> getBuildIds(SoftwareProjectId softwareProjectId); @Override BuildState getBuildState(SoftwareProjectId projectId, String buildId); @Override Date getEstimatedFinishTime(SoftwareProjectId projectId, String buildId); @Override boolean isBuilding(SoftwareProjectId projectId, String buildId); @Override String getLastBuildId(SoftwareProjectId softwareProjectId); @Override String toString();  }