[jboss-cvs] Picketlink SVN: r697 - integration-tests/trunk/picketlink-sts-tests/src/test/java/org/picketlink/test/integration/sts.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Feb 1 13:23:26 EST 2011


Author: sguilhen at redhat.com
Date: 2011-02-01 13:23:25 -0500 (Tue, 01 Feb 2011)
New Revision: 697

Modified:
   integration-tests/trunk/picketlink-sts-tests/src/test/java/org/picketlink/test/integration/sts/PicketLinkSTSIntegrationUnitTestCase.java
Log:
PLFED-126: Fixed integration tests that were failing

Modified: integration-tests/trunk/picketlink-sts-tests/src/test/java/org/picketlink/test/integration/sts/PicketLinkSTSIntegrationUnitTestCase.java
===================================================================
--- integration-tests/trunk/picketlink-sts-tests/src/test/java/org/picketlink/test/integration/sts/PicketLinkSTSIntegrationUnitTestCase.java	2011-02-01 18:22:40 UTC (rev 696)
+++ integration-tests/trunk/picketlink-sts-tests/src/test/java/org/picketlink/test/integration/sts/PicketLinkSTSIntegrationUnitTestCase.java	2011-02-01 18:23:25 UTC (rev 697)
@@ -455,8 +455,8 @@
       }
       catch (WebServiceException we)
       {
-         /*Assert.assertEquals("Unexpected exception message", "Exception in handling token request: Assertion with id "
-               + assertionElement.getAttribute("ID") + " has been canceled and cannot be renewed", we.getMessage());*/
+         Assert.assertEquals("Unexpected exception message", "Exception in handling token request: Assertion with id "
+               + assertionElement.getAttribute("ID") + " has been canceled and cannot be renewed", we.getMessage());
       }
    }
 
@@ -480,9 +480,8 @@
       }
       catch (WebServiceException we)
       {
-         /*Assert.assertEquals("Unexpected exception message",
-               "Exception in handling token request: Unable to find a token provider for the token request", we
-                     .getMessage());*/
+         Assert.assertTrue("Unexpected exception message", we.getMessage().startsWith(
+               "Exception in handling token request: No Security Token Provider found in configuration:"));
       }
    }
 
@@ -579,7 +578,8 @@
             KeyValueType keyValue = (KeyValueType) keyInfo.getContent().get(0);
             List<Object> keyValueContent = keyValue.getContent();
             Assert.assertEquals("Unexpected key value content size", 1, keyValueContent.size());
-            Assert.assertEquals("Unexpected key value content type", RSAKeyValueType.class, keyValueContent.get(0).getClass());
+            Assert.assertEquals("Unexpected key value content type", RSAKeyValueType.class, keyValueContent.get(0)
+                  .getClass());
             RSAKeyValueType rsaKeyValue = (RSAKeyValueType) keyValueContent.get(0);
 
             // reconstruct the public key and check if it matches the public key of the provided certificate.



More information about the jboss-cvs-commits mailing list