@SuppressWarnings("unchecked") @Test(expected = Exception.class) public void test_Should_Search_MeterWaterRates() { final List<MeterWaterRates> meterWaterRatesList = new ArrayList<>(); meterWaterRatesList.add(getMeterWaterRates()); final MeterWaterRatesGetRequest meterWaterRatesRequest = Mockito.mock(MeterWaterRatesGetRequest.class); when(meterWaterRatesRepository.findForCriteria(meterWaterRatesRequest)).thenThrow(Exception.class); assertTrue(meterWaterRatesList .equals(meterWaterRatesService.getMeterWaterRates(meterWaterRatesRequest))); }
public List<MeterWaterRates> getMeterWaterRates( final MeterWaterRatesGetRequest meterWaterRatesGetRequest) { return meterWaterRatesRepository.findForCriteria(meterWaterRatesGetRequest); }
MeterWaterRatesService { public List<MeterWaterRates> getMeterWaterRates( final MeterWaterRatesGetRequest meterWaterRatesGetRequest) { return meterWaterRatesRepository.findForCriteria(meterWaterRatesGetRequest); } }
MeterWaterRatesService { public List<MeterWaterRates> getMeterWaterRates( final MeterWaterRatesGetRequest meterWaterRatesGetRequest) { return meterWaterRatesRepository.findForCriteria(meterWaterRatesGetRequest); }  }
MeterWaterRatesService { public List<MeterWaterRates> getMeterWaterRates( final MeterWaterRatesGetRequest meterWaterRatesGetRequest) { return meterWaterRatesRepository.findForCriteria(meterWaterRatesGetRequest); }  MeterWaterRatesRequest create(final MeterWaterRatesRequest meterWaterRatesRequest); MeterWaterRatesRequest update(final MeterWaterRatesRequest meterWaterRatesRequest); List<MeterWaterRates> pushCreateToQueue(final String topic, final String key,
            final MeterWaterRatesRequest meterWaterRatesRequest); List<MeterWaterRates> pushUpdateToQueue(final String topic, final String key,
            final MeterWaterRatesRequest meterWaterRatesRequest); List<MeterWaterRates> getMeterWaterRates(
            final MeterWaterRatesGetRequest meterWaterRatesGetRequest); boolean checkMeterWaterRatesExists(final MeterWaterRates meterWaterRates); boolean checkPipeSizeExists(final Double pipeSize, final String tenantId); boolean checkSourceTypeExists(final String sourceTypeName, final String tenantId); boolean isUsageTypeExists(final MeterWaterRates meterWaterRates); boolean isSubUsageTypeExists(final MeterWaterRates meterWaterRates); }
MeterWaterRatesService { public List<MeterWaterRates> getMeterWaterRates( final MeterWaterRatesGetRequest meterWaterRatesGetRequest) { return meterWaterRatesRepository.findForCriteria(meterWaterRatesGetRequest); }  MeterWaterRatesRequest create(final MeterWaterRatesRequest meterWaterRatesRequest); MeterWaterRatesRequest update(final MeterWaterRatesRequest meterWaterRatesRequest); List<MeterWaterRates> pushCreateToQueue(final String topic, final String key,
            final MeterWaterRatesRequest meterWaterRatesRequest); List<MeterWaterRates> pushUpdateToQueue(final String topic, final String key,
            final MeterWaterRatesRequest meterWaterRatesRequest); List<MeterWaterRates> getMeterWaterRates(
            final MeterWaterRatesGetRequest meterWaterRatesGetRequest); boolean checkMeterWaterRatesExists(final MeterWaterRates meterWaterRates); boolean checkPipeSizeExists(final Double pipeSize, final String tenantId); boolean checkSourceTypeExists(final String sourceTypeName, final String tenantId); boolean isUsageTypeExists(final MeterWaterRates meterWaterRates); boolean isSubUsageTypeExists(final MeterWaterRates meterWaterRates);  }