use of org.oasis_open.docs.wsn.b_2.FilterType in project ddf by codice.
the class TestCswFilterDelegate method testIntersectsPropertyOwsBoundingBoxMultiPolygon.
@Test
public void testIntersectsPropertyOwsBoundingBoxMultiPolygon() throws JAXBException, SAXException, IOException {
String propName = CswConstants.BBOX_PROP;
FilterType filterType = cswFilterDelegateLatLon.intersects(propName, multiPolygonWkt);
assertXMLEqual(intersectsMultiPolygonXmlPropertyOwsBoundingBox, getXmlFromMarshaller(filterType));
}
use of org.oasis_open.docs.wsn.b_2.FilterType in project ddf by codice.
the class TestCswCqlFilter method testIntersectsPropertyDctSpatial.
@Test
public void testIntersectsPropertyDctSpatial() throws UnsupportedQueryException {
String propName = CswConstants.SPATIAL_PROP;
FilterType filterType = cswFilterDelegate.intersects(propName, polygonWkt);
String cqlText = CswCqlTextFilter.getInstance().getCqlText(filterType);
assertThat(intersectsPolygonPropertyDctSpatial, is(cqlText));
}
use of org.oasis_open.docs.wsn.b_2.FilterType in project ddf by codice.
the class TestCswCqlFilter method testPropertyIsEqualToBooleanLiteral.
@Test
public void testPropertyIsEqualToBooleanLiteral() throws UnsupportedQueryException {
FilterType filterType = cswFilterDelegate.propertyIsEqualTo(propertyName, booleanLiteral);
String cqlText = CswCqlTextFilter.getInstance().getCqlText(filterType);
assertThat(propertyIsEqualToWithBoolean, is(cqlText));
}
use of org.oasis_open.docs.wsn.b_2.FilterType in project ddf by codice.
the class TestCswCqlFilter method testPropertyIsLessThanStringLiteralAnyText.
@Test
public void testPropertyIsLessThanStringLiteralAnyText() throws UnsupportedQueryException {
FilterType filterType = cswFilterDelegate.propertyIsLessThan(propertyNameAnyText, stringLiteral);
String cqlText = CswCqlTextFilter.getInstance().getCqlText(filterType);
assertThat(propertyIsLessThanAnyText, is(cqlText));
}
use of org.oasis_open.docs.wsn.b_2.FilterType in project ddf by codice.
the class TestCswCqlFilter method testPropertyIsLessThanOrEqualToDoubleLiteral.
@Test
public void testPropertyIsLessThanOrEqualToDoubleLiteral() throws UnsupportedQueryException {
FilterType filterType = cswFilterDelegate.propertyIsLessThanOrEqualTo(propertyName, doubleLiteral);
String cqlText = CswCqlTextFilter.getInstance().getCqlText(filterType);
assertThat(propertyIsLessThanOrEqualToWithDecimal, is(cqlText));
}
Aggregations