Flux member variables in favor of Collections

Fix gh-4694
This commit is contained in:
Rob Winch
2017-10-24 20:26:02 -05:00
parent 3b85512e48
commit 44b41e78cd
8 changed files with 24 additions and 29 deletions

View File

@@ -40,7 +40,7 @@ public class WebTestClientBuilder {
}
public static Builder bindToWebFilters(SecurityWebFilterChain securityWebFilterChain) {
return bindToWebFilters(WebFilterChainProxy.fromSecurityWebFilterChains(securityWebFilterChain));
return bindToWebFilters(new WebFilterChainProxy(securityWebFilterChain));
}
@RestController

View File

@@ -42,7 +42,7 @@ public class WebFilterChainProxyTests {
List<WebFilter> filters = Arrays.asList(new Http200WebFilter());
ServerWebExchangeMatcher notMatch = exchange -> MatchResult.notMatch();
MatcherSecurityWebFilterChain chain = new MatcherSecurityWebFilterChain(notMatch, filters);
WebFilterChainProxy filter = WebFilterChainProxy.fromSecurityWebFilterChains(chain);
WebFilterChainProxy filter = new WebFilterChainProxy(chain);
WebTestClient.bindToController(new Object()).webFilter(filter).build()
.get()