// we test only recoverable channels now
return;
}
SimpleDeliveryObserver observer = new SimpleDeliveryObserver();
SimpleReceiver r1 = new SimpleReceiver("ONE", SimpleReceiver.ACKING);
SimpleReceiver r2 = new SimpleReceiver("TWO", SimpleReceiver.ACKING);
assertTrue(queue.add(r1));
assertTrue(queue.add(r2));
Delivery d = queue.handle(observer, createReference(0, true, "payload"), null);
assertTrue(d.isDone());
List l1 = r1.getMessages();
List l2 = r2.getMessages();
if (l2.isEmpty())
{
assertEquals(1, l1.size());
Message m = (Message)l1.get(0);
assertEquals("payload", m.getPayload());