546547548549550551552553554555556
cons1.getReferences().clear(); for (MessageReference ref : refs) { queue.acknowledge(ref); } refs.clear(); for (int i = 0; i < 2 * numMessages; i++)
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++) {
890891892893894895896897898899900
Assert.assertEquals(1, queue.getDeliveringCount()); assertRefListsIdenticalRefs(refs, consumer.getReferences()); queue.acknowledge(ref2); queue.removeConsumer(consumer); queue.addConsumer(consumer);
12181219122012211222122312241225122612271228
Assert.assertEquals(2, queue.getDeliveringCount()); assertRefListsIdenticalRefs(refs, consumer.getReferences()); queue.acknowledge(ref5); queue.acknowledge(ref6); queue.removeConsumer(consumer); consumer = new FakeConsumer();
12191220122112221223122412251226122712281229
12201221122212231224122512261227122812291230
12211222122312241225122612271228122912301231