Fixed test failures caused by reordering of authorities loading order in JdbcDaoImpl.

This commit is contained in:
Luke Taylor 2008-01-09 18:31:54 +00:00
parent c77475cda6
commit dac911ac08
1 changed files with 2 additions and 2 deletions

View File

@ -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);