[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Failing FileVFSUnitTestCase.testVFSFileURIFactory in VFS

alesj do-not-reply at jboss.com
Sat Nov 3 13:37:49 EDT 2007


"scott.stark at jboss.org" wrote : Permissions on the file system, a directory that is not empty are the main reasons. 
Even for a temp file?

  |    public void testFileURLs()
  |       throws Exception
  |    {
  |       File tmp = File.createTempFile("testFileURLs", null);
  |       URL tmpURL = tmp.toURL();
  |       URLConnection conn = tmpURL.openConnection();
  |       long lastModified = conn.getLastModified();
  |       System.out.println("lastModified, "+lastModified);
  |       assertNotSame("lastModified", 0, lastModified);
  |       assertTrue(tmp.getAbsolutePath()+" deleted", tmp.delete());
  |       conn = tmpURL.openConnection();
  |       lastModified = conn.getLastModified();
  |       System.out.println("lastModified after delete, "+lastModified);
  |       assertEquals("lastModified", 0, lastModified);
  |    }
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101536#4101536

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101536



More information about the jboss-dev-forums mailing list