[java-identity-provider COMMIT] /trunk/idp-conf/src/test/java/net/shibboleth/idp/test/flows/saml2/SAML2TestResponseVa...

noreply at shibboleth.net noreply at shibboleth.net
Tue Jul 29 16:06:37 EDT 2014


Author: tzeller
Date: Tue Jul 29 16:06:37 2014
New Revision: 6356

URL: http://svn.shibboleth.net/view/java-identity-provider?rev=6356&view=rev
Log:
Add SAML 2 unsolicited SSO integration test.

Modified:
    trunk/idp-conf/src/test/java/net/shibboleth/idp/test/flows/saml2/SAML2TestResponseValidator.java

Modified: trunk/idp-conf/src/test/java/net/shibboleth/idp/test/flows/saml2/SAML2TestResponseValidator.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-conf/src/test/java/net/shibboleth/idp/test/flows/saml2/SAML2TestResponseValidator.java?rev=6356&r1=6355&r2=6356&view=diff
==============================================================================
--- trunk/idp-conf/src/test/java/net/shibboleth/idp/test/flows/saml2/SAML2TestResponseValidator.java (original)
+++ trunk/idp-conf/src/test/java/net/shibboleth/idp/test/flows/saml2/SAML2TestResponseValidator.java Tue Jul 29 16:06:37 2014
@@ -65,6 +65,9 @@
 
     /** Expected SP entity ID. */
     @Nonnull public String spEntityID = "https://sp.example.org";
+    
+    /** Authentication context class reference. */
+    @Nonnull public String authnContextClassRef = AuthnContext.IP_AUTHN_CTX;
 
     /** SP credential. */
     @Nullable public Credential spCredential;
@@ -485,8 +488,8 @@
      * 
      * @param authnContextClassRef the authn context class ref
      */
-    public void assertAuthnContextClassRef(@Nullable final AuthnContextClassRef authnContextClassRef) {
-        Assert.assertEquals(authnContextClassRef.getAuthnContextClassRef(), AuthnContext.IP_AUTHN_CTX);
+    public void assertAuthnContextClassRef(@Nullable final AuthnContextClassRef authnContext) {
+        Assert.assertEquals(authnContext.getAuthnContextClassRef(), authnContextClassRef);
     }
 
     /**



More information about the commits mailing list