summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.jgit.test')
-rw-r--r--org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/URIishTest.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/URIishTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/URIishTest.java
index c86869d088..01d3820184 100644
--- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/URIishTest.java
+++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/URIishTest.java
@@ -485,6 +485,17 @@ public class URIishTest {
}
@Test
+ public void testGetWindowsPathHumanishName()
+ throws IllegalArgumentException,
+ URISyntaxException {
+ if (File.separatorChar == '\\') {
+ String humanishName = new URIish("file:///C\\a\\b\\c.git/")
+ .getHumanishName();
+ assertEquals("c", humanishName);
+ }
+ }
+
+ @Test
public void testUserPasswordAndPort() throws URISyntaxException {
String str = "http://user:secret@host.xy:80/some/path";
URIish u = new URIish(str);