Search in sources :

Example 1 with ServerWebExchangeMatcherEntry

use of org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcherEntry in project spring-security by spring-projects.

the class DelegatingReactiveAuthorizationManagerTests method setup.

@BeforeEach
public void setup() {
    MockitoAnnotations.initMocks(this);
    this.manager = DelegatingReactiveAuthorizationManager.builder().add(new ServerWebExchangeMatcherEntry<>(this.match1, this.delegate1)).add(new ServerWebExchangeMatcherEntry<>(this.match2, this.delegate2)).build();
    MockServerHttpRequest request = MockServerHttpRequest.get("/test").build();
    this.exchange = MockServerWebExchange.from(request);
}
Also used : ServerWebExchangeMatcherEntry(org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcherEntry) MockServerHttpRequest(org.springframework.mock.http.server.reactive.MockServerHttpRequest) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

BeforeEach (org.junit.jupiter.api.BeforeEach)1 MockServerHttpRequest (org.springframework.mock.http.server.reactive.MockServerHttpRequest)1 ServerWebExchangeMatcherEntry (org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcherEntry)1