@Test public void shouldExecuteLookupWithRelatedFields() { Map<String, Object> lookupMap = new HashMap<>(); lookupMap.put(STR_FIELD_NAME, STR_ARG); lookupMap.put(LookupName.buildLookupFieldName(RELATED_FIELD_NAME, ID), LONG_ARG); lookupMap.put(INT_FIELD_NAME, INT_ARG); lookupMap.put(LookupName.buildLookupFieldName(RELATED_FIELD_NAME, NAME), STR_ARG_2); List result = (List) lookupExecutor2.execute(lookupMap); assertEquals(dataService.findByRelationFields(STR_ARG, LONG_ARG, INT_ARG, STR_ARG_2), 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);  }