23722373237423752376237723782379238023812382
assertEquals(0, queue.browse(null).size()); // no message at the receiver assertTrue(r.getMessages().isEmpty()); tx.commit(); int deliveringCount = queue.getDeliveringCount(); assertEquals(NUMBER_OF_MESSAGES, deliveringCount); assertEqualSets(refs, r.getMessages());
24172418241924202421242224232424242524262427
assertEquals(0, queue.browse(null).size()); // no message at the receiver assertTrue(r.getMessages().isEmpty()); tx.commit(); int deliveringCount = queue.getDeliveringCount(); assertEquals(NUMBER_OF_MESSAGES, deliveringCount); assertEqualSets(refs, r.getMessages()); }
28312832283328342835283628372838283928402841
queue.handle(observer, ref, tx); // no messages in the channel yet assertEquals(0, queue.browse(null).size()); tx.commit(); List stored = queue.browse(null); assertEquals(1, stored.size()); Message sm = (Message)stored.iterator().next();
28732874287528762877287828792880288128822883
} // no messages in the channel yet assertEquals(0, queue.browse(null).size()); tx.commit(); assertEqualSets(refs, queue.browse(null)); } ////////
29092910291129122913291429152916291729182919
29522953295429552956295729582959296029612962
} // no messages in the channel yet assertEquals(0, queue.browse(null).size()); tx.commit(); assertEqualSets(refs, queue.browse(null)); } /**
29902991299229932994299529962997299829993000
} // no messages in the channel yet assertEquals(0, queue.browse(null).size()); tx.commit(); assertEqualSets(refs, queue.browse(null)); }
551552553554555556557558559560561
595596597598599600601602603604605
} // no messages in the channel yet assertEquals(0, queue.browse(null).size()); tx.commit(); List stored = queue.browse(null); assertEqualSets(refs, stored); }
637638639640641642643644645646647