use of com.hotels.styx.client.StyxHostHttpClient in project styx by ExpediaGroup.
the class StyxBackendServiceClientFactoryTest method hostClient.
private StyxHostHttpClient hostClient(LiveHttpResponse response) {
StyxHostHttpClient mockClient = mock(StyxHostHttpClient.class);
when(mockClient.sendRequest(any(LiveHttpRequest.class), any(Context.class))).thenReturn(Flux.just(response));
when(mockClient.loadBalancingMetric()).thenReturn(new LoadBalancingMetric(1));
return mockClient;
}
Aggregations