"adrian(a)jboss.org" wrote : "alesj" wrote :
| | See URLExistsUnitTestCase in JBossVFS.
| |
|
| What is the purpose of this test?
| It is testing the JDK rather than the VFS so why is it in the VFS testsuite?
|
| Surely this code:
|
| | conn = tmpURL.openConnection();
| | lastModified = conn.getLastModified();
| |
| should be changed to use the VFS to check the getLastModified works
| and assert the file can still be deleted?
It's Scott's test.
But I think the purpose is to verify that URLConnection::lastModified can also tell you
that the file has been deleted.
See comments on the test code:
| /**
| * Test file deletion can be detected via URLConnection.getLastModified == 0.
|
Since like it was already said, we use this for lastModified check on URL based VFS
handlers.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145798#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...