205206207208209210211212213214215
t.start(); queue.close(); try { synchronized (success) { if (!success.get()) { success.wait(2000); } } } catch (Throwable e) { e.printStackTrace();
151152153154155156157158159160161
206207208209210211212213214215216
163164165166167168169170171172173
108109110111112113114115116117118
out.write(data); } out.flush(); synchronized (complete) { if (!complete.get()) { complete.wait(30000); } } assertTrue(complete.get()); }