From ef428d2c22848221d2ab1db1959785913bfc25a0 Mon Sep 17 00:00:00 2001 From: Luke Taylor Date: Tue, 29 Jan 2008 10:57:44 +0000 Subject: [PATCH] Moved test class to correct source tree --- .../decorator/StatusCheckingUserDetailsServiceTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename core/src/{main => test}/java/org/springframework/security/userdetails/decorator/StatusCheckingUserDetailsServiceTests.java (95%) diff --git a/core/src/main/java/org/springframework/security/userdetails/decorator/StatusCheckingUserDetailsServiceTests.java b/core/src/test/java/org/springframework/security/userdetails/decorator/StatusCheckingUserDetailsServiceTests.java similarity index 95% rename from core/src/main/java/org/springframework/security/userdetails/decorator/StatusCheckingUserDetailsServiceTests.java rename to core/src/test/java/org/springframework/security/userdetails/decorator/StatusCheckingUserDetailsServiceTests.java index 9146e82b1d..e156828292 100644 --- a/core/src/main/java/org/springframework/security/userdetails/decorator/StatusCheckingUserDetailsServiceTests.java +++ b/core/src/test/java/org/springframework/security/userdetails/decorator/StatusCheckingUserDetailsServiceTests.java @@ -51,7 +51,7 @@ public class StatusCheckingUserDetailsServiceTests { } class MockUserDetailsService implements UserDetailsService { - private Map users = new HashMap (); + private Map users = new HashMap(); private GrantedAuthority[] auths = new GrantedAuthority[] {new GrantedAuthorityImpl("A")}; MockUserDetailsService() { @@ -63,7 +63,7 @@ public class StatusCheckingUserDetailsServiceTests { } public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException, DataAccessException { - return users.get(username); + return (UserDetails) users.get(username); } } }