//true
Vector v = new Vector();
v.add(propertySensor1);
v.add(propertySensor2);
Expression expression1 = new LogicalAnd(v,true);
//false
v.clear();
v.add(propertySensor6);
v.add(propertySensor7);
Expression expression2 = new LogicalAnd(v,true);
//false
v.clear();
v.add(propertySensor1);
v.add(propertySensor6);
Expression expression3 = new LogicalAnd(v,true);
//false
v.clear();
v.add(propertySensor1);
v.add(new BooleanConstant(false));
Expression expression4 = new LogicalAnd(v,true);
//false
v.clear();
v.add(new BooleanConstant(true));
v.add(new BooleanConstant(false));
Expression expression5 = new LogicalAnd(v,true);
//true
v.clear();
v.add(new BooleanConstant(true));
v.add(new BooleanConstant(true));
Expression expression6 = new LogicalAnd(v,true);
assertTrue(((Boolean) expression1.evaluate()).booleanValue());
assertFalse(
((Boolean) expression2.evaluate()).booleanValue());
assertFalse(
((Boolean) expression3.evaluate()).booleanValue());
assertFalse(
((Boolean) expression4.evaluate()).booleanValue());
assertFalse(
((Boolean) expression5.evaluate()).booleanValue());
assertTrue(((Boolean) expression6.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());