157158159160161162163164165166167
// Messages should all be in queue1 List msgs = queue1.browse(); assertEquals(1, msgs.size()); msgs = queue2.browse(); assertTrue(msgs.isEmpty()); SimpleReceiver receiver1 = new SimpleReceiver("blah", SimpleReceiver.ACCEPTING_TO_MAX); receiver1.setMaxRefs(0); queue1.add(receiver1);
255256257258259260261262263264265
//Messages should all be in queue1 List msgs = queue1.browse(); assertEquals(1, msgs.size()); msgs = queue2.browse(); assertTrue(msgs.isEmpty()); SimpleReceiver receiver1 = new SimpleReceiver("blah", SimpleReceiver.ACCEPTING_TO_MAX); receiver1.setMaxRefs(0); queue1.add(receiver1);
359360361362363364365366367368369
459460461462463464465466467468469
800801802803804805806807808809810
assertTrue(msg3 == msgRec3); receiver3.acknowledge(msgRec1, null); receiver3.acknowledge(msgRec2, null); receiver3.acknowledge(msgRec3, null); msgs = queue3.browse(); assertNotNull(msgs); assertTrue(msgs.isEmpty()); if (checkNoMessageData()) {