use of org.opengis.filter.expression.Function in project ddf by codice.
the class GeoToolsFunctionFactoryTest method testFuzzyFunction.
@Test
public void testFuzzyFunction() {
List<Expression> expr = new ArrayList<>();
expr.add(Expression.NIL);
Function result = toTest.function(FuzzyFunction.NAME.getName(), expr, null);
assertThat(result.getName(), is(FuzzyFunction.NAME.getName()));
}
use of org.opengis.filter.expression.Function in project ddf by codice.
the class GeoToolsFunctionFactoryTest method testFunctionForValidNameWithTooManyExpressions.
@Test(expected = IllegalArgumentException.class)
public void testFunctionForValidNameWithTooManyExpressions() {
List<Expression> expr = new ArrayList<>();
expr.add(Expression.NIL);
expr.add(Expression.NIL);
Function result = toTest.function(FuzzyFunction.NAME.getName(), expr, null);
assertThat(result.getName(), is(FuzzyFunction.NAME.getName()));
}
use of org.opengis.filter.expression.Function in project ddf by codice.
the class GeoToolsFunctionFactoryTest method testProximityFunction.
@Test
public void testProximityFunction() {
List<Expression> expr = new ArrayList<>();
expr.add(Expression.NIL);
expr.add(Expression.NIL);
expr.add(Expression.NIL);
Function result = toTest.function(ProximityFunction.NAME.getName(), expr, null);
assertThat(result.getName(), is(ProximityFunction.NAME.getName()));
}
Aggregations