Search in sources :

Example 1 with DefaultPayloadExchange

use of org.springframework.security.rsocket.core.DefaultPayloadExchange in project spring-security by spring-projects.

the class RoutePayloadExchangeMatcherTests method setup.

@BeforeEach
public void setup() {
    this.pattern = "a.b";
    this.matcher = new RoutePayloadExchangeMatcher(this.metadataExtractor, this.routeMatcher, this.pattern);
    this.exchange = new DefaultPayloadExchange(PayloadExchangeType.REQUEST_CHANNEL, this.payload, COMPOSITE_METADATA, MediaType.APPLICATION_JSON);
}
Also used : DefaultPayloadExchange(org.springframework.security.rsocket.core.DefaultPayloadExchange) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

BeforeEach (org.junit.jupiter.api.BeforeEach)1 DefaultPayloadExchange (org.springframework.security.rsocket.core.DefaultPayloadExchange)1