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 <cohei...@apache.org>
Authored: Fri Jan 29 14:41:00 2016 +0000
Committer: Colm O hEigeartaigh <cohei...@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
         }

Reply via email to