try {
Vector v = new Vector();
v.add(propertySensor1);
v.add(propertySensor2);
Expression expression1 = new LogicalOr(v,true);
//false
v.clear();
v.add(propertySensor6);
v.add(propertySensor7);
Expression expression2 = new LogicalOr(v,true);
//true
v.clear();
v.add(propertySensor1);
v.add(propertySensor6);
Expression expression3 = new LogicalOr(v,true);
//true
v.clear();
v.add(propertySensor1);
v.add(new BooleanConstant(false));
Expression expression4 = new LogicalOr(v,true);
//false
v.clear();
v.add(new BooleanConstant(false));
v.add(new BooleanConstant(false));
Expression expression5 = new LogicalOr(v,true);
assertTrue(((Boolean) expression1.evaluate()).booleanValue());
assertFalse(
((Boolean) expression2.evaluate()).booleanValue());
assertTrue(((Boolean) expression3.evaluate()).booleanValue());
assertTrue(((Boolean) expression4.evaluate()).booleanValue());
assertFalse(
((Boolean) expression5.evaluate()).booleanValue());
} catch (SPLException e) {
logger.severe("Received evaluation exception " + e.getMessage());
fail("Received evaluation exception " + e.getMessage());
} catch (Exception e) {
logger.severe("Received evaluation exception " + e.getMessage());