@SuppressWarnings("unchecked") @Test(expected = Exception.class) public void test_throwException_Update_MeterWaterRates() throws Exception { final MeterWaterRatesRequest meterWaterRatesRequest = Mockito.mock(MeterWaterRatesRequest.class); when(meterWaterRatesRepository.update(meterWaterRatesRequest)).thenThrow(Exception.class); assertTrue(meterWaterRatesRequest.equals(meterWaterRatesService.update(meterWaterRatesRequest))); }
public MeterWaterRatesRequest update(final MeterWaterRatesRequest meterWaterRatesRequest) { return meterWaterRatesRepository.update(meterWaterRatesRequest); }
MeterWaterRatesService { public MeterWaterRatesRequest update(final MeterWaterRatesRequest meterWaterRatesRequest) { return meterWaterRatesRepository.update(meterWaterRatesRequest); } }
MeterWaterRatesService { public MeterWaterRatesRequest update(final MeterWaterRatesRequest meterWaterRatesRequest) { return meterWaterRatesRepository.update(meterWaterRatesRequest); }  }
MeterWaterRatesService { public MeterWaterRatesRequest update(final MeterWaterRatesRequest meterWaterRatesRequest) { return meterWaterRatesRepository.update(meterWaterRatesRequest); }  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 MeterWaterRatesRequest update(final MeterWaterRatesRequest meterWaterRatesRequest) { return meterWaterRatesRepository.update(meterWaterRatesRequest); }  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);  }