summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2011-03-14 10:48:58 -0700
committerChris Aniszczyk <caniszczyk@gmail.com>2011-03-15 10:11:01 -0500
commitf18e1fd1d164f30e57e70c66cd9b1c0f7af194fd (patch)
tree42c1fb31fba6d097e6dba546524755ec942ae6c0 /org.eclipse.jgit.test
parentdffc50267ef7f172eab75a62f93fb7468345413f (diff)
downloadjgit-f18e1fd1d164f30e57e70c66cd9b1c0f7af194fd.tar.gz
jgit-f18e1fd1d164f30e57e70c66cd9b1c0f7af194fd.zip
TransportProtocol: Allow null Repository in canHandle()
This allows callers to determine if a URI is supported, before worrying about the local repository. Suggested-by: Dariusz Luksza <dariusz@luksza.org> Change-Id: Ifc76a4ba841f2e2e7354bd51306b87b3b9d7f6ab Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
Diffstat (limited to 'org.eclipse.jgit.test')
-rw-r--r--org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/URIishTest.java2
1 files changed, 1 insertions, 1 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 bdc9b3ecd6..e6990fb83f 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
@@ -549,6 +549,6 @@ public class URIishTest {
public void testMissingPort() throws URISyntaxException {
final String incorrectSshUrl = "ssh://some-host:/path/to/repository.git";
URIish u = new URIish(incorrectSshUrl);
- assertFalse(TransportGitSsh.PROTO_SSH.canHandle(null, u, null));
+ assertFalse(TransportGitSsh.PROTO_SSH.canHandle(u));
}
}