431432433434435436437438439440441
@Override public void run() { try { outBuffer.waitCompletion(0); waiting.countDown(); } catch (Exception e) { e.printStackTrace();
462463464465466467468469470471472
537538539540541542543544545546547
outBuffer.setOutputStream(new FakeOutputStream()); long time = System.currentTimeMillis(); try { outBuffer.waitCompletion(0); fail("supposed to throw an exception"); } catch (HornetQException e) { }
583584585586587588589590591592593
} } }; sender.start(); outBuffer.waitCompletion(0); sender.join(); } public void testErrorOnSetStreaming() throws Exception {
463464465466467468469470471472473
538539540541542543544545546547548
584585586587588589590591592593594
317318319320321322323324325326327
SimpleWaitIOCallback waitCallback = new SimpleWaitIOCallback(); executeOnCompletion(waitCallback); complete(); if (timeout == 0) { waitCallback.waitCompletion(); return true; } else { return waitCallback.waitCompletion(timeout);