From ec4dfc211f349fc481894e04e9a57a4ddafe166e Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Wed, 16 Nov 2011 17:08:16 +1100 Subject: [PATCH] Simpler windows resource test --- .../eclipse/jetty/util/resource/ResourceTest.java | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/jetty-util/src/test/java/org/eclipse/jetty/util/resource/ResourceTest.java b/jetty-util/src/test/java/org/eclipse/jetty/util/resource/ResourceTest.java index c8d46eff9e8..aa5c14815a2 100644 --- a/jetty-util/src/test/java/org/eclipse/jetty/util/resource/ResourceTest.java +++ b/jetty-util/src/test/java/org/eclipse/jetty/util/resource/ResourceTest.java @@ -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()); + + */ } }