JexlNumericFunctions implements ExpressionContextVisitor { public String toInt(String num) { return Integer.toString(FunctionHandler.getInt(num)); }  @Override void visit(JexlContext context); String mod(Object num, Object mod); String add(Object... values); String subtract(Object... values); String random(Object omin, Object omax); String random(Object omax); String randomPositiveWhole(Object olength); String randomNegativeWhole(Object olength); String randomPositiveFloat(Object owhole, Object odecimal); String randomNegativeFloat(Object owhole, Object odecimal); String toInt(String num);  }
@Test @Tag(TestGroups.FUNCTIONAL) public void testToInt() { String result = variables.evaluate("#{numericFunctions.toInt(numericFunctions.add(authId, 2))}"); assertNotNull(result); assertEquals("12", result); }