28652866286728682869287028712872287328742875
} // no messages in the channel yet assertEquals(0, queue.browse(null).size()); tx.commit(); assertEqualSets(refs, queue.browse(null)); } ////////
29012902290329042905290629072908290929102911
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();
29442945294629472948294929502951295229532954
} // no messages in the channel yet assertEquals(0, queue.browse(null).size()); tx.commit(); assertEqualSets(refs, queue.browse(null)); } /**
29822983298429852986298729882989299029912992
} // no messages in the channel yet assertEquals(0, queue.browse(null).size()); tx.commit(); assertEqualSets(refs, queue.browse(null)); }
33673368336933703371337233733374337533763377
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());
34153416341734183419342034213422342334243425
queue.handle(observer, ref, tx); // no messages in the channel assertEquals(0, queue.browse(null).size()); tx.commit(); assertEquals(2, queue.browse(null).size()); assertEquals(1, brokenReceiver.getMessages().size()); }
34583459346034613462346334643465346634673468
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()); }
35003501350235033504350535063507350835093510
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();
35493550355135523553355435553556355735583559
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()); assertEqualSets(refs, r.getMessages());
35953596359735983599360036013602360336043605