testRunner.run();
}
public void test_async_lockstep() throws Exception {
AbstractTestRunner testRunner = new AbstractTestRunner() {
public void test() throws Exception {
// Test that we can invoke them....
invokeService("ServiceCat", "Service1");
invokeService("ServiceCat", "Service2");
// Test that the EPRs are as we expected...
List<EPR> eprs = RegistryUtil.getEprs("ServiceCat", "Service1");
assertEquals(1, eprs.size());
assertEquals(false, ((InVMEpr)eprs.get(0)).getLockstep());
assertEquals(10000, ((InVMEpr)eprs.get(0)).getLockstepWaitTime());
eprs = RegistryUtil.getEprs("ServiceCat", "Service2");
assertEquals(1, eprs.size());
assertEquals(true, ((InVMEpr)eprs.get(0)).getLockstep());
assertEquals(4000, ((InVMEpr)eprs.get(0)).getLockstepWaitTime());
}
}.setServiceConfig("in-listener-config-04.xml");
testRunner.run();
}