use of org.opengis.filter.PropertyIsLessThan in project ddf by codice.
the class TestCswRecordMapperFilterVisitor method testVisitPropertyIsLessThanTemporal.
@Test
public void testVisitPropertyIsLessThanTemporal() {
Expression val = factory.literal(new Date());
PropertyIsLessThan filter = factory.less(created, val);
Object obj = visitor.visit(filter, null);
assertThat(obj, instanceOf(Before.class));
Before duplicate = (Before) obj;
assertThat(duplicate.getExpression1(), is(created));
assertThat(duplicate.getExpression2(), is(val));
}
use of org.opengis.filter.PropertyIsLessThan in project ddf by codice.
the class TestCswRecordMapperFilterVisitor method testVisitPropertyIsLessThan.
@Test
public void testVisitPropertyIsLessThan() {
Expression val = factory.literal(8);
PropertyIsLessThan filter = factory.less(attrExpr, val);
Object obj = visitor.visit(filter, null);
assertThat(obj, instanceOf(PropertyIsLessThan.class));
PropertyIsLessThan duplicate = (PropertyIsLessThan) obj;
assertThat(duplicate.getExpression1(), is(attrExpr));
assertThat(duplicate.getExpression2(), is(val));
}
Aggregations