diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2016-01-02 02:09:16 +0100 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2016-01-02 02:16:13 +0100 |
commit | 80bf52dfe4de77b3e4960e52628c8075b91e2bb1 (patch) | |
tree | a0d7051ac5a3ac10edb0dda30279ff798705ce14 /org.eclipse.jgit.http.test/tst | |
parent | f1b79c3c89ca2ddf080c1af35039ca7e604e5b61 (diff) | |
download | jgit-80bf52dfe4de77b3e4960e52628c8075b91e2bb1.tar.gz jgit-80bf52dfe4de77b3e4960e52628c8075b91e2bb1.zip |
Ensure all http tests are run and fix broken tests
HttpClientTests were broken. This wasn't discovered since
maven-surefire-plugin's by default only executes test classes
matching **/*Test.java. Fix this by also including **/*.Tests.java
and fix the failing tests.
Change-Id: I487a30fb333de993a9f8d8fff491d3b0e7fb02cc
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.http.test/tst')
-rw-r--r-- | org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/HttpClientTests.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/HttpClientTests.java b/org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/HttpClientTests.java index 6fb130231a..cf20898b37 100644 --- a/org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/HttpClientTests.java +++ b/org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/HttpClientTests.java @@ -303,7 +303,7 @@ public class HttpClientTests extends HttpTestCase { fail("connection opened even info/refs needs auth basic"); } catch (TransportException err) { String exp = dumbAuthBasicURI + ": " - + JGitText.get().notAuthorized; + + JGitText.get().noCredentialsProvider; assertEquals(exp, err.getMessage()); } } finally { @@ -347,7 +347,7 @@ public class HttpClientTests extends HttpTestCase { fail("connection opened even though service disabled"); } catch (TransportException err) { String exp = smartAuthBasicURI + ": " - + JGitText.get().notAuthorized; + + JGitText.get().noCredentialsProvider; assertEquals(exp, err.getMessage()); } } finally { @@ -369,7 +369,8 @@ public class HttpClientTests extends HttpTestCase { t.openFetch(); fail("connection opened even though service disabled"); } catch (TransportException err) { - String exp = smartAuthNoneURI + ": Git access forbidden"; + String exp = smartAuthNoneURI + ": " + + JGitText.get().serviceNotEnabledNoName; assertEquals(exp, err.getMessage()); } } finally { |