@Test public void shouldExecuteALookupWithQueryParams() { Map<String, Object> lookupMap = new HashMap<>(); lookupMap.put(STR_FIELD_NAME, STR_ARG); lookupMap.put(INT_FIELD_NAME, INT_ARG); lookupMap.put(TEXTAREA_FIELD_NAME, TEXTAREA_ARG); QueryParams queryParams = new QueryParams(PAGE, PAGE_SIZE, new Order(SORT_FIELD, DIRECTION)); List result = (List) lookupExecutor1.execute(lookupMap, queryParams); assertEquals(dataService.find(STR_ARG, INT_ARG, TEXTAREA_ARG, queryParams), result); }
public Object execute(Map<String, ?> lookupMap) { return execute(lookupMap, null); }
LookupExecutor { public Object execute(Map<String, ?> lookupMap) { return execute(lookupMap, null); } }
LookupExecutor { public Object execute(Map<String, ?> lookupMap) { return execute(lookupMap, null); } LookupExecutor(MotechDataService dataService, LookupDto lookup, Map<String, FieldDto> fieldsByName); }
LookupExecutor { public Object execute(Map<String, ?> lookupMap) { return execute(lookupMap, null); } LookupExecutor(MotechDataService dataService, LookupDto lookup, Map<String, FieldDto> fieldsByName); Object execute(Map<String, ?> lookupMap); Object execute(Map<String, ?> lookupMap, QueryParams queryParams); long executeCount(Map<String, ?> lookupMap); }
LookupExecutor { public Object execute(Map<String, ?> lookupMap) { return execute(lookupMap, null); } LookupExecutor(MotechDataService dataService, LookupDto lookup, Map<String, FieldDto> fieldsByName); Object execute(Map<String, ?> lookupMap); Object execute(Map<String, ?> lookupMap, QueryParams queryParams); long executeCount(Map<String, ?> lookupMap);  }