@Test public void testDefaultPrintFunctions() { PrintFunctionLibrary library = new PrintFunctionLibrary(); PrintFunction.addPrintFunctions(library); assertEquals(13, library.getFunctionNames().size(), "Not enough print functions"); }
public Set<String> getFunctionNames() { Set<String> names = new HashSet<>(mapIdToFunction.keySet()); if (baselib != null) names.addAll(baselib.getFunctionNames()); return names; }
PrintFunctionLibrary { public Set<String> getFunctionNames() { Set<String> names = new HashSet<>(mapIdToFunction.keySet()); if (baselib != null) names.addAll(baselib.getFunctionNames()); return names; } }
PrintFunctionLibrary { public Set<String> getFunctionNames() { Set<String> names = new HashSet<>(mapIdToFunction.keySet()); if (baselib != null) names.addAll(baselib.getFunctionNames()); return names; } PrintFunctionLibrary();  PrintFunctionLibrary(PrintFunctionLibrary baselib); }
PrintFunctionLibrary { public Set<String> getFunctionNames() { Set<String> names = new HashSet<>(mapIdToFunction.keySet()); if (baselib != null) names.addAll(baselib.getFunctionNames()); return names; } PrintFunctionLibrary();  PrintFunctionLibrary(PrintFunctionLibrary baselib); void add(String funcName, PrintFunction func); PrintFunction get(String funcName); Set<String> getFunctionNames(); static PrintFunctionLibrary parsePrintFunctions(ConfigThingy conf); }
PrintFunctionLibrary { public Set<String> getFunctionNames() { Set<String> names = new HashSet<>(mapIdToFunction.keySet()); if (baselib != null) names.addAll(baselib.getFunctionNames()); return names; } PrintFunctionLibrary();  PrintFunctionLibrary(PrintFunctionLibrary baselib); void add(String funcName, PrintFunction func); PrintFunction get(String funcName); Set<String> getFunctionNames(); static PrintFunctionLibrary parsePrintFunctions(ConfigThingy conf);  }