Moved test class to correct source tree

This commit is contained in:
Luke Taylor 2008-01-29 10:57:44 +00:00
parent e63fa0f610
commit ef428d2c22
1 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ public class StatusCheckingUserDetailsServiceTests {
}
class MockUserDetailsService implements UserDetailsService {
private Map <String, UserDetails> users = new HashMap <String, UserDetails>();
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);
}
}
}