402403404405406407408409410411412
public void testExceptionSettingActionBefore() throws Exception { OperationContext ctx = OperationContextImpl.getContext(factory); ctx.storeLineUp(); String msg = "I'm an exception"; ctx.onError(5, msg);
398399400401402403404405406407408
6162636465666768697071
latch.countDown(); } }; impl.storeLineUp(); final AtomicInteger numberOfFailures = new AtomicInteger(0); Thread t = new Thread() {
112113114115116117118119120121122
latch.countDown(); } }; context.storeLineUp(); final AtomicInteger failures = new AtomicInteger(0); Thread t = new Thread() {
6768697071727374757677
} }); assertTrue(latch1.await(10, TimeUnit.SECONDS)); for (int i = 0 ; i < 10; i++) impl.storeLineUp(); for (int i = 0 ; i < 3; i++) impl.pageSyncLineUp(); impl.executeOnCompletion(new IOAsyncTask() {
122123124125126127128129130131132
173174175176177178179180181182183