You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by co...@apache.org on 2016/01/29 15:41:09 UTC
cxf-fediz git commit: Fixing systests
Repository: cxf-fediz
Updated Branches:
refs/heads/master 11826312b -> eff7b768f
Fixing systests
Project: http://git-wip-us.apache.org/repos/asf/cxf-fediz/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf-fediz/commit/eff7b768
Tree: http://git-wip-us.apache.org/repos/asf/cxf-fediz/tree/eff7b768
Diff: http://git-wip-us.apache.org/repos/asf/cxf-fediz/diff/eff7b768
Branch: refs/heads/master
Commit: eff7b768f1e24f02be989ed3f4a8b02992cc145b
Parents: 1182631
Author: Colm O hEigeartaigh <co...@apache.org>
Authored: Fri Jan 29 14:41:00 2016 +0000
Committer: Colm O hEigeartaigh <co...@apache.org>
Committed: Fri Jan 29 14:41:00 2016 +0000
----------------------------------------------------------------------
.../apache/cxf/fediz/systests/oidc/OIDCTest.java | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/eff7b768/systests/oidc/src/test/java/org/apache/cxf/fediz/systests/oidc/OIDCTest.java
----------------------------------------------------------------------
diff --git a/systests/oidc/src/test/java/org/apache/cxf/fediz/systests/oidc/OIDCTest.java b/systests/oidc/src/test/java/org/apache/cxf/fediz/systests/oidc/OIDCTest.java
index 37aad49..bbfc1fa 100644
--- a/systests/oidc/src/test/java/org/apache/cxf/fediz/systests/oidc/OIDCTest.java
+++ b/systests/oidc/src/test/java/org/apache/cxf/fediz/systests/oidc/OIDCTest.java
@@ -563,9 +563,9 @@ public class OIDCTest {
// Now try to register a new client
try {
- registerNewClient(webClient, url, "asfxyz", "https://127.0.0.1//",
+ HtmlPage errorPage = registerNewClient(webClient, url, "asfxyz", "https://127.0.0.1//",
"https://cxf.apache.org");
- Assert.fail("Failure expected on an invalid registration URI");
+ Assert.assertTrue(errorPage.asText().contains("Invalid Client Registration"));
} catch (Exception ex) {
// expected
}
@@ -587,9 +587,9 @@ public class OIDCTest {
// Now try to register a new client
try {
- registerNewClient(webClient, url, "asfxyz", "https://127.0.0.1#fragment",
+ HtmlPage errorPage = registerNewClient(webClient, url, "asfxyz", "https://127.0.0.1#fragment",
"https://cxf.apache.org");
- Assert.fail("Failure expected on an invalid registration URI");
+ Assert.assertTrue(errorPage.asText().contains("Invalid Client Registration"));
} catch (Exception ex) {
// expected
}
@@ -611,9 +611,9 @@ public class OIDCTest {
// Now try to register a new client
try {
- registerNewClient(webClient, url, "asfxyz", "https://127.0.0.1/",
+ HtmlPage errorPage = registerNewClient(webClient, url, "asfxyz", "https://127.0.0.1/",
"https://cxf.apache.org//");
- Assert.fail("Failure expected on an invalid audience URI");
+ Assert.assertTrue(errorPage.asText().contains("Invalid Client Registration"));
} catch (Exception ex) {
// expected
}
@@ -635,9 +635,9 @@ public class OIDCTest {
// Now try to register a new client
try {
- registerNewClient(webClient, url, "asfxyz", "https://127.0.0.1",
+ HtmlPage errorPage = registerNewClient(webClient, url, "asfxyz", "https://127.0.0.1",
"https://cxf.apache.org#fragment");
- Assert.fail("Failure expected on an invalid audience URI");
+ Assert.assertTrue(errorPage.asText().contains("Invalid Client Registration"));
} catch (Exception ex) {
// expected
}