}
@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();
Assert.assertEquals(eval, result, "Failure on " + eval.getClass());
}