use of io.fabric8.gateway.loadbalancer.RandomLoadBalancer in project fabric8 by jboss-fuse.
the class LoadBalancerTest method testRandomLoadBalancer.
@Test
public void testRandomLoadBalancer() throws Exception {
LoadBalancer loadBalancer = new RandomLoadBalancer();
assertLoadBalancerWorksOnEmptyOrSingletonServices(loadBalancer);
List<String> results = performRequests(loadBalancer);
Set<String> set = asSet(results);
assertTrue("Should have most of the values but was: " + set, set.size() > 1);
}
Aggregations