Jelajahi Sumber

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

Luke Taylor 17 tahun lalu
induk
melakukan
dac911ac08

+ 2 - 2
core/src/test/java/org/springframework/security/userdetails/jdbc/JdbcUserDetailsManagerTests.java

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