@Test public void testGetOrgs() { String orgName = "orgName"; given(measureRepo.findOrganizations(false)).willReturn(Arrays .asList(orgName)); List<String> orgs = service.getOrgs(); assertThat(orgs.size()).isEqualTo(1); assertThat(orgs.get(0)).isEqualTo(orgName); }
@Override public List<String> getOrgs() { return measureRepo.findOrganizations(false); }
MeasureOrgServiceImpl implements MeasureOrgService { @Override public List<String> getOrgs() { return measureRepo.findOrganizations(false); } }
MeasureOrgServiceImpl implements MeasureOrgService { @Override public List<String> getOrgs() { return measureRepo.findOrganizations(false); }  }
MeasureOrgServiceImpl implements MeasureOrgService { @Override public List<String> getOrgs() { return measureRepo.findOrganizations(false); }  @Override List<String> getOrgs(); @Override List<String> getMetricNameListByOrg(String org); @Override Map<String, List<String>> getMeasureNamesGroupByOrg(); @Override Map<String, Map<String, List<Map<String, Object>>>> getMeasureWithJobDetailsGroupByOrg(Map<String,
        List<Map<String, Object>>> jobDetails); }
MeasureOrgServiceImpl implements MeasureOrgService { @Override public List<String> getOrgs() { return measureRepo.findOrganizations(false); }  @Override List<String> getOrgs(); @Override List<String> getMetricNameListByOrg(String org); @Override Map<String, List<String>> getMeasureNamesGroupByOrg(); @Override Map<String, Map<String, List<Map<String, Object>>>> getMeasureWithJobDetailsGroupByOrg(Map<String,
        List<Map<String, Object>>> jobDetails);  }