@SuppressWarnings("unchecked") @Test(expected = Exception.class) public void test_throwException_Update_WaterSource() throws Exception { final SupplyTypeRequest supplyTypeRequest = Mockito.mock(SupplyTypeRequest.class); when(supplyTypeService.update(supplyTypeRequest)).thenThrow(Exception.class); assertTrue(supplyTypeRequest.equals(supplyTypeService.update(supplyTypeRequest))); }
public SupplyTypeRequest update(final SupplyTypeRequest supplyTypeRequest) { return supplyTypeRepository.update(supplyTypeRequest); }
SupplyTypeService { public SupplyTypeRequest update(final SupplyTypeRequest supplyTypeRequest) { return supplyTypeRepository.update(supplyTypeRequest); } }
SupplyTypeService { public SupplyTypeRequest update(final SupplyTypeRequest supplyTypeRequest) { return supplyTypeRepository.update(supplyTypeRequest); }  }
SupplyTypeService { public SupplyTypeRequest update(final SupplyTypeRequest supplyTypeRequest) { return supplyTypeRepository.update(supplyTypeRequest); }  SupplyTypeRequest create(final SupplyTypeRequest supplyTypeRequest); SupplyTypeRequest update(final SupplyTypeRequest supplyTypeRequest); List<SupplyType> pushCreateToQueue(final String topic, final String key,
            final SupplyTypeRequest supplyTypeRequest); List<SupplyType> pushUpdateToQueue(final String topic, final String key,
            final SupplyTypeRequest supplyTypeRequest); boolean getSupplyTypeByNameAndCode(final String code, final String name, final String tenantId); List<SupplyType> getSupplyTypes(final SupplyTypeGetRequest supplytypeGetRequest); }
SupplyTypeService { public SupplyTypeRequest update(final SupplyTypeRequest supplyTypeRequest) { return supplyTypeRepository.update(supplyTypeRequest); }  SupplyTypeRequest create(final SupplyTypeRequest supplyTypeRequest); SupplyTypeRequest update(final SupplyTypeRequest supplyTypeRequest); List<SupplyType> pushCreateToQueue(final String topic, final String key,
            final SupplyTypeRequest supplyTypeRequest); List<SupplyType> pushUpdateToQueue(final String topic, final String key,
            final SupplyTypeRequest supplyTypeRequest); boolean getSupplyTypeByNameAndCode(final String code, final String name, final String tenantId); List<SupplyType> getSupplyTypes(final SupplyTypeGetRequest supplytypeGetRequest);  }