@Test public void shouldGetLowestGeographicLevel() { when(geographicLevelRepository.getLowestGeographicLevel()).thenReturn(1); assertThat(repository.getLowestGeographicLevel(), is(1)); }
public Integer getLowestGeographicLevel() { return geographicLevelRepository.getLowestGeographicLevel(); }
GeographicZoneRepository { public Integer getLowestGeographicLevel() { return geographicLevelRepository.getLowestGeographicLevel(); } }
GeographicZoneRepository { public Integer getLowestGeographicLevel() { return geographicLevelRepository.getLowestGeographicLevel(); } @Autowired  GeographicZoneRepository(GeographicZoneMapper mapper, GeographicLevelRepository geographicLevelRepository); }
GeographicZoneRepository { public Integer getLowestGeographicLevel() { return geographicLevelRepository.getLowestGeographicLevel(); } @Autowired  GeographicZoneRepository(GeographicZoneMapper mapper, GeographicLevelRepository geographicLevelRepository); GeographicZone getByCode(String code); Integer getLowestGeographicLevel(); List<GeographicZone> getAllGeographicZones(); void save(GeographicZone zone); GeographicZone getById(Long id); List<GeographicZone> searchByParentName(String searchParam, Pagination pagination); List<GeographicZone> searchByName(String searchParam, Pagination pagination); List<GeographicLevel> getAllGeographicLevels(); List<GeographicZone> getAllGeographicZonesAbove(GeographicLevel geographicLevel); Integer getTotalParentSearchResultCount(String param); Integer getTotalSearchResultCount(String param); List<GeographicZone> getGeographicZonesByCodeOrName(String searchParam); Integer getGeographicZonesCountBy(String searchParam); }
GeographicZoneRepository { public Integer getLowestGeographicLevel() { return geographicLevelRepository.getLowestGeographicLevel(); } @Autowired  GeographicZoneRepository(GeographicZoneMapper mapper, GeographicLevelRepository geographicLevelRepository); GeographicZone getByCode(String code); Integer getLowestGeographicLevel(); List<GeographicZone> getAllGeographicZones(); void save(GeographicZone zone); GeographicZone getById(Long id); List<GeographicZone> searchByParentName(String searchParam, Pagination pagination); List<GeographicZone> searchByName(String searchParam, Pagination pagination); List<GeographicLevel> getAllGeographicLevels(); List<GeographicZone> getAllGeographicZonesAbove(GeographicLevel geographicLevel); Integer getTotalParentSearchResultCount(String param); Integer getTotalSearchResultCount(String param); List<GeographicZone> getGeographicZonesByCodeOrName(String searchParam); Integer getGeographicZonesCountBy(String searchParam);  }