public void testRandomStrategy() throws Exception {
strategyTest(REPLICA_A, REPLICA_B, REPLICA_C, true);
}
protected Greeter getGreeter(String type) throws Exception {
if (REPLICA_A.equals(type)) {
Greeter g = new ClusteredGreeterService().getReplicatedPortA();
updateAddressPort(g, PORT_A);
updateWsdlExtensors("9051", PORT_A);
return g;
} else if (REPLICA_B.equals(type)) {
Greeter g = new ClusteredGreeterService().getReplicatedPortB();
updateAddressPort(g, PORT_B);
updateWsdlExtensors("9052", PORT_B);
return g;
}
Greeter g = new ClusteredGreeterService().getReplicatedPortC();
updateAddressPort(g, PORT_C);
updateWsdlExtensors("9053", PORT_C);
return g;
}