propertySensor5=new DateTimeConstant(c2);
// Property1 == Property2 (true == false) = false
List v = new ArrayList();
v.add(propertySensor1);
v.add(propertySensor3);
Expression firstExpression = new NotEqual(v,true);
// Property1 == Property3 (true == true) = true
v.clear();
v.add(propertySensor1);
v.add(propertySensor2);
Expression secondExpression = new NotEqual(v,true);
v.clear();
v.add(propertySensor4);
v.add(propertySensor5);
Expression thirdExpression = new NotEqual(v,true);
// Property1 == ConstantTrue (true==true) = true
//System.out.println("c1 c2 :"+ c1.toString() + " "+c2.toString());
assertFalse(
((Boolean) firstExpression.evaluate()).booleanValue());
assertTrue(
((Boolean) secondExpression.evaluate()).booleanValue());
assertTrue(
((Boolean) thirdExpression.evaluate()).booleanValue());
} catch (SPLException e) {
logger.severe("Received evaluation exception " + e.getMessage());
e.printStackTrace();
fail("Received evaluation exception " + e.getMessage());