[java-identity-provider COMMIT] /trunk/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/impl/profile/saml1/AddAuth...

noreply at shibboleth.net noreply at shibboleth.net
Thu Aug 15 23:47:30 EDT 2013


Author: scantor
Date: Thu Aug 15 23:47:30 2013
New Revision: 4697

URL: http://svn.shibboleth.net/view/java-identity-provider?rev=4697&view=rev
Log:
Fix failing test.

Modified:
    trunk/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/impl/profile/saml1/AddAuthenticationStatementToAssertionTest.java

Modified: trunk/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/impl/profile/saml1/AddAuthenticationStatementToAssertionTest.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/impl/profile/saml1/AddAuthenticationStatementToAssertionTest.java?rev=4697&r1=4696&r2=4697&view=diff
==============================================================================
--- trunk/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/impl/profile/saml1/AddAuthenticationStatementToAssertionTest.java (original)
+++ trunk/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/impl/profile/saml1/AddAuthenticationStatementToAssertionTest.java Thu Aug 15 23:47:30 2013
@@ -17,12 +17,16 @@
 
 package net.shibboleth.idp.saml.impl.profile.saml1;
 
+import java.util.Collections;
+
 import net.shibboleth.idp.authn.AuthenticationFlowDescriptor;
+import net.shibboleth.idp.authn.PrincipalEvalPredicateFactoryRegistry;
 import net.shibboleth.idp.authn.context.AuthenticationContext;
 import net.shibboleth.idp.profile.ActionTestingSupport;
 
 import org.opensaml.profile.action.EventIds;
 import org.opensaml.profile.context.ProfileRequestContext;
+
 import net.shibboleth.idp.profile.RequestContextBuilder;
 import net.shibboleth.idp.saml.profile.SamlEventIds;
 import net.shibboleth.idp.saml.profile.saml1.Saml1ActionTestingSupport;
@@ -92,7 +96,8 @@
                 new RequestContextBuilder().setOutboundMessage(Saml1ActionTestingSupport.buildResponse())
                         .buildProfileRequestContext();
 
-        AuthenticationContext authCtx = new AuthenticationContext(null);
+        AuthenticationContext authCtx = new AuthenticationContext(Collections.<AuthenticationFlowDescriptor>emptyList(),
+                new PrincipalEvalPredicateFactoryRegistry());
         profileCtx.addSubcontext(authCtx);
 
         AddAuthenticationStatementToAssertion action = new AddAuthenticationStatementToAssertion();
@@ -113,7 +118,8 @@
                 new RequestContextBuilder().setOutboundMessage(Saml1ActionTestingSupport.buildResponse())
                         .buildProfileRequestContext();
 
-        AuthenticationContext authCtx = new AuthenticationContext(null);
+        AuthenticationContext authCtx = new AuthenticationContext(Collections.<AuthenticationFlowDescriptor>emptyList(),
+                new PrincipalEvalPredicateFactoryRegistry());
         authCtx.setAttemptedFlow(new AuthenticationFlowDescriptor("test"));
 
         long now = System.currentTimeMillis();



More information about the commits mailing list