Search in sources :

Example 1 with LiteralImpl

use of ddf.catalog.filter.impl.LiteralImpl in project ddf by codice.

the class OpenSearchFilterVisitorTest method testPropertyIsEqualToLiteral.

@Test
public void testPropertyIsEqualToLiteral() {
    PropertyIsEqualTo propertyIsEqualToLiteralFilter = new PropertyIsEqualToLiteral(new PropertyNameImpl(ID_ATTRIBUTE_NAME), new LiteralImpl(TEST_STRING));
    OpenSearchFilterVisitorObject openSearchFilterVisitorObject = new OpenSearchFilterVisitorObject();
    OpenSearchFilterVisitorObject result = (OpenSearchFilterVisitorObject) openSearchFilterVisitor.visit(propertyIsEqualToLiteralFilter, openSearchFilterVisitorObject);
    assertThat(result.getId(), is(TEST_STRING));
}
Also used : LiteralImpl(ddf.catalog.filter.impl.LiteralImpl) PropertyIsEqualTo(org.opengis.filter.PropertyIsEqualTo) PropertyIsEqualToLiteral(ddf.catalog.filter.impl.PropertyIsEqualToLiteral) PropertyNameImpl(ddf.catalog.filter.impl.PropertyNameImpl) Test(org.junit.Test)

Aggregations

LiteralImpl (ddf.catalog.filter.impl.LiteralImpl)1 PropertyIsEqualToLiteral (ddf.catalog.filter.impl.PropertyIsEqualToLiteral)1 PropertyNameImpl (ddf.catalog.filter.impl.PropertyNameImpl)1 Test (org.junit.Test)1 PropertyIsEqualTo (org.opengis.filter.PropertyIsEqualTo)1