@Test public void aCustomRegistryDoesNotContainTheDefaultFunctions() { FunctionRegistry customRegistry = new FunctionRegistry( new TestFunction("foo", ArgumentConstraints.typeOf(JmesPathType.STRING)) ); for (String functionName : DEFAULT_FUNCTION_NAMES) { assertThat(customRegistry.getFunction(functionName), is(nullValue())); } }
public Function getFunction(String functionName) { return functions.get(functionName); }
FunctionRegistry { public Function getFunction(String functionName) { return functions.get(functionName); } }
FunctionRegistry { public Function getFunction(String functionName) { return functions.get(functionName); } FunctionRegistry(Function... functions); private  FunctionRegistry(Map<String, Function> functions0, Function... functions1); }
FunctionRegistry { public Function getFunction(String functionName) { return functions.get(functionName); } FunctionRegistry(Function... functions); private  FunctionRegistry(Map<String, Function> functions0, Function... functions1); static FunctionRegistry defaultRegistry(); Function getFunction(String functionName); FunctionRegistry extend(Function... functions); }
FunctionRegistry { public Function getFunction(String functionName) { return functions.get(functionName); } FunctionRegistry(Function... functions); private  FunctionRegistry(Map<String, Function> functions0, Function... functions1); static FunctionRegistry defaultRegistry(); Function getFunction(String functionName); FunctionRegistry extend(Function... functions);  }