12 Replies Latest reply on Nov 6, 2007 2:21 PM by Ales Justin

    Failing FileVFSUnitTestCase.testVFSFileURIFactory in VFS

    Ales Justin Master

      I get a failing VFS test - FileVFSUnitTestCase.testVFSFileURIFactory.

      java.io.IOException: No context factory for vfsfile:/C:/projects/jboss-vfs/target/test-classes/
       at org.jboss.virtual.VFS.getVFS(VFS.java:85)
       at org.jboss.test.virtual.test.FileVFSUnitTestCase.testVFSFileURIFactory(FileVFSUnitTestCase.java:104)
       at org.jboss.test.virtual.test.FileVFSUnitTestCase.testVFSFileURIFactory(FileVFSUnitTestCase.java:104)


      There was this in VirtualFile:
       public URL toURL() throws MalformedURLException, URISyntaxException
       {
       return getHandler().toVfsUrl();
       }
      


      I guess it needs to be changed to:
       public URL toURL() throws MalformedURLException, URISyntaxException
       {
       return getHandler().toURL();
       }