[java-identity-provider] branch main updated: Fix unit test.
Scott Cantor
cantor.2 at osu.edu
Mon Mar 8 15:09:08 UTC 2021
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch main
in repository java-identity-provider.
View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=95be1ccfe3f1ff133ecc922c3ebe40e81b9e0905
The following commit(s) were added to refs/heads/main by this push:
new 95be1ccfe Fix unit test.
95be1ccfe is described below
commit 95be1ccfe3f1ff133ecc922c3ebe40e81b9e0905
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Mon Mar 8 10:09:05 2021 -0500
Fix unit test.
---
.../net/shibboleth/idp/authn/impl/ValidateCredentialsTest.java | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/ValidateCredentialsTest.java b/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/ValidateCredentialsTest.java
index d92af8933..d4103cddf 100644
--- a/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/ValidateCredentialsTest.java
+++ b/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/ValidateCredentialsTest.java
@@ -170,8 +170,12 @@ public class ValidateCredentialsTest extends BaseAuthenticationContextTest {
final Event event = action.execute(src);
Assert.assertNull(ac.getAuthenticationResult());
- Assert.assertNull(ac.getSubcontext(AuthenticationErrorContext.class));
- ActionTestingSupport.assertEvent(event, AuthnEventIds.INVALID_CREDENTIALS);
+
+ AuthenticationErrorContext aec = ac.getSubcontext(AuthenticationErrorContext.class);
+ Assert.assertNotNull(aec);
+ ActionTestingSupport.assertEvent(event, "InvalidPassword");
+ Assert.assertEquals(aec.getClassifiedErrors().size(), 1);
+ Assert.assertTrue(aec.isClassifiedError("InvalidPassword"));
}
@Test public void testBadPassword() throws Exception {
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list