mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-26 05:42:31 +00:00
Moved test class to correct source tree
This commit is contained in:
parent
e63fa0f610
commit
ef428d2c22
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user