Documentation { public List<FunctionDocumentation> getAllFunctionDocumentation() { if (this.allFunctionDocumentation == null) { allFunctionDocumentation = new ArrayList<FunctionDocumentation>(); allFunctionDocumentation.add(addressDocumentation); allFunctionDocumentation.add(bblDocumentation); allFunctionDocumentation.add(binDocumentation); allFunctionDocumentation.add(blockfaceDocumentation); allFunctionDocumentation.add(intersectionDocumentation); allFunctionDocumentation.add(placeDocumentation); } return allFunctionDocumentation; }  boolean isSupported(ItemDocumentation itemDocumentation); List<String> applicableFunctions(ItemDocumentation itemDocumentation); List<FunctionDocumentation> getAllFunctionDocumentation(); FunctionDocumentation getAddressDocumentation(); FunctionDocumentation getBblDocumentation(); FunctionDocumentation getBinDocumentation(); FunctionDocumentation getBlockfaceDocumentation(); DataDictionary getDataDictionary(); FunctionDocumentation getIntersectionDocumentation(); FunctionDocumentation getPlaceDocumentation(); void setAddressDocumentation(FunctionDocumentation addressDocumentation); void setBblDocumentation(FunctionDocumentation bblDocumentation); void setBinDocumentation(FunctionDocumentation binDocumentation); void setBlockfaceDocumentation(FunctionDocumentation blockfaceDocumentation); void setDataDictionary(DataDictionary dataDictionary); void setIntersectionDocumentation(FunctionDocumentation intersectionDocumentation); void setPlaceDocumentation(FunctionDocumentation placeDocumentation); static final String ADDRESS_FUNCTION; static final String BBL_FUNCTION; static final String BIN_FUNCTION; static final String BLOCKFACE_FUNCTION; static final String INTERSECTION_FUNCTION; static final String PLACE_FUNCTION; static final String ADDRESS_AND_PLACE_FUNCTIONS; static final Map<String, String> FUNCTION_MAPPING; }
@Test public void testGetAllFunctionDocumentation() { FunctionDocumentation address = new FunctionDocumentation(); FunctionDocumentation bbl = new FunctionDocumentation(); FunctionDocumentation bin = new FunctionDocumentation(); FunctionDocumentation blockface = new FunctionDocumentation(); FunctionDocumentation intersection = new FunctionDocumentation(); FunctionDocumentation place = new FunctionDocumentation(); this.documentation.setAddressDocumentation(address); this.documentation.setBblDocumentation(bbl); this.documentation.setBinDocumentation(bin); this.documentation.setBlockfaceDocumentation(blockface); this.documentation.setIntersectionDocumentation(intersection); this.documentation.setPlaceDocumentation(place); List<FunctionDocumentation> result = this.documentation.getAllFunctionDocumentation(); assertEquals(6, result.size()); assertSame(address,result.get(0)); assertSame(bbl,result.get(1)); assertSame(bin,result.get(2)); assertSame(blockface,result.get(3)); assertSame(intersection,result.get(4)); assertSame(place,result.get(5)); }