git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[EGIT PATCH 5/7] Add UNC test case to URIish test

From
Robin Rosenberg <robin.rosenberg@dewire.com>
Date
Jan 8, 2009, 16:56 UTC
Message-ID
<1231433791-9267-6-git-send-email-robin.rosenberg@dewire.com>
In-Reply-To
<1231433791-9267-5-git-send-email-robin.rosenberg@dewire.com>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
---
 .../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
Previous: Robin RosenbergNext: Robin Rosenberg
Message 6 of 11 in “Import Wizard cleanup fixes and test”
  1. 0/7 Import Wizard cleanup fixes and testRobin Rosenberg, Jan 8, 2009
  2. 1/7 Create the import wizard question checkbox properlyRobin Rosenberg, Jan 8, 2009
  3. 2/7 Fix two strings in the cloning wizard that were not translated.Robin Rosenberg, Jan 8, 2009
  4. 3/7 Add shortcuts to the Git cloning wizardRobin Rosenberg, Jan 8, 2009
  5. 4/7 Normalize paths to /-format when parsing GIT URI'sRobin Rosenberg, Jan 8, 2009
  6. 5/7 Add UNC test case to URIish testRobin Rosenberg, Jan 8, 2009
  7. 6/7 Treat null scheme as file: in git import wizardRobin Rosenberg, Jan 8, 2009
  8. 7/7 Create an automatic UI test for the Git Import WizardRobin Rosenberg, Jan 8, 2009
  9. Robin RosenbergJan 8, 2009
  10. Robin RosenbergJan 8, 2009
  11. Shawn O. PearceJan 12, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.