protected static void oneTimeTearDown() throws Exception {
}
public void testAllInCollection() {
propertySensor1 = new ByteConstant((byte)1);
propertySensor2 = new ByteConstant((byte)2);
propertySensor3 = new ByteConstant((byte)3);
propertySensor4 = new ByteConstant((byte)4);
propertySensor5 = new ByteConstant((byte)5);
propertySensor6 = new ByteConstant((byte)6);
propertySensor7 = new ByteConstant((byte)7);
propertySensor8 = new ByteConstant((byte)8);
StringConstant stringLOR = new StringConstant("\"OR\"");
StringConstant stringLAND = new StringConstant("\"AND\"");
StringConstant stringBXOR = new StringConstant("\"XOR\"");
StringConstant stringNOT_EQUAL = new StringConstant("\"NOT_EQUAL\"");
StringConstant stringEQUAL = new StringConstant("\"EQUAL\"");
StringConstant stringLT = new StringConstant("\"LESS\"");
StringConstant stringGT = new StringConstant("\"GREATER\"");
StringConstant stringLE = new StringConstant("\"LESS_OR_EQUAL\"");
StringConstant stringGE = new StringConstant("\"GREATER_OR_EQUAL\"");
try {
Vector v = new Vector();
Vector vbytes = new Vector();
vbytes.add(propertySensor1);
vbytes.add(propertySensor2);
vbytes.add(propertySensor3);
vbytes.add(propertySensor4);
vbytes.add(propertySensor5);
vbytes.add(propertySensor6);
vbytes.add(propertySensor7);
vbytes.add(propertySensor8);
Expression collection = new BasicCollectionExpression(vbytes,null);
v.add(new ByteConstant((byte)0));
v.add(stringGT);
v.add(collection);
Expression es1 = new AllInCollection(v,true);
v.clear();
v.add(new ByteConstant((byte)10));
v.add(stringLT);
v.add(collection);
Expression es2 = new AllInCollection(v,true);
v.clear();
v.add(new ByteConstant((byte)8));
v.add(stringLE);
v.add(collection);
Expression es3 = new AllInCollection(v,true);
v.clear();
v.add(new ByteConstant((byte)1));
v.add(stringGE);
v.add(collection);
Expression es4 = new AllInCollection(v,true);
v.clear();