commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mario Ivankovits (JIRA)" <j...@apache.org>
Subject [jira] Commented: (VFS-75) Impossible to pass test cases
Date Fri, 28 Jul 2006 08:19:18 GMT
    [ http://issues.apache.org/jira/browse/VFS-75?page=comments#action_12424023 ] 
            
Mario Ivankovits commented on VFS-75:
-------------------------------------

How do you start those test cases?
Do you use maven?

If you would like to start it from your IDE, please use the class org.apache.commons.vfs.RunTest
- there are some properties you have to setup accrodingly.
At least you have to do "maven test" at least once - it will setup the test directory structure.

To test one of the network filesystems you have to setup the test-server as described here:
http://jakarta.apache.org/commons/vfs/testserver.html
or - I can send you the link to a vmware image, just drop me a mail

Ciao,
Mario

> Impossible to pass test cases
> -----------------------------
>
>                 Key: VFS-75
>                 URL: http://issues.apache.org/jira/browse/VFS-75
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: Nightly Builds
>            Reporter: Sergey Vladimirov
>
> It's impossible to pass test cases. Almost  all of them fail at setUp() stage:
> junit.framework.AssertionFailedError: Folder does not exist: file:///C:/read-tests
> 	at junit.framework.Assert.fail(Assert.java:47)
> OR
> junit.framework.AssertionFailedError: Folder does not exist: file:///C:/Vladimirov/workspace/vfs/src/test-data/read-tests
> 	at junit.framework.Assert.fail(Assert.java:47)
> 	at junit.framework.Assert.assertTrue(Assert.java:20)
> 	at org.apache.commons.vfs.test.AbstractTestSuite.setUp(AbstractTestSuite.java:160)
> OR
> java.lang.IllegalArgumentException
> 	at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:629)
> 	at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:601)
> 	at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:569)
> 	at org.apache.commons.vfs.provider.webdav.test.WebdavProviderTestCase.getBaseTestFolder(WebdavProviderTestCase.java:58)
> 	at org.apache.commons.vfs.test.AbstractTestSuite.setUp(AbstractTestSuite.java:155)
> OR
> org.apache.commons.vfs.FileSystemException: URI "C:\Vladimirov\workspace\vfs\src\test-data\test.zip"
is not an absolute file name.
> 	at org.apache.commons.vfs.provider.local.WindowsFileNameParser.extractWindowsRootPrefix(WindowsFileNameParser.java:80)
> 	at org.apache.commons.vfs.provider.local.WindowsFileNameParser.extractRootPrefix(WindowsFileNameParser.java:38)
> 	at org.apache.commons.vfs.provider.local.LocalFileNameParser.parseUri(LocalFileNameParser.java:77)
> 	at org.apache.commons.vfs.provider.AbstractFileProvider.parseUri(AbstractFileProvider.java:167)
> 	at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveURI(DefaultFileSystemManager.java:801)
> 	at org.apache.commons.vfs.impl.DefaultVfsComponentContext.parseURI(DefaultVfsComponentContext.java:66)
> 	at org.apache.commons.vfs.provider.LayeredFileNameParser.parseUri(LayeredFileNameParser.java:53)
> 	at org.apache.commons.vfs.provider.AbstractFileProvider.parseUri(AbstractFileProvider.java:167)
> 	at org.apache.commons.vfs.provider.AbstractLayeredFileProvider.findFile(AbstractLayeredFileProvider.java:49)
> 	at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:640)
> 	at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:601)
> 	at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:569)
> 	at org.apache.commons.vfs.provider.zip.test.ZipProviderTestCase.getBaseTestFolder(ZipProviderTestCase.java:64)
> 	at org.apache.commons.vfs.test.AbstractTestSuite.setUp(AbstractTestSuite.java:155)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message