[java-identity-provider COMMIT] /trunk/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/FilterFlowsByAttrib...
noreply at shibboleth.net
noreply at shibboleth.net
Mon Jul 21 18:18:20 EDT 2014
Author: scantor
Date: Mon Jul 21 18:18:20 2014
New Revision: 6325
URL: http://svn.shibboleth.net/view/java-identity-provider?rev=6325&view=rev
Log:
Alter test to verify principal collections are live.
Modified:
trunk/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/FilterFlowsByAttributeTest.java
Modified: trunk/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/FilterFlowsByAttributeTest.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/FilterFlowsByAttributeTest.java?rev=6325&r1=6324&r2=6325&view=diff
==============================================================================
--- trunk/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/FilterFlowsByAttributeTest.java (original)
+++ trunk/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/FilterFlowsByAttributeTest.java Mon Jul 21 18:18:20 2014
@@ -87,9 +87,9 @@
authCtx.getSubcontext(AttributeContext.class, true).setIdPAttributes(Collections.singletonList(attr));
attr.setValues(Collections.singleton(new StringAttributeValue("bar")));
- authCtx.getPotentialFlows().get("test1").setSupportedPrincipals(Collections.singletonList(new TestPrincipal("baz")));
- authCtx.getPotentialFlows().get("test2").setSupportedPrincipals(Collections.singletonList(new TestPrincipal("bar")));
- authCtx.getPotentialFlows().get("test3").setSupportedPrincipals(Collections.singletonList(new TestPrincipal("bay")));
+ authCtx.getPotentialFlows().get("test1").getSupportedPrincipals().add(new TestPrincipal("baz"));
+ authCtx.getPotentialFlows().get("test2").getSupportedPrincipals().add(new TestPrincipal("bar"));
+ authCtx.getPotentialFlows().get("test3").getSupportedPrincipals().add(new TestPrincipal("bay"));
final Event event = action.execute(src);
ActionTestingSupport.assertProceedEvent(event);
More information about the commits
mailing list