Browse Source

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 <christian.halstrick@sap.com>
stable-0.10
Christian Halstrick 14 years ago
parent
commit
cee08c3027
  1. 5
      org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/URIishTest.java

5
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);
}

Loading…
Cancel
Save