4445464748495051525354
threadsRun.incrementAndGet(); } }); } assertEquals(0, threadsRun.get()); ctx.startThreads(); long st = System.currentTimeMillis(); ctx.waitFor(30000); long et = System.currentTimeMillis(); // All threads should have run
6667686970717273747576
@Override public void doWork() throws Exception { fail(FAIL_MSG); } }); ctx.startThreads(); long st = System.currentTimeMillis(); try { ctx.waitFor(30000); fail("waitFor did not throw"); } catch (RuntimeException rte) {
919293949596979899100101
@Override public void doWork() throws Exception { throw new IOException("my ioe"); } }); ctx.startThreads(); long st = System.currentTimeMillis(); try { ctx.waitFor(30000); fail("waitFor did not throw"); } catch (RuntimeException rte) {
275276277278279280281282283284285
try { TestContext ctx = setupClientTestContext(opts); if (ctx != null) { long totalCalls = 0; ctx.startThreads(); long veryStart = System.nanoTime(); // Loop printing results every second until the specified // time has elapsed for (int i = 0; i < opts.secondsToRun ; i++) {