commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <garydgreg...@gmail.com>
Subject Re: [VFS] trunk RamProvider tests failing?
Date Wed, 30 Jan 2013 15:00:47 GMT
It looks like Thomas fixed the test, can you give it a try?

Gary


On Wed, Jan 30, 2013 at 6:53 AM, Thomas Neidhart
<thomas.neidhart@gmail.com>wrote:

> Hi
>
> for some reason, in your environment, the property "test.basedir" is
> returning an URI instead of an absolute path.
> This results in an failure in the test as the value is used to create a
> File object:
>
>             fs.importTree(new
> File(AbstractVfsTestCase.getTestDirectoryString()));
>
> Is there already somewhere a helper that safely creates a File object,
> either its an absolute/relative path or a URI?
>
> Thomas
>
>
> On Wed, Jan 30, 2013 at 2:42 AM, Gary Gregory <garydgregory@gmail.com
> >wrote:
>
> > From the command line, all is well for me on Win 7 64-bit with Java
> > 1.6.0_38 and 1.7.0_11:
> >
> > Apache Maven 3.0.4 (r1232337; 2012-01-17 03:44:56-0500)
> > Maven home: C:\Java\apache-maven-3.0.4\bin\..
> > Java version: 1.7.0_11, vendor: Oracle Corporation
> > Java home: C:\Program Files\Java\jdk1.7.0_11\jre
> > Default locale: en_US, platform encoding: Cp1252
> > OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
> >
> > Gary
> >
> >
> > On Tue, Jan 29, 2013 at 8:03 PM, Ryan McKinley <ryantxu@gmail.com>
> wrote:
> >
> > > Also failing here:
> > > https://builds.apache.org/job/commons-vfs-trunk/
> > >
> > > but not for the same reason (looks more like jenkins config/resources
> > > issue)
> > >
> > >
> > > On Tue, Jan 29, 2013 at 4:49 PM, Ryan McKinley <ryantxu@gmail.com>
> > wrote:
> > >
> > > > are trunk tests failing for anyone else?
> > > >
> > > > I get:
> > > > junit.framework.TestSuite@3cf7d6ff
> > > (org.apache.commons.vfs2.test.ProviderTestSuite)
> > > >  Time elapsed: 8426 sec  <<< ERROR!
> > > > org.apache.commons.vfs2.FileSystemException: Unknown message with
> code
> > > > "org.apache.commons.vfs2.FileNotFoundException Could not read from
> > > >
> > >
> >
> "file:///Users/ryan/workspace/apache/vfs/core/target/test-classes/test-data/write-tests/file1.txt"
> > > > because it is a not a file.".
> > > >  at
> > > >
> > >
> >
> org.apache.commons.vfs2.provider.ram.RamFileSystem.toRamFileObject(RamFileSystem.java:289)
> > > > at
> > > >
> > >
> >
> org.apache.commons.vfs2.provider.ram.RamFileSystem.toRamFileObject(RamFileSystem.java:254)
> > > >  at
> > > >
> > >
> >
> org.apache.commons.vfs2.provider.ram.RamFileSystem.toRamFileObject(RamFileSystem.java:254)
> > > > at
> > > >
> > >
> >
> org.apache.commons.vfs2.provider.ram.RamFileSystem.importTree(RamFileSystem.java:231)
> > > >  at
> > > >
> > >
> >
> org.apache.commons.vfs2.provider.ram.test.RamProviderTestCase.getBaseTestFolder(RamProviderTestCase.java:90)
> > > > at
> > > >
> > >
> >
> org.apache.commons.vfs2.test.AbstractTestSuite.setUp(AbstractTestSuite.java:166)
> > > >  at junit.extensions.TestSetup$1.protect(TestSetup.java:22)
> > > > at junit.framework.TestResult.runProtected(TestResult.java:142)
> > > >
> > > > ...
> > > >
> > > >
> > > > My environment is:
> > > >
> > > > bicho:vfs ryan$ mvn --version
> > > > Apache Maven 3.0.4 (r1232337; 2012-01-17 00:44:56-0800)
> > > > Maven home: /usr/share/maven
> > > > Java version: 1.7.0_11, vendor: Oracle Corporation
> > > > Java home:
> > > > /Library/Java/JavaVirtualMachines/jdk1.7.0_11.jdk/Contents/Home/jre
> > > > Default locale: en_US, platform encoding: UTF-8
> > > > OS name: "mac os x", version: "10.8.2", arch: "x86_64", family: "mac"
> > > >
> > > >
> > > > thanks
> > > > ryan
> > > >
> > > >
> > > >
> > >
> >
> >
> >
> > --
> > E-Mail: garydgregory@gmail.com | ggregory@apache.org
> > JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
> > Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
> > Blog: http://garygregory.wordpress.com
> > Home: http://garygregory.com/
> > Tweet! http://twitter.com/GaryGregory
> >
>



-- 
E-Mail: garydgregory@gmail.com | ggregory@apache.org
JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message