HttpSecurity.authorizeExchange() allows Method Chaining
Fixes gh-4397
This commit is contained in:
@@ -29,7 +29,7 @@ import org.springframework.test.web.reactive.server.WebTestClient;
|
||||
* @since 5.0
|
||||
*/
|
||||
public class AuthorizeExchangeBuilderTests {
|
||||
AuthorizeExchangeBuilder authorization = new AuthorizeExchangeBuilder();
|
||||
HttpSecurity.AuthorizeExchangeBuilder authorization = HttpSecurity.http().new AuthorizeExchangeBuilder();
|
||||
|
||||
@Test
|
||||
public void antMatchersWhenMethodAndPatternsThenDiscriminatesByMethod() {
|
||||
|
||||
@@ -83,7 +83,7 @@ public class HttpSecurityTests {
|
||||
http.securityContextRepository(new WebSessionSecurityContextRepository());
|
||||
http.httpBasic();
|
||||
http.authenticationManager(authenticationManager);
|
||||
AuthorizeExchangeBuilder authorize = http.authorizeExchange();
|
||||
HttpSecurity.AuthorizeExchangeBuilder authorize = http.authorizeExchange();
|
||||
authorize.anyExchange().authenticated();
|
||||
|
||||
WebTestClient client = buildClient();
|
||||
|
||||
Reference in New Issue
Block a user