com.atlassian.confluence.test.rpc
Class FuncTestEventQueue
java.lang.Object
com.atlassian.confluence.test.rpc.FuncTestEventQueue
public class FuncTestEventQueue
- extends java.lang.Object
Method Summary |
void |
addEvent(com.atlassian.event.Event event)
Adds an event to the event queue. |
boolean |
containsEvent(com.atlassian.event.Event event)
Checks whether a given event was fired and stored in the queue |
void |
flush()
Flush the contents of the queue (done in nukeSpacesAndFlushEverything so events don't carry between tests) |
java.util.List |
getEvents()
returns a list of the most recent events |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
eventList
protected java.util.List eventList
MAX_EVENTS
public static final int MAX_EVENTS
- See Also:
- Constant Field Values
FuncTestEventQueue
public FuncTestEventQueue()
addEvent
public void addEvent(com.atlassian.event.Event event)
- Adds an event to the event queue.
If more then MAX_EVENTS events are in the queue, the oldest element will be removed.
- Parameters:
event
-
getEvents
public java.util.List getEvents()
- returns a list of the most recent events
- Returns:
- List of event objects.
containsEvent
public boolean containsEvent(com.atlassian.event.Event event)
- Checks whether a given event was fired and stored in the queue
- Parameters:
event
-
- Returns:
- true if the event is in the queue.
flush
public void flush()
- Flush the contents of the queue (done in nukeSpacesAndFlushEverything so events don't carry between tests)
Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.