SearchEnvelope { public Envelope getWrapEnvelope() { return wrapEnvelope; } protected  SearchEnvelope(Envelope envelope, SRSInfo srsInfo); Envelope getMainEnvelope(); Envelope getWrapEnvelope(); String getSrsURI(); SRSInfo getCrsInfo(); HashSet<Resource> check(SpatialIndex spatialIndex); boolean check(Envelope envelope); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); static SearchEnvelope build(GeometryWrapper geometryWrapper, SRSInfo srsInfo, double radius, String unitsURI); static SearchEnvelope build(GeometryWrapper geometryWrapper, SRSInfo srsInfo); static SearchEnvelope build(GeometryWrapper geometryWrapper, SRSInfo srsInfo, CardinalDirection direction);  }
@Test public void testGetWrapEnvelope() { SearchEnvelope instance = new SearchEnvelope(new Envelope(0, 10, 0, 10), SpatialIndexTestData.WGS_84_SRS_INFO); Envelope expResult = null; Envelope result = instance.getWrapEnvelope(); assertEquals(expResult, result); }
@Test public void testGetWrapEnvelope2() { SearchEnvelope instance = new SearchEnvelope(new Envelope(40, 220, 0, 10), SpatialIndexTestData.WGS_84_SRS_INFO); Envelope expResult = new Envelope(-180, -140, 0, 10); Envelope result = instance.getWrapEnvelope(); assertEquals(expResult, result); }
@Test public void testGetWrapEnvelope3() { SearchEnvelope instance = new SearchEnvelope(new Envelope(-220, -40, 0, 10), SpatialIndexTestData.WGS_84_SRS_INFO); Envelope expResult = new Envelope(140, 180, 0, 10); Envelope result = instance.getWrapEnvelope(); assertEquals(expResult, result); }
@Test public void testGetWrapEnvelope_OSGB() { SearchEnvelope instance = new SearchEnvelope(new Envelope(-220, -40, 0, 10), SpatialIndexTestData.OSGB_SRS_INFO); Envelope expResult = null; Envelope result = instance.getWrapEnvelope(); assertEquals(expResult, result); }