575576577578579580581582583584585
cons1.getReferences().clear(); cons2.getReferences().clear(); for (MessageReference ref : refs) { queue.acknowledge(ref); } refs.clear(); FakeConsumer cons3 = new FakeConsumer();
613614615616617618619620621622623
cons3.getReferences().clear(); cons2.getReferences().clear(); for (MessageReference ref : refs) { queue.acknowledge(ref); } refs.clear(); for (int i = 0; i < 2 * numMessages; i++) {
642643644645646647648649650651652
cons2.getReferences().clear(); for (MessageReference ref : refs) { queue.acknowledge(ref); } refs.clear(); for (int i = 0; i < numMessages; i++) {
892893894895896897898899900901902
Assert.assertEquals(1, queue.getDeliveringCount()); assertRefListsIdenticalRefs(refs, consumer.getReferences()); queue.acknowledge(ref2); queue.removeConsumer(consumer); queue.addConsumer(consumer);
546547548549550551552553554555556
cons1.getReferences().clear(); for (MessageReference ref : refs) { queue.acknowledge(ref); } refs.clear(); for (int i = 0; i < 2 * numMessages; i++)
901902903904905906907908909910911
12291230123112321233123412351236123712381239
Assert.assertEquals(2, queue.getDeliveringCount()); assertRefListsIdenticalRefs(refs, consumer.getReferences()); queue.acknowledge(ref5); queue.acknowledge(ref6); queue.removeConsumer(consumer); consumer = new FakeConsumer();