Package com.consol.citrus.functions
Interface Function
-
public interface FunctionGeneral function interface.- Author:
- Christoph Deppisch
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringexecute(List<String> parameterList, TestContext context)Method called on execution.static Map<String,Function>lookup()Resolves all available functions from resource path lookup.
-
-
-
Field Detail
-
LOG
static final org.slf4j.Logger LOG
Logger
-
RESOURCE_PATH
static final String RESOURCE_PATH
Function resource lookup path- See Also:
- Constant Field Values
-
-
Method Detail
-
lookup
static Map<String,Function> lookup()
Resolves all available functions from resource path lookup. Scans classpath for function meta information and instantiates those functions.- Returns:
-
execute
String execute(List<String> parameterList, TestContext context)
Method called on execution.- Parameters:
parameterList- list of function arguments.context-- Returns:
- function result as string.
-
-