parent
8130965259
commit
0e100be333
|
@ -33,7 +33,7 @@ class UserDetailsManagerConfigurerTests extends Specification {
|
||||||
setup:
|
setup:
|
||||||
InMemoryUserDetailsManager userDetailsManager = new InMemoryUserDetailsManager([])
|
InMemoryUserDetailsManager userDetailsManager = new InMemoryUserDetailsManager([])
|
||||||
when:
|
when:
|
||||||
UserDetails userDetails = new UserDetailsManagerConfigurer<UserDetailsManagerConfigurer<InMemoryUserDetailsManager>>(userDetailsManager)
|
UserDetails userDetails = new UserDetailsManagerConfigurer<InMemoryUserDetailsManager,UserDetailsManagerConfigurer<InMemoryUserDetailsManager>>(userDetailsManager)
|
||||||
.withUser("user")
|
.withUser("user")
|
||||||
.password("password")
|
.password("password")
|
||||||
.roles("USER")
|
.roles("USER")
|
||||||
|
@ -57,7 +57,7 @@ class UserDetailsManagerConfigurerTests extends Specification {
|
||||||
InMemoryUserDetailsManager userDetailsManager = new InMemoryUserDetailsManager([])
|
InMemoryUserDetailsManager userDetailsManager = new InMemoryUserDetailsManager([])
|
||||||
SimpleGrantedAuthority authority = new SimpleGrantedAuthority("ROLE_USER")
|
SimpleGrantedAuthority authority = new SimpleGrantedAuthority("ROLE_USER")
|
||||||
when:
|
when:
|
||||||
UserDetails userDetails = new UserDetailsManagerConfigurer<UserDetailsManagerConfigurer<InMemoryUserDetailsManager>>(userDetailsManager)
|
UserDetails userDetails = new UserDetailsManagerConfigurer<InMemoryUserDetailsManager,UserDetailsManagerConfigurer<InMemoryUserDetailsManager>>(userDetailsManager)
|
||||||
.withUser("user")
|
.withUser("user")
|
||||||
.password("password")
|
.password("password")
|
||||||
.authorities(authority)
|
.authorities(authority)
|
||||||
|
@ -71,7 +71,7 @@ class UserDetailsManagerConfigurerTests extends Specification {
|
||||||
InMemoryUserDetailsManager userDetailsManager = new InMemoryUserDetailsManager([])
|
InMemoryUserDetailsManager userDetailsManager = new InMemoryUserDetailsManager([])
|
||||||
String authority = "ROLE_USER"
|
String authority = "ROLE_USER"
|
||||||
when:
|
when:
|
||||||
UserDetails userDetails = new UserDetailsManagerConfigurer<UserDetailsManagerConfigurer<InMemoryUserDetailsManager>>(userDetailsManager)
|
UserDetails userDetails = new UserDetailsManagerConfigurer<InMemoryUserDetailsManager,UserDetailsManagerConfigurer<InMemoryUserDetailsManager>>(userDetailsManager)
|
||||||
.withUser("user")
|
.withUser("user")
|
||||||
.password("password")
|
.password("password")
|
||||||
.authorities(authority)
|
.authorities(authority)
|
||||||
|
@ -86,7 +86,7 @@ class UserDetailsManagerConfigurerTests extends Specification {
|
||||||
InMemoryUserDetailsManager userDetailsManager = new InMemoryUserDetailsManager([])
|
InMemoryUserDetailsManager userDetailsManager = new InMemoryUserDetailsManager([])
|
||||||
SimpleGrantedAuthority authority = new SimpleGrantedAuthority("ROLE_USER")
|
SimpleGrantedAuthority authority = new SimpleGrantedAuthority("ROLE_USER")
|
||||||
when:
|
when:
|
||||||
UserDetails userDetails = new UserDetailsManagerConfigurer<UserDetailsManagerConfigurer<InMemoryUserDetailsManager>>(userDetailsManager)
|
UserDetails userDetails = new UserDetailsManagerConfigurer<InMemoryUserDetailsManager,UserDetailsManagerConfigurer<InMemoryUserDetailsManager>>(userDetailsManager)
|
||||||
.withUser("user")
|
.withUser("user")
|
||||||
.password("password")
|
.password("password")
|
||||||
.authorities([authority])
|
.authorities([authority])
|
||||||
|
|
Loading…
Reference in New Issue