mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-27 14:22:47 +00:00
Fixed test failures caused by reordering of authorities loading order in JdbcDaoImpl.
This commit is contained in:
parent
c77475cda6
commit
dac911ac08
@ -34,7 +34,7 @@ public class JdbcUserDetailsManagerTests {
|
||||
private static final String SELECT_JOE_AUTHORITIES_SQL = "select * from authorities where username = 'joe'";
|
||||
|
||||
private static final UserDetails joe = new User("joe", "password", true, true, true, true,
|
||||
AuthorityUtils.stringArrayToAuthorityArray(new String[]{"A","B","C"}));
|
||||
AuthorityUtils.stringArrayToAuthorityArray(new String[]{"A","C","B"}));
|
||||
|
||||
private static DriverManagerDataSource dataSource;
|
||||
private JdbcUserDetailsManager manager;
|
||||
@ -103,7 +103,7 @@ public class JdbcUserDetailsManagerTests {
|
||||
public void updateUserChangesDataCorrectlyAndClearsCache() {
|
||||
insertJoe();
|
||||
User newJoe = new User("joe","newpassword",false,true,true,true,
|
||||
AuthorityUtils.stringArrayToAuthorityArray(new String[]{"D","E","F"}));
|
||||
AuthorityUtils.stringArrayToAuthorityArray(new String[]{"D","F","E"}));
|
||||
|
||||
manager.updateUser(newJoe);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user