[java-identity-provider COMMIT] /trunk/idp-profile-impl/src/test/java/net/shibboleth/idp/relyingparty/impl/DefaultRel...

noreply at shibboleth.net noreply at shibboleth.net
Sat Mar 15 16:35:58 EDT 2014


Author: scantor
Date: Sat Mar 15 16:35:58 2014
New Revision: 5583

URL: http://svn.shibboleth.net/view/java-identity-provider?rev=5583&view=rev
Log:
Fix tests by setting anonymity explicitly.

Modified:
    trunk/idp-profile-impl/src/test/java/net/shibboleth/idp/relyingparty/impl/DefaultRelyingPartyConfigurationResolverTest.java

Modified: trunk/idp-profile-impl/src/test/java/net/shibboleth/idp/relyingparty/impl/DefaultRelyingPartyConfigurationResolverTest.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-profile-impl/src/test/java/net/shibboleth/idp/relyingparty/impl/DefaultRelyingPartyConfigurationResolverTest.java?rev=5583&r1=5582&r2=5583&view=diff
==============================================================================
--- trunk/idp-profile-impl/src/test/java/net/shibboleth/idp/relyingparty/impl/DefaultRelyingPartyConfigurationResolverTest.java (original)
+++ trunk/idp-profile-impl/src/test/java/net/shibboleth/idp/relyingparty/impl/DefaultRelyingPartyConfigurationResolverTest.java Sat Mar 15 16:35:58 2014
@@ -20,6 +20,7 @@
 import java.util.ArrayList;
 import java.util.Iterator;
 
+import net.shibboleth.idp.profile.context.RelyingPartyContext;
 import net.shibboleth.idp.relyingparty.RelyingPartyConfiguration;
 import net.shibboleth.utilities.java.support.component.ComponentInitializationException;
 
@@ -74,6 +75,7 @@
     
     @Test public void testDefault() throws Exception {
         ProfileRequestContext requestContext = new ProfileRequestContext();
+        requestContext.getSubcontext(RelyingPartyContext.class, true).setAnonymous(false);
 
         RelyingPartyConfiguration anonRP = new RelyingPartyConfiguration();
         anonRP.setId("anonRPId");
@@ -106,6 +108,7 @@
     
     @Test public void testAnon() throws Exception {
         ProfileRequestContext requestContext = new ProfileRequestContext();
+        requestContext.getSubcontext(RelyingPartyContext.class, true).setAnonymous(true);
         
         RelyingPartyConfiguration anonRP = new RelyingPartyConfiguration();
         anonRP.setId("anonRPId");
@@ -140,6 +143,7 @@
 
     @Test public void testResolve() throws Exception {
         ProfileRequestContext requestContext = new ProfileRequestContext();
+        requestContext.getSubcontext(RelyingPartyContext.class, true).setAnonymous(false);
 
         RelyingPartyConfiguration anonRP = new RelyingPartyConfiguration();
         anonRP.setId("anonRPId");



More information about the commits mailing list