public void testAndCombination()
{
try
{
log.trace("parse(JMSType = 'car' AND color = 'blue' AND weight > 2500)");
Operator result = (Operator)parser.parse("JMSType = 'car' AND color = 'blue' AND weight > 2500", identifierMap);
((Identifier) identifierMap.get("JMSType")).setValue("car");
((Identifier) identifierMap.get("color")).setValue("blue");
((Identifier) identifierMap.get("weight")).setValue("3000");
log.trace("result -> "+result);
Boolean bool = (Boolean) result.apply();
assertTrue("is false", !bool.booleanValue());
} catch (Exception e)
{
log.trace("failed", e);
fail(""+e);