try {
// Property1 > Property2 (20 > 5) = true
Vector v = new Vector();
v.add(propertySensor1);
v.add(propertySensor2);
Expression expression1 = new Greater(v,true);
// Property3 > Property1 (-20 > 20) = false
v.clear();
v.add(propertySensor3);
v.add(propertySensor1);
Expression expression2 = new Greater(v,true);
v.clear();
v.add(propertySensor1);
v.add(new ShortConstant((short) 5));
Expression expression3 = new Greater(v,true);
v.clear();
v.add(new ShortConstant((short) - 20));
v.add(new ShortConstant((short) 20));
Expression expression4 = new Greater(v,true);
//TODO at least one comparison for each of the numeric types against another numeric type
assertTrue(((Boolean) expression1.evaluate()).booleanValue());
assertFalse(
((Boolean) expression2.evaluate()).booleanValue());
assertTrue(((Boolean) expression3.evaluate()).booleanValue());
assertFalse(
((Boolean) expression4.evaluate()).booleanValue());
} catch (SPLException e) {
logger.severe("Received evaluation exception " + e.getMessage());
fail("Received evaluation exception " + e.getMessage());
} catch (Exception e) {