Search in sources :

Example 1 with DefaultClientResponse

use of cn.taketoday.web.reactive.function.client.DefaultClientResponse in project today-framework by TAKETODAY.

the class DefaultClientResponseTests method createMocks.

@BeforeEach
public void createMocks() {
    mockResponse = mock(ClientHttpResponse.class);
    given(mockResponse.getHeaders()).willReturn(this.httpHeaders);
    mockExchangeStrategies = mock(ExchangeStrategies.class);
    defaultClientResponse = new DefaultClientResponse(mockResponse, mockExchangeStrategies, "", "", () -> null);
}
Also used : DefaultClientResponse(cn.taketoday.web.reactive.function.client.DefaultClientResponse) ExchangeStrategies(cn.taketoday.web.reactive.function.client.ExchangeStrategies) ClientHttpResponse(cn.taketoday.http.client.reactive.ClientHttpResponse) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 2 with DefaultClientResponse

use of cn.taketoday.web.reactive.function.client.DefaultClientResponse in project today-infrastructure by TAKETODAY.

the class DefaultClientResponseTests method createMocks.

@BeforeEach
public void createMocks() {
    mockResponse = mock(ClientHttpResponse.class);
    given(mockResponse.getHeaders()).willReturn(this.httpHeaders);
    mockExchangeStrategies = mock(ExchangeStrategies.class);
    defaultClientResponse = new DefaultClientResponse(mockResponse, mockExchangeStrategies, "", "", () -> null);
}
Also used : DefaultClientResponse(cn.taketoday.web.reactive.function.client.DefaultClientResponse) ExchangeStrategies(cn.taketoday.web.reactive.function.client.ExchangeStrategies) ClientHttpResponse(cn.taketoday.http.client.reactive.ClientHttpResponse) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

ClientHttpResponse (cn.taketoday.http.client.reactive.ClientHttpResponse)2 DefaultClientResponse (cn.taketoday.web.reactive.function.client.DefaultClientResponse)2 ExchangeStrategies (cn.taketoday.web.reactive.function.client.ExchangeStrategies)2 BeforeEach (org.junit.jupiter.api.BeforeEach)2