Signed-off-by: Robin Rosenberg <robin.rosenberg@xxxxxxxxxx> --- .../tst/org/spearce/jgit/transport/URIishTest.java | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/org.spearce.jgit.test/tst/org/spearce/jgit/transport/URIishTest.java b/org.spearce.jgit.test/tst/org/spearce/jgit/transport/URIishTest.java index 8462dfc..2ea9d60 100644 --- a/org.spearce.jgit.test/tst/org/spearce/jgit/transport/URIishTest.java +++ b/org.spearce.jgit.test/tst/org/spearce/jgit/transport/URIishTest.java @@ -72,6 +72,16 @@ public void testWindowsFile2() throws Exception { assertEquals(u, new URIish(str)); } + public void testUNC() throws Exception { + final String str = "\\\\some\\place"; + URIish u = new URIish(str); + assertNull(u.getScheme()); + assertFalse(u.isRemote()); + assertEquals("//some/place", u.getPath()); + assertEquals("//some/place", u.toString()); + assertEquals(u, new URIish(str)); + } + public void testFileProtoUnix() throws Exception { final String str = "file:///home/m y"; URIish u = new URIish(str); -- 1.6.1.rc3.56.gd0306 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html