try {
//propertySensor1 == propertySensor2
v.add(propertySensor1);
v.add(propertySensor2);
Expression expression12 = new Equal(v,true);
//propertySensor1 != propertySensor3
v.clear();
v.add(propertySensor1);
v.add(propertySensor3);
Expression expression13 = new Equal(v,true);
//propertySensor1 != propertySensor4
v.clear();
v.add(propertySensor1);
v.add(propertySensor4);
Expression expression14 = new Equal(v,true);
//propertySensor1 != propertySensor5
v.clear();
v.add(propertySensor1);
v.add(propertySensor5);
Expression expression15 = new Equal(v,true);
//One sensor w/ one Constant (equal)
v.clear();
v.add(propertySensor1);
v.add(new ShortConstant((short) 500));
Expression expressionIntegerConstant1 = new Equal(v,true);
//Two Constants (not equal)
v.clear();
v.add(new ShortConstant((short) - 100));
v.add(new ShortConstant((short) 100));
Expression expressionIntegerConstant2 = new Equal(v,true);
assertTrue(
((Boolean) expression12.evaluate()).booleanValue());
assertFalse(
((Boolean) expression13.evaluate()).booleanValue());
assertFalse(
((Boolean) expression14.evaluate()).booleanValue());
assertFalse(
((Boolean) expression15.evaluate()).booleanValue());
assertTrue(
((Boolean) expressionIntegerConstant1.evaluate())
.booleanValue());
assertFalse(
((Boolean) expressionIntegerConstant2.evaluate())
.booleanValue());
} catch (SPLException e) {
logger.severe("Received evaluation exception " + e.getMessage());
fail("Received evaluation exception " + e.getMessage());