use of com.netflix.loadbalancer.Server in project java-chassis by ServiceComb.
the class TestLoadBalancer method testAddServerException.
@Test
public void testAddServerException() {
boolean status = true;
List<Server> newServers = new ArrayList<Server>();
Server server = Mockito.mock(Server.class);
newServers.add(server);
try {
loadBalancer.addServers(newServers);
} catch (Exception e) {
status = false;
Assert.assertEquals("Not implemented.", e.getMessage());
}
Assert.assertFalse(status);
}
use of com.netflix.loadbalancer.Server in project java-chassis by ServiceComb.
the class TestLoadBalancer method testServerListException.
@Test
public void testServerListException() {
boolean status = true;
List<Server> newServers = new ArrayList<Server>();
Server server = Mockito.mock(Server.class);
newServers.add(server);
try {
loadBalancer.getServerList(ServerGroup.ALL);
} catch (Exception e) {
status = false;
Assert.assertEquals("Not implemented.", e.getMessage());
}
Assert.assertFalse(status);
}
Aggregations