/**
* Test method for {@link org.richfaces.component.UITree#queueEvent(javax.faces.event.FacesEvent)}.
*/
public final void testQueueEventFacesEvent() {
NodeExpandedEvent nodeExpandedEvent = new NodeExpandedEvent(tree);
NodeSelectedEvent nodeSelectedEvent = new NodeSelectedEvent(tree, null);
ExpandAllCommandEvent expandAllCommandEvent = new ExpandAllCommandEvent(tree);
DragEvent dragEvent = new DragEvent(treeNode);
DropEvent dropEvent = new DropEvent(treeNode);
tree.queueEvent(nodeExpandedEvent);
tree.queueEvent(nodeSelectedEvent);
tree.queueEvent(expandAllCommandEvent);
treeNode.queueEvent(dragEvent);
treeNode.queueEvent(dropEvent);
assertEquals(PhaseId.INVOKE_APPLICATION, nodeExpandedEvent.getPhaseId());
assertEquals(PhaseId.UPDATE_MODEL_VALUES, nodeSelectedEvent.getPhaseId());
assertEquals(PhaseId.INVOKE_APPLICATION, expandAllCommandEvent.getPhaseId());
assertEquals(PhaseId.INVOKE_APPLICATION, dragEvent.getPhaseId());
assertEquals(PhaseId.INVOKE_APPLICATION, dropEvent.getPhaseId());
}