public void testStrings() throws Exception
{
StringValueExp value1 = new StringValueExp("a");
StringValueExp value2 = new StringValueExp("a");
QueryExp operation = Query.eq(value1, value2);
assertTrue(operation.apply(null));
operation = Query.geq(value1, value2);
assertTrue(operation.apply(null));
operation = Query.gt(value1, value2);
assertTrue(!operation.apply(null));
operation = Query.leq(value1, value2);
assertTrue(operation.apply(null));
operation = Query.lt(value1, value2);
assertTrue(!operation.apply(null));
value1 = new StringValueExp("a");
value2 = new StringValueExp("b");
operation = Query.geq(value1, value2);
assertTrue(!operation.apply(null));
operation = Query.geq(value2, value1);
assertTrue(operation.apply(null));
operation = Query.gt(value1, value2);
assertTrue(!operation.apply(null));
operation = Query.gt(value2, value1);
assertTrue(operation.apply(null));
operation = Query.leq(value1, value2);
assertTrue(operation.apply(null));
operation = Query.leq(value2, value1);
assertTrue(!operation.apply(null));
operation = Query.lt(value1, value2);
assertTrue(operation.apply(null));
operation = Query.lt(value2, value1);
assertTrue(!operation.apply(null));
}