@Test public void test_throwException_Create_WaterSource() { final List<SupplyType> supplyTypeList = new ArrayList<>(); supplyTypeList.add(getSupplyType()); final SupplyTypeRequest supplyTypeRequest = new SupplyTypeRequest(); supplyTypeRequest.setSupplyTypes(supplyTypeList); when(supplyTypeService.create(any(SupplyTypeRequest.class))) .thenReturn(supplyTypeRequest); assertTrue(supplyTypeRequest.equals(supplyTypeService.create(supplyTypeRequest))); }
public SupplyTypeRequest create(final SupplyTypeRequest supplyTypeRequest) { return supplyTypeRepository.create(supplyTypeRequest); }
SupplyTypeService { public SupplyTypeRequest create(final SupplyTypeRequest supplyTypeRequest) { return supplyTypeRepository.create(supplyTypeRequest); } }
SupplyTypeService { public SupplyTypeRequest create(final SupplyTypeRequest supplyTypeRequest) { return supplyTypeRepository.create(supplyTypeRequest); }  }
SupplyTypeService { public SupplyTypeRequest create(final SupplyTypeRequest supplyTypeRequest) { return supplyTypeRepository.create(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 create(final SupplyTypeRequest supplyTypeRequest) { return supplyTypeRepository.create(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);  }