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