* Test method for {@link org.richfaces.component.UITree#queueEvent(javax.faces.event.FacesEvent)}.
*/
public final void testQueueEventFacesEventImmediate() {
tree.setImmediate(true);
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.APPLY_REQUEST_VALUES, nodeExpandedEvent.getPhaseId());
assertEquals(PhaseId.APPLY_REQUEST_VALUES, nodeSelectedEvent.getPhaseId());
assertEquals(PhaseId.APPLY_REQUEST_VALUES, expandAllCommandEvent.getPhaseId());
assertEquals(PhaseId.APPLY_REQUEST_VALUES, dragEvent.getPhaseId());
assertEquals(PhaseId.APPLY_REQUEST_VALUES, dropEvent.getPhaseId());
}