assertEquals(0, queue.getAllMessages(false).length);
}
private void addEventsToEventQueue(EventQueueOverflowStrategy strategy, List events)
{
AbstractBoundedEventQueue queue = new BoundedPriorityEventQueue(4, strategy);
Iterator i = events.iterator();
while (i.hasNext())
{
queue.put((Message) i.next());
}
}