543544545546547548549550551552553
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();
587588589590591592593594595596597
} // no messages in the channel yet assertEquals(0, queue.browse(null).size()); tx.commit(); List stored = queue.browse(null); assertEqualSets(refs, stored); }
629630631632633634635636637638639
682683684685686687688689690691692
} // no messages in the channel yet assertEquals(0, queue.browse(null).size()); tx.commit(); assertEqualSets(refs, queue.browse(null)); }
721722723724725726727728729730731
} // no messages in the channel yet assertEquals(0, queue.browse(null).size()); tx.commit(); assertEqualSets(refs, queue.browse(null)); } /**
758759760761762763764765766767768
11501151115211531154115511561157115811591160
assertEquals(0, queue.browse(null).size()); // no message at the receiver assertTrue(r.getMessages().isEmpty()); tx.commit(); assertTrue(queue.browse(null).isEmpty()); List received = r.getMessages(); assertEquals(1, received.size());
11971198119912001201120212031204120512061207
assertEquals(0, queue.browse(null).size()); // no message at the receiver assertTrue(r.getMessages().isEmpty()); tx.commit(); assertTrue(queue.browse(null).isEmpty()); assertEqualSets(refs, r.getMessages()); }
12451246124712481249125012511252125312541255
assertEquals(0, queue.browse(null).size()); // no message at the receiver assertTrue(r.getMessages().isEmpty()); tx.commit(); // no messages in the channel assertEquals(0, queue.browse(null).size()); List received = r.getMessages();
13001301130213031304130513061307130813091310
assertEquals(0, queue.browse(null).size()); // no message at the receiver assertTrue(r.getMessages().isEmpty()); tx.commit(); // messages at the receiver assertEqualSets(refs, r.getMessages()); }