@Test @Transactional public void test_should_fetch_boundaries_for_boundarytype_and_tenantid() { boundaryService.getAllBoundariesByBoundaryTypeIdAndTenantId(1l, "tenantId"); verify(boundaryRepository).getAllBoundariesByBoundaryTypeIdAndTenantId(1l, "tenantId"); }
public List<Boundary> getAllBoundariesByBoundaryTypeIdAndTenantId(final Long boundaryTypeId, final String tenantId) { return boundaryRepository.getAllBoundariesByBoundaryTypeIdAndTenantId(boundaryTypeId, tenantId); }
BoundaryService { public List<Boundary> getAllBoundariesByBoundaryTypeIdAndTenantId(final Long boundaryTypeId, final String tenantId) { return boundaryRepository.getAllBoundariesByBoundaryTypeIdAndTenantId(boundaryTypeId, tenantId); } }
BoundaryService { public List<Boundary> getAllBoundariesByBoundaryTypeIdAndTenantId(final Long boundaryTypeId, final String tenantId) { return boundaryRepository.getAllBoundariesByBoundaryTypeIdAndTenantId(boundaryTypeId, tenantId); } @Autowired  BoundaryService(BoundaryTypeService boundaryTypeService, CrossHierarchyService crossHierarchyService,
			BoundaryRepository boundaryRepository); }
BoundaryService { public List<Boundary> getAllBoundariesByBoundaryTypeIdAndTenantId(final Long boundaryTypeId, final String tenantId) { return boundaryRepository.getAllBoundariesByBoundaryTypeIdAndTenantId(boundaryTypeId, tenantId); } @Autowired  BoundaryService(BoundaryTypeService boundaryTypeService, CrossHierarchyService crossHierarchyService,
			BoundaryRepository boundaryRepository); Boundary findByTenantIdAndId(Long id, String tenantId); Boundary findByTenantIdAndCode(String tenantId, String code); List<Boundary> findByTenantIdAndCodes(String tenantId, List<String> codes); Boundary createBoundary(final Boundary boundary); Boundary updateBoundary(final Boundary boundary); boolean checkBoundaryExistByTypeAndNumber(Long boundaryNumber, Long boundaryTypeId); List<Boundary> getAllBoundariesByBoundaryTypeIdAndTenantId(final Long boundaryTypeId,
			final String tenantId); Boundary getBoundaryByTypeAndNo(final Long boundaryTypeId, final Long boundaryNum, final String tenantId); List<Boundary> getBoundariesByBndryTypeNameAndHierarchyTypeNameAndTenantId(final String boundaryTypeName,
			final String hierarchyTypeName, final String tenantId); List<Map<String, Object>> getBoundaryDataByTenantIdAndNameLike(final String tenantId, final String name); String getMaterializedPath(final Boundary child, final Boundary parent); Long getBoundaryIdFromShapefile(final Double latitude, final Double longitude, String tenantId); Optional<Boundary> getBoundary(final Double latitude, final Double longitude, String tenantId); Optional<Boundary> getBoundaryByNumberAndType(Long boundaryNum, String boundaryTypeName, String tenantId); Boundary getBoundariesByIdAndTenantId(Long id, String tenantId); List<Boundary> getAllBoundary(BoundaryRequest boundaryRequest); Boolean checkTenantShapeFileExistOrNot(String tenantId); Resource fetchShapeFile(String tenantId); List<Boundary> getAllBoundariesByIdsAndTypeAndNumberAndCodeAndTenant(
			BoundarySearchRequest boundarySearchRequest); List<MdmsTenantBoundary> getBoundariesByTenantAndHierarchyType(BoundarySearchRequest boundarySearchRequest,RequestInfo requestInfo); }
BoundaryService { public List<Boundary> getAllBoundariesByBoundaryTypeIdAndTenantId(final Long boundaryTypeId, final String tenantId) { return boundaryRepository.getAllBoundariesByBoundaryTypeIdAndTenantId(boundaryTypeId, tenantId); } @Autowired  BoundaryService(BoundaryTypeService boundaryTypeService, CrossHierarchyService crossHierarchyService,
			BoundaryRepository boundaryRepository); Boundary findByTenantIdAndId(Long id, String tenantId); Boundary findByTenantIdAndCode(String tenantId, String code); List<Boundary> findByTenantIdAndCodes(String tenantId, List<String> codes); Boundary createBoundary(final Boundary boundary); Boundary updateBoundary(final Boundary boundary); boolean checkBoundaryExistByTypeAndNumber(Long boundaryNumber, Long boundaryTypeId); List<Boundary> getAllBoundariesByBoundaryTypeIdAndTenantId(final Long boundaryTypeId,
			final String tenantId); Boundary getBoundaryByTypeAndNo(final Long boundaryTypeId, final Long boundaryNum, final String tenantId); List<Boundary> getBoundariesByBndryTypeNameAndHierarchyTypeNameAndTenantId(final String boundaryTypeName,
			final String hierarchyTypeName, final String tenantId); List<Map<String, Object>> getBoundaryDataByTenantIdAndNameLike(final String tenantId, final String name); String getMaterializedPath(final Boundary child, final Boundary parent); Long getBoundaryIdFromShapefile(final Double latitude, final Double longitude, String tenantId); Optional<Boundary> getBoundary(final Double latitude, final Double longitude, String tenantId); Optional<Boundary> getBoundaryByNumberAndType(Long boundaryNum, String boundaryTypeName, String tenantId); Boundary getBoundariesByIdAndTenantId(Long id, String tenantId); List<Boundary> getAllBoundary(BoundaryRequest boundaryRequest); Boolean checkTenantShapeFileExistOrNot(String tenantId); Resource fetchShapeFile(String tenantId); List<Boundary> getAllBoundariesByIdsAndTypeAndNumberAndCodeAndTenant(
			BoundarySearchRequest boundarySearchRequest); List<MdmsTenantBoundary> getBoundariesByTenantAndHierarchyType(BoundarySearchRequest boundarySearchRequest,RequestInfo requestInfo);  }