JexlNumericFunctions implements ExpressionContextVisitor { public String randomNegativeWhole(Object olength) { return "-" + randomPositiveWhole(olength); }  @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 testRandomNegativeWhole() { String random = variables.evaluate("#{numericFunctions.randomNegativeWhole(5)}"); assertNotNull(random); assertTrue(random.length() == 6); random = variables.evaluate("#{numericFunctions.randomNegativeWhole(two_int)}"); assertNotNull(random); assertTrue(random.length() == 3); }