From cee08c30273c18d0b36ee3659fbca1b3b8451d24 Mon Sep 17 00:00:00 2001 From: Christian Halstrick Date: Wed, 6 Oct 2010 15:21:01 +0200 Subject: [PATCH] Fix URIish tests to contain a hostname for git protocol URIs for the git protocol have to have a hostname. (see http://www.kernel.org/pub/software/scm/git/docs /git-clone.html#_git_urls_a_id_urls_a) Some tests tested URIs like git:/abc.git which is not allowed. Fixed this. Change-Id: Ia3b8b681ad6592f03b090a874a6e91068a8301fe Signed-off-by: Christian Halstrick --- .../tst/org/eclipse/jgit/transport/URIishTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 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 6aef874e2..9c4c11cd2 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 @@ -356,7 +356,8 @@ public class URIishTest extends TestCase { public void testGetValidSlashHumanishName() throws IllegalArgumentException, URISyntaxException { - String humanishName = new URIish(GIT_SCHEME + "abc/").getHumanishName(); + String humanishName = new URIish(GIT_SCHEME + "host/abc/") + .getHumanishName(); assertEquals("abc", humanishName); } @@ -394,7 +395,7 @@ public class URIishTest extends TestCase { public void testGetValidDotGitSlashHumanishName() throws IllegalArgumentException, URISyntaxException { - String humanishName = new URIish(GIT_SCHEME + "abc.git/") + String humanishName = new URIish(GIT_SCHEME + "host.xy/abc.git/") .getHumanishName(); assertEquals("abc", humanishName); }