[java-identity-provider COMMIT] /trunk/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/FinalizeAuthenticat...

noreply at shibboleth.net noreply at shibboleth.net
Mon Sep 9 18:00:11 EDT 2013


Author: scantor
Date: Mon Sep  9 18:00:11 2013
New Revision: 4756

URL: http://svn.shibboleth.net/view/java-identity-provider?rev=4756&view=rev
Log:
Remove extra copy of canonical name from AuthnResult

Modified:
    trunk/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/FinalizeAuthenticationFlowTest.java

Modified: trunk/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/FinalizeAuthenticationFlowTest.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/FinalizeAuthenticationFlowTest.java?rev=4756&r1=4755&r2=4756&view=diff
==============================================================================
--- trunk/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/FinalizeAuthenticationFlowTest.java (original)
+++ trunk/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/FinalizeAuthenticationFlowTest.java Mon Sep  9 18:00:11 2013
@@ -85,7 +85,7 @@
         action.execute(prc);
         
         ActionTestingSupport.assertProceedEvent(prc);
-        Assert.assertEquals(result.getCanonicalPrincipalName(), "foo");
+        Assert.assertEquals(prc.getSubcontext(SubjectCanonicalizationContext.class, false).getPrincipalName(), "foo");
         Assert.assertEquals(authCtx.getCanonicalPrincipalName(), "foo");
     }
     
@@ -105,7 +105,7 @@
         action.execute(prc);
         
         ActionTestingSupport.assertEvent(prc, AuthnEventIds.IDENTITY_SWITCH);
-        Assert.assertEquals(result.getCanonicalPrincipalName(), "foo");
+        Assert.assertEquals(prc.getSubcontext(SubjectCanonicalizationContext.class, false).getPrincipalName(), "foo");
         Assert.assertEquals(authCtx.getCanonicalPrincipalName(), "bar");
     }
 }



More information about the commits mailing list