Object actual = e.evaluate(jc);
assertEquals(Boolean.FALSE, actual);
}
public void test_COMPLEX() throws Exception {
JexlContext jc = JexlHelper.createContext();
jc.getVars().put("A", Boolean.TRUE);
jc.getVars().put("B", Boolean.FALSE);
jc.getVars().put("C", Boolean.FALSE);
Expression e = ExpressionFactory.createExpression("(A || B) && !C");
Object actual = e.evaluate(jc);
assertEquals(Boolean.TRUE, actual);
}