Search in sources :

Example 1 with PropertyIsNotEqualTo

use of org.opengis.filter.PropertyIsNotEqualTo in project ddf by codice.

the class TestCswRecordMapperFilterVisitor method testVisitPropertyIsNotEqualToCaseInsensitive.

@Test
public void testVisitPropertyIsNotEqualToCaseInsensitive() {
    Expression val = factory.literal("foo");
    PropertyIsNotEqualTo filter = factory.notEqual(attrExpr, val, false);
    PropertyIsNotEqualTo duplicate = (PropertyIsNotEqualTo) visitor.visit(filter, null);
    assertThat(duplicate.getExpression1(), is(attrExpr));
    assertThat(duplicate.getExpression2(), is(val));
    assertThat(duplicate.isMatchingCase(), is(false));
}
Also used : Expression(org.opengis.filter.expression.Expression) PropertyIsNotEqualTo(org.opengis.filter.PropertyIsNotEqualTo) CswQueryFactoryTest(org.codice.ddf.spatial.ogc.csw.catalog.endpoint.CswQueryFactoryTest) Test(org.junit.Test)

Aggregations

CswQueryFactoryTest (org.codice.ddf.spatial.ogc.csw.catalog.endpoint.CswQueryFactoryTest)1 Test (org.junit.Test)1 PropertyIsNotEqualTo (org.opengis.filter.PropertyIsNotEqualTo)1 Expression (org.opengis.filter.expression.Expression)1