use of com.hotels.styx.api.extension.loadbalancing.spi.LoadBalancingMetricSupplier in project styx by ExpediaGroup.
the class RoundRobinStrategyTest method remoteHostFor.
private static RemoteHost remoteHostFor(String host, int port) {
Origin origin = newOriginBuilder(host, port).build();
LoadBalancingMetricSupplier metric = mock(LoadBalancingMetricSupplier.class);
when(metric.loadBalancingMetric()).thenReturn(new LoadBalancingMetric(45));
return remoteHost(origin, mock(HttpHandler.class), metric);
}
Aggregations