|
Issue Type:
|
Bug
|
Affects Versions:
|
2.2.x, 2.3-beta1
|
Assignee:
|
Andrea Aime
|
Attachments:
|
test2.txt
|
Created:
|
06/Sep/12 7:22 AM
|
Description:
|
Hi,
this Jira is coming out after a discussion with Andrea.
I’m not able to run a complete GeoServer compilation with JUnit tests enabled.
The problem is into this test:
src/wcs1_1/src/test/java/org/geoserver/wcs/GetCoverageTest.java
index d42c25a…becbf3f 100644
@@ -205,7 +205,8 @@ public class GetCoverageTest extends AbstractGetCoverageTest {
…
public void testReproject() throws Exception { // add the target code to the supported ones Catalog catalog = getCatalog(); final String layerId = getLayerId(TASMANIA_BM); CoverageInfo ci = catalog.getCoverageByName(layerId); ci.getResponseSRS().add(“EPSG:3857”); catalog.save(ci); // do the request Map<String, Object> raw = baseMap(); raw.put(“identifier”, layerId); raw.put(“format”, “image/geotiff”); raw.put(“BoundingBox”, “-80,-180,80,180,urn:ogc:def:crs:EPSG:6.6:4326” raw.put(“GridBaseCRS”, “EPSG:3857”); GridCoverage coverages = executeGetCoverageKvp(raw); Envelope envelope = coverages[0].getEnvelope(); System.out.println(envelope); CoordinateReferenceSystem targetCRS = CRS.decode(“EPSG:3857”); assertEquals(targetCRS, envelope.getCoordinateReferenceSystem()); ReferencedEnvelope nativeBounds = ci.getNativeBoundingBox(); ReferencedEnvelope expected = nativeBounds.transform(targetCRS, true); assertEquals(expected.getMinimum(0), envelope.getMinimum(0)); assertEquals(expected.getMaximum(0), envelope.getMaximum(0)); assertEquals(expected.getMinimum(1), envelope.getMinimum(1)); assertEquals(expected.getMaximum(1), envelope.getMaximum(1)); }
…
}
Commenting out this test compilation and tests are successfully completed.
I’ve also tried (with no success) to reduce the bounding box:
raw.put(“BoundingBox”, “-45,140,-40,150,urn:ogc:def:crs:EPSG:6.6:4326”);
Jstack is attached.
|
Environment:
|
$ mvn -version
Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
Java version: 1.6.0_31
Java home: c:\Program Files\Java\jdk1.6.0_31\jre
Default locale: en_GB, platform encoding: Cp1252
OS name: “windows vista” version: “6.0” arch: “x86” Family: “windows”
|
Project:
|
GeoServer
|
Labels:
|
junit maven geoserver windows vista
|
Priority:
|
Major
|
Reporter:
|
carlo cancellieri
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your [JIRA administrators](https://jira.codehaus.org/secure/ContactAdministrators!default.jspa).
For more information on JIRA, see: [http://www.atlassian.com/software/jira](http://www.atlassian.com/software/jira)