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

alesj do-not-reply at jboss.com
Tue Nov 6 14:21:49 EST 2007


"alesj" wrote : "scott.stark at jboss.org" wrote : What delete fails? I can't see how the testFileExists delete should fail. 
  | If you run this test case on Winz, the file is not deleted, so File.delete (tmp.delete()) doesn't return true.
  | 
Since, similar to URLExistsUnitTestCase, looks like something is again holding the resources.

  | 3500 DEBUG [FileVFSUnitTestCase] ==== Starting testFileExists ====
  | 3500 INFO  [FileVFSUnitTestCase] +++ testFileExists, tmp=C:\tmp\vfs\vfs33660.root\testFileExists33661.tmp
  | 3500 DEBUG [FileVFSUnitTestCase] testFileExists took 0ms
  | 3500 DEBUG [FileVFSUnitTestCase] ==== Stopping testFileExists ====
  | 
  | junit.framework.AssertionFailedError: tmp.delete()
  | 	at org.jboss.test.virtual.test.FileVFSUnitTestCase.testFileExists(FileVFSUnitTestCase.java:1287)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
  | 
  | 

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

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



More information about the jboss-dev-forums mailing list