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));
}
Aggregations