diff --git a/core/src/test/java/org/springframework/security/provisioning/JdbcUserDetailsManagerTests.java b/core/src/test/java/org/springframework/security/provisioning/JdbcUserDetailsManagerTests.java index 44b7602f03..3f20fac9ac 100644 --- a/core/src/test/java/org/springframework/security/provisioning/JdbcUserDetailsManagerTests.java +++ b/core/src/test/java/org/springframework/security/provisioning/JdbcUserDetailsManagerTests.java @@ -169,7 +169,7 @@ public class JdbcUserDetailsManagerTests { Authentication newAuth = SecurityContextHolder.getContext().getAuthentication(); assertEquals("joe", newAuth.getName()); assertEquals(currentAuth.getDetails(), newAuth.getDetails()); - assertEquals("newPassword", newAuth.getCredentials()); + assertThat(newAuth.getCredentials()).isNull(); assertFalse(cache.getUserMap().containsKey("joe")); }