use of ddf.catalog.filter.delegate.FilterToTextDelegate in project ddf by codice.
the class FilterAdapterTest method assertFilterEquals.
private void assertFilterEquals(String expected, Filter filter) {
FilterDelegate<String> delegate = new FilterToTextDelegate();
FilterAdapter fa = new GeotoolsFilterAdapterImpl();
String result = null;
try {
result = fa.adapt(filter, delegate);
} catch (UnsupportedQueryException e) {
fail(e.getMessage());
}
assertThat(result, is(expected));
}
use of ddf.catalog.filter.delegate.FilterToTextDelegate in project ddf by codice.
the class FilterAdapterTest method assertFilterFails.
private void assertFilterFails(Filter filter) {
FilterDelegate<String> delegate = new FilterToTextDelegate();
FilterAdapter fa = new GeotoolsFilterAdapterImpl();
try {
fa.adapt(filter, delegate);
fail("Expected UnsupportedQueryException");
} catch (UnsupportedQueryException e) {
// pass
}
}
Aggregations