SfCrossesFF extends GenericFilterFunction { @Override protected boolean permittedTopology(DimensionInfo sourceDimensionInfo, DimensionInfo targetDimensionInfo) { return (sourceDimensionInfo.isPoint() && targetDimensionInfo.isLine()) || (sourceDimensionInfo.isPoint() && targetDimensionInfo.isArea()) || (sourceDimensionInfo.isLine() && targetDimensionInfo.isArea()) || (sourceDimensionInfo.isLine() && targetDimensionInfo.isLine()); }  @Override boolean isDisjoint(); @Override boolean isDisconnected();  }
@Test public void testPermittedTopology_point_point() { DimensionInfo sourceDimensionInfo = DimensionInfo.XY_POINT; DimensionInfo targetDimensionInfo = DimensionInfo.XY_POINT; SfCrossesFF instance = new SfCrossesFF(); boolean expResult = false; boolean result = instance.permittedTopology(sourceDimensionInfo, targetDimensionInfo); assertEquals(expResult, result); }
@Test public void testPermittedTopology_point_linestring() { DimensionInfo sourceDimensionInfo = DimensionInfo.XY_POINT; DimensionInfo targetDimensionInfo = DimensionInfo.XY_LINESTRING; SfCrossesFF instance = new SfCrossesFF(); boolean expResult = true; boolean result = instance.permittedTopology(sourceDimensionInfo, targetDimensionInfo); assertEquals(expResult, result); }
@Test public void testPermittedTopology_point_polygon() { DimensionInfo sourceDimensionInfo = DimensionInfo.XY_POINT; DimensionInfo targetDimensionInfo = DimensionInfo.XY_POLYGON; SfCrossesFF instance = new SfCrossesFF(); boolean expResult = true; boolean result = instance.permittedTopology(sourceDimensionInfo, targetDimensionInfo); assertEquals(expResult, result); }
@Test public void testPermittedTopology_linestring_linestring() { DimensionInfo sourceDimensionInfo = DimensionInfo.XY_LINESTRING; DimensionInfo targetDimensionInfo = DimensionInfo.XY_LINESTRING; SfCrossesFF instance = new SfCrossesFF(); boolean expResult = true; boolean result = instance.permittedTopology(sourceDimensionInfo, targetDimensionInfo); assertEquals(expResult, result); }
@Test public void testPermittedTopology_linestring_point() { DimensionInfo sourceDimensionInfo = DimensionInfo.XY_LINESTRING; DimensionInfo targetDimensionInfo = DimensionInfo.XY_POINT; SfCrossesFF instance = new SfCrossesFF(); boolean expResult = false; boolean result = instance.permittedTopology(sourceDimensionInfo, targetDimensionInfo); assertEquals(expResult, result); }
@Test public void testPermittedTopology_linestring_polygon() { DimensionInfo sourceDimensionInfo = DimensionInfo.XY_LINESTRING; DimensionInfo targetDimensionInfo = DimensionInfo.XY_POLYGON; SfCrossesFF instance = new SfCrossesFF(); boolean expResult = true; boolean result = instance.permittedTopology(sourceDimensionInfo, targetDimensionInfo); assertEquals(expResult, result); }
@Test public void testPermittedTopology_polygon_polygon() { DimensionInfo sourceDimensionInfo = DimensionInfo.XY_POLYGON; DimensionInfo targetDimensionInfo = DimensionInfo.XY_POLYGON; SfCrossesFF instance = new SfCrossesFF(); boolean expResult = false; boolean result = instance.permittedTopology(sourceDimensionInfo, targetDimensionInfo); assertEquals(expResult, result); }
@Test public void testPermittedTopology_polygon_linestring() { DimensionInfo sourceDimensionInfo = DimensionInfo.XY_POLYGON; DimensionInfo targetDimensionInfo = DimensionInfo.XY_LINESTRING; SfCrossesFF instance = new SfCrossesFF(); boolean expResult = false; boolean result = instance.permittedTopology(sourceDimensionInfo, targetDimensionInfo); assertEquals(expResult, result); }
@Test public void testPermittedTopology_polygon_point() { DimensionInfo sourceDimensionInfo = DimensionInfo.XY_POLYGON; DimensionInfo targetDimensionInfo = DimensionInfo.XY_POINT; SfCrossesFF instance = new SfCrossesFF(); boolean expResult = false; boolean result = instance.permittedTopology(sourceDimensionInfo, targetDimensionInfo); assertEquals(expResult, result); }