@Test public void test_Should_Search_WaterSource() { final List<SupplyType> supplyTypes = new ArrayList<>(); supplyTypes.add(getSupplyType()); when(supplyTypeRepository.findForCriteria(any(SupplyTypeGetRequest.class))).thenReturn(supplyTypes); assertTrue(supplyTypes.equals(supplyTypeService.getSupplyTypes(any(SupplyTypeGetRequest.class)))); }
public List<SupplyType> getSupplyTypes(final SupplyTypeGetRequest supplytypeGetRequest) { return supplyTypeRepository.findForCriteria(supplytypeGetRequest); }
SupplyTypeService { public List<SupplyType> getSupplyTypes(final SupplyTypeGetRequest supplytypeGetRequest) { return supplyTypeRepository.findForCriteria(supplytypeGetRequest); } }
SupplyTypeService { public List<SupplyType> getSupplyTypes(final SupplyTypeGetRequest supplytypeGetRequest) { return supplyTypeRepository.findForCriteria(supplytypeGetRequest); }  }
SupplyTypeService { public List<SupplyType> getSupplyTypes(final SupplyTypeGetRequest supplytypeGetRequest) { return supplyTypeRepository.findForCriteria(supplytypeGetRequest); }  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 List<SupplyType> getSupplyTypes(final SupplyTypeGetRequest supplytypeGetRequest) { return supplyTypeRepository.findForCriteria(supplytypeGetRequest); }  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);  }