194195196197198199200201202203204
new Thread() { public void run() { Util.sleep(1000); ac.suspect(two); Util.sleep(500); ac.ack(three); ac.ack(one); } }.start(); boolean received_all=ac.waitForAllAcks(30000); System.out.println("ac = " + ac);
207208209210211212213214215216217
public void testRetainAll2() { final AckCollector ac=new AckCollector(list); assert ac.size() == 5; System.out.println("ac = " + ac); ac.ack(five); ac.suspect(four); System.out.println("ac = " + ac); new Thread() { public void run() {