Simpler windows resource test

This commit is contained in:
Greg Wilkins 2011-11-16 17:08:16 +11:00
parent de42eafdcd
commit ec4dfc211f
1 changed files with 14 additions and 1 deletions

View File

@ -464,9 +464,22 @@ public class ResourceTest
// This test is intended to run only on Windows platform
assumeTrue(OS.IS_WINDOWS);
String path = __userURL.toURI().getPath().replace('/','\\')+"ResourceTest.java";
System.err.println(path);
Resource resource = Resource.newResource(path, false);
System.err.println(resource);
assertTrue(resource.exists());
/*
String uncPath = "\\\\127.0.0.1"+__userURL.toURI().getPath().replace('/','\\').replace(':','$')+"ResourceTest.java";
System.err.println(uncPath);
Resource uncResource = Resource.newResource(uncPath, false);
assertTrue(uncResource.exists());
System.err.println(uncResource);
assertTrue(uncResource.exists());
*/
}
}