Fix Groovy 2.5 Compile Errors

Fixes gh-4415
This commit is contained in:
Rob Winch 2017-06-22 13:31:21 -05:00
parent 8130965259
commit 0e100be333
1 changed files with 4 additions and 4 deletions

View File

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