Unit tests fail in path with spaces
-----------------------------------
Key: GEOS-1760
URL: http://jira.codehaus.org/browse/GEOS-1760
Project: GeoServer
Issue Type: Bug
Affects Versions: 1.6.x
Environment: Windows XP i386
Reporter: Ben Caradoc-Davies
Assignee: Andrea Aime
Priority: Minor
Unit tests fail when the path to the working directory contains spaces.
Procedure to repeat:
mkdir "path with spaces"
cd "path with spaces"
svn export https://svn.codehaus.org/geoserver/branches/1.6.x GeoServer-1.6
cd GeoServer-1.6\geoserver
mvn install
Result: Build fails with many, many unit test failures. For example:
-------------------------------------------------------------------------------
Test set: org.geoserver.wfs.GeometrylessTest
-------------------------------------------------------------------------------
Tests run: 8, Failures: 0, Errors: 8, Skipped: 0, Time elapsed: 4.876 sec <<< FAILURE!
testGetFeature10(org.geoserver.wfs.GeometrylessTest) Time elapsed: 0.563 sec <<< ERROR!
java.io.IOException: Could not write catalog to .\target\mock49894data\catalog.xml
at org.geoserver.data.CatalogWriter.write(CatalogWriter.java:204)
at org.geoserver.data.test.MockData.setUp(MockData.java:414)
at org.geoserver.data.test.MockData.setUp(MockData.java:314)
at org.geoserver.test.GeoServerTestSupport.setUp(GeoServerTestSupport.java:93)
at junit.framework.TestCase.runBare(TestCase.java:125)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:308)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:879)
Caused by: javax.xml.transform.TransformerException: java.io.FileNotFoundException: C:\Users\car605\path%20with%20spaces\GeoServer-1.6\geoserver\wfs\.\target\mock49894data\catalog.xml (The system cannot find the path specified)
at org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:296)
at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:329)
at org.geoserver.data.CatalogWriter.write(CatalogWriter.java:201)
... 24 more
Caused by: java.io.FileNotFoundException: C:\Users\car605\path%20with%20spaces\GeoServer-1.6\geoserver\wfs\.\target\mock49894data\catalog.xml (The system cannot find the path specified)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
at org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:286)
... 26 more
... 26 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira