public void testDistanceBufferType() { assertEquals(DistanceBufferOperator.class, binding(OGC.DistanceBufferType).getType()); }
public void testTouchesEncode() throws Exception { Document dom = encode(FilterMockData.touches(), OGC.Touches); assertEquals( 1, dom.getElementsByTagNameNS(OGC.NAMESPACE, OGC.PropertyName.getLocalPart()) .getLength()); assertEquals( 1, dom.getElementsByTagNameNS(GML.NAMESPACE, GML.Point.getLocalPart()).getLength()); }
public void testWithinParse() throws Exception { FilterMockData.within(document, document); Within within = (Within) parse(); assertNotNull(within.getExpression1()); assertNotNull(within.getExpression2()); }
public void testDWithinParse() throws Exception { FilterMockData.dwithin(document, document); DWithin dwithin = (DWithin) parse(); assertNotNull(dwithin.getExpression1()); assertNotNull(dwithin.getExpression2()); assertEquals(1.0, dwithin.getDistance(), 0.1); assertEquals("m", dwithin.getDistanceUnits()); }
public void testWithFunctionParse() throws Exception { FilterMockData.withinWithFunction(document, document); Within within = (Within) parse(); assertNotNull(within.getExpression1()); assertNotNull(within.getExpression2()); assertTrue(within.getExpression2() instanceof Function); }
public void testContainsParse() throws Exception { FilterMockData.contains(document, document); Contains contains = (Contains) parse(); assertNotNull(contains.getExpression1()); assertNotNull(contains.getExpression2()); }
public void testBeyondParse() throws Exception { FilterMockData.beyond(document, document); Beyond beyond = (Beyond) parse(); assertNotNull(beyond.getExpression1()); assertNotNull(beyond.getExpression2()); assertEquals(1.0, beyond.getDistance(), 0.1); assertEquals("m", beyond.getDistanceUnits()); }
public void testIntersectsType() { assertEquals(Intersects.class, binding(OGC.Intersects).getType()); }
public void testCrossesEncode() throws Exception { Document dom = encode(FilterMockData.crosses(), OGC.Crosses); assertEquals( 1, dom.getElementsByTagNameNS(OGC.NAMESPACE, OGC.PropertyName.getLocalPart()) .getLength()); assertEquals( 1, dom.getElementsByTagNameNS(GML.NAMESPACE, GML.Point.getLocalPart()).getLength()); }
public void testTouchesParse() throws Exception { FilterMockData.touches(document, document); Touches touches = (Touches) parse(); assertNotNull(touches.getExpression1()); assertNotNull(touches.getExpression2()); }
public void testDWithinType() { assertEquals(DWithin.class, binding(OGC.DWithin).getType()); }
public void testWithinEncode() throws Exception { Document dom = encode(FilterMockData.within(), OGC.Within); assertEquals( 1, dom.getElementsByTagNameNS(OGC.NAMESPACE, OGC.PropertyName.getLocalPart()) .getLength()); assertEquals( 1, dom.getElementsByTagNameNS(GML.NAMESPACE, GML.Point.getLocalPart()).getLength()); }
public void testCrossesParse() throws Exception { FilterMockData.crosses(document, document); Crosses crosses = (Crosses) parse(); assertNotNull(crosses.getExpression1()); assertNotNull(crosses.getExpression2()); }
public void testBinarySpatialOpType() { assertEquals(BinarySpatialOperator.class, binding(OGC.BinarySpatialOpType).getType()); }
public void testContainsEncode() throws Exception { Document dom = encode(FilterMockData.contains(), OGC.Contains); assertEquals( 1, dom.getElementsByTagNameNS(OGC.NAMESPACE, OGC.PropertyName.getLocalPart()) .getLength()); assertEquals( 1, dom.getElementsByTagNameNS(GML.NAMESPACE, GML.Point.getLocalPart()).getLength()); }
public void testDisjointParse() throws Exception { FilterMockData.disjoint(document, document); Disjoint disjoint = (Disjoint) parse(); assertNotNull(disjoint.getExpression1()); assertNotNull(disjoint.getExpression2()); }
public void testDisjointType() { assertEquals(Disjoint.class, binding(OGC.Disjoint).getType()); }
public void testIntersectsEncode() throws Exception { Document dom = encode(FilterMockData.intersects(), OGC.Intersects); assertEquals( 1, dom.getElementsByTagNameNS(OGC.NAMESPACE, OGC.PropertyName.getLocalPart()) .getLength()); assertEquals( 1, dom.getElementsByTagNameNS(GML.NAMESPACE, GML.Point.getLocalPart()).getLength()); }
public void testOverlapsParse() throws Exception { FilterMockData.overlaps(document, document); Overlaps overlaps = (Overlaps) parse(); assertNotNull(overlaps.getExpression1()); assertNotNull(overlaps.getExpression2()); }
public void testEqualsType() { assertEquals(Equals.class, binding(OGC.Equals).getType()); }