}
@Test(dataProvider = "defaultTestCase", groups = "functions")
public void test(String formul, Object result)
{
Formula formula = null;
try
{
formula = new Formula(formul);
} catch (ParseException e1)
{
Assert.fail("Error while parsing the formula", e1);
}
try
{
formula.initialize(context);
} catch (EvaluationException e)
{
Assert.fail("Initialization Error", e);
}
Object eval = formula.evaluate();
if (Boolean.TRUE.equals(eval) == false)
{
Object eval2 = formula.evaluate();
}
Assert.assertEquals(eval, result, formul);
}