SfWithinFF extends GenericFilterFunction { @Override protected boolean relate(GeometryWrapper sourceGeometry, GeometryWrapper targetGeometry) throws FactoryException, MismatchedDimensionException, TransformException { return sourceGeometry.within(targetGeometry); }  @Override boolean isDisjoint(); @Override boolean isDisconnected();  }
@Test public void testRelate_polygon_point() throws FactoryException, MismatchedDimensionException, TransformException { GeometryWrapper subjectGeometryWrapper = GeometryWrapper.extract(ResourceFactory.createTypedLiteral("<http: GeometryWrapper objectGeometryWrapper = GeometryWrapper.extract(ResourceFactory.createTypedLiteral("<http: SfWithinFF instance = new SfWithinFF(); Boolean expResult = true; Boolean result = instance.relate(subjectGeometryWrapper, objectGeometryWrapper); assertEquals(expResult, result); }
@Test public void testRelate_polygon_linestring() throws FactoryException, MismatchedDimensionException, TransformException { GeometryWrapper subjectGeometryWrapper = GeometryWrapper.extract(ResourceFactory.createTypedLiteral("<http: GeometryWrapper objectGeometryWrapper = GeometryWrapper.extract(ResourceFactory.createTypedLiteral("<http: SfWithinFF instance = new SfWithinFF(); Boolean expResult = true; Boolean result = instance.relate(subjectGeometryWrapper, objectGeometryWrapper); assertEquals(expResult, result); }
@Test public void testRelate_polygon_polygon() throws FactoryException, MismatchedDimensionException, TransformException { GeometryWrapper subjectGeometryWrapper = GeometryWrapper.extract(ResourceFactory.createTypedLiteral("<http: GeometryWrapper objectGeometryWrapper = GeometryWrapper.extract(ResourceFactory.createTypedLiteral("<http: SfWithinFF instance = new SfWithinFF(); Boolean expResult = true; Boolean result = instance.relate(subjectGeometryWrapper, objectGeometryWrapper); assertEquals(expResult, result); }
@Test public void testRelate_polygon_point_false() throws FactoryException, MismatchedDimensionException, TransformException { GeometryWrapper subjectGeometryWrapper = GeometryWrapper.extract(ResourceFactory.createTypedLiteral("<http: GeometryWrapper objectGeometryWrapper = GeometryWrapper.extract(ResourceFactory.createTypedLiteral("<http: SfWithinFF instance = new SfWithinFF(); Boolean expResult = false; Boolean result = instance.relate(subjectGeometryWrapper, objectGeometryWrapper); assertEquals(expResult, result); }
@Test public void testRelate_polygon_linestring_false() throws FactoryException, MismatchedDimensionException, TransformException { GeometryWrapper subjectGeometryWrapper = GeometryWrapper.extract(ResourceFactory.createTypedLiteral("<http: GeometryWrapper objectGeometryWrapper = GeometryWrapper.extract(ResourceFactory.createTypedLiteral("<http: SfWithinFF instance = new SfWithinFF(); Boolean expResult = false; Boolean result = instance.relate(subjectGeometryWrapper, objectGeometryWrapper); assertEquals(expResult, result); }
@Test public void testRelate_polygon_polygon_false() throws FactoryException, MismatchedDimensionException, TransformException { GeometryWrapper subjectGeometryWrapper = GeometryWrapper.extract(ResourceFactory.createTypedLiteral("<http: GeometryWrapper objectGeometryWrapper = GeometryWrapper.extract(ResourceFactory.createTypedLiteral("<http: SfWithinFF instance = new SfWithinFF(); Boolean expResult = false; Boolean result = instance.relate(subjectGeometryWrapper, objectGeometryWrapper); assertEquals(expResult, result); }