use of com.dexels.navajo.expression.compiled.GivePercentageTestFunction in project navajo by Dexels.
the class TestCompiledPercentageExpression method setup.
@Before
public void setup() {
FunctionInterface giveLongFunction = new GiveLongTestFunction();
FunctionDefinition fd = new FunctionDefinition(giveLongFunction.getClass().getName(), "description", "input", "result");
FunctionFactoryFactory.getInstance().addExplicitFunctionDefinition("ToLong", fd);
FunctionInterface givePercentageFunction = new GivePercentageTestFunction();
fd = new FunctionDefinition(givePercentageFunction.getClass().getName(), "description", "input", "result");
FunctionFactoryFactory.getInstance().addExplicitFunctionDefinition("ToPercentage", fd);
}
Aggregations