diff options
author | Konrad Windszus <konrad_w@gmx.de> | 2020-04-20 21:43:12 +0200 |
---|---|---|
committer | Konrad Windszus <konrad_w@gmx.de> | 2020-04-21 07:46:50 +0200 |
commit | 54a2d48008140237eb143d7aefd872cbf6430238 (patch) | |
tree | cae2e8a1523a123780309426967803d86913209d /org.eclipse.jgit.test | |
parent | 7bebce42cc1b34982509361832b79a7e24db96f0 (diff) | |
download | jgit-54a2d48008140237eb143d7aefd872cbf6430238.tar.gz jgit-54a2d48008140237eb143d7aefd872cbf6430238.zip |
Fix human name for local .bundle files
Bug: 560903
Change-Id: I15d45330398cc573940265d16a2db29ddce085aa
Signed-off-by: Konrad Windszus <konrad_w@gmx.de>
Diffstat (limited to 'org.eclipse.jgit.test')
-rw-r--r-- | org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/URIishTest.java | 11 |
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 6bf8b4c7d8..d403624b71 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 @@ -953,6 +953,17 @@ public class URIishTest { assertEquals(-1, u.getPort()); assertNull(u.getUser()); assertEquals("b.txt", u.getHumanishName()); + + u = new URIish("file:/a/test.bundle"); + assertEquals("file", u.getScheme()); + assertFalse(u.isRemote()); + assertNull(u.getHost()); + assertNull(u.getPass()); + assertEquals("/a/test.bundle", u.getRawPath()); + assertEquals("/a/test.bundle", u.getPath()); + assertEquals(-1, u.getPort()); + assertNull(u.getUser()); + assertEquals("test", u.getHumanishName()); } @Test |