javax.faces.component
Class UIViewRootTestCase

java.lang.Object
  extended by JUnitFacesTestCase
      extended by javax.faces.component.UIComponentTestCase
          extended by javax.faces.component.UIComponentBaseTestCase
              extended by javax.faces.component.UIViewRootTestCase

public class UIViewRootTestCase
extends UIComponentBaseTestCase

Test case for the javax.faces.UIViewRoot concrete class.


Nested Class Summary
static class UIViewRootTestCase.Container
           
static class UIViewRootTestCase.PhaseListenerBean
           
static class UIViewRootTestCase.PhaseSkipTestComponent
           
 
Nested classes/interfaces inherited from class javax.faces.component.UIComponentBaseTestCase
UIComponentBaseTestCase.ComponentListener, UIComponentBaseTestCase.CustomAbortProcessingException, UIComponentBaseTestCase.Listener, UIComponentBaseTestCase.QueueingListener, UIComponentBaseTestCase.UIComponentListener, UIComponentBaseTestCase.UIComponentOverrideEncodeBegin, UIComponentBaseTestCase.UIComponentOverrideEncodeEnd
 
Nested classes/interfaces inherited from class javax.faces.component.UIComponentTestCase
UIComponentTestCase.ValidationSignal
 
Field Summary
static java.lang.String[][] FACTORIES
           
 
Fields inherited from class javax.faces.component.UIComponentTestCase
component, expectedAttributes, expectedFamily, expectedId, expectedRendered, expectedRendererType, expectedRendersChildren
 
Constructor Summary
UIViewRootTestCase(java.lang.String name)
          Construct a new instance of this test case.
 
Method Summary
protected  void checkProperties(UIComponent comp1, UIComponent comp2)
           
protected  UIComponent createComponent()
           
 void doTestPhaseListener(UIViewRoot root, boolean skipping)
           
 void doTestPhaseListenerWithPhaseId(UIViewRoot root, PhaseId phaseId)
           
 void doTestPhaseMethodExpression(UIViewRoot root, boolean skipping)
           
 void doTestPhaseMethodExpressionAndListener(UIViewRoot root, boolean skipping)
           
 void doTestPhaseMethodExpressionAndListenerWithPhaseId(UIViewRoot root, PhaseId phaseId)
           
 void doTestPhaseMethodExpressionWithPhaseId(UIViewRoot root, PhaseId phaseId)
           
protected  void populateComponent(UIComponent component)
           
 void setUp()
           
static Test suite()
          Return the tests included in this test suite.
 void tearDown()
          Tear down instance variables required by this test case.
 void testAbortProcessingException()
           
 void testAddGetComponentResources()
           
 void testChildrenListAfterAddViewPublish()
           
 void testEventBroadcasting()
           
 void testEventQueuing()
           
 void testEventsListClear()
           
 void testFacetMapAfterAddViewPublish()
           
 void testInvokeOnComponentNegative()
           
 void testInvokeOnComponentPositive()
           
 void testInvokeOnComponentWithPrependId()
           
 void testLocaleFromVB()
           
 void testPhaseListener()
           
 void testPhaseListenerExceptions()
           
 void testPhaseListenerSkipping()
           
 void testPhaseListenerState()
           
 void testPhaseMethExpression()
           
 void testPhaseMethExpressionSkipping()
           
 void testPhaseMethExpressionState()
           
 void testPhaseMethodExpressionAndListener()
           
 void testPhaseMethodExpressionAndListenerSkipping()
           
 void testPhaseMethodExpressionAndListenerState()
           
 void testUninitializedInstance()
           
 void testViewMapEventsTest()
           
 void testViewMapSaveRestore()
           
 
Methods inherited from class javax.faces.component.UIComponentBaseTestCase
checkAttributes, checkComponentListeners, checkComponents, checkValueBindings, lifecycleTrace, lifecycleTrace, testChildrenAndFacetsWithNullGetParent, testChildrenListAfterAddPublish, testChildrenRecursive, testComponentReconnect, testComponentRemoval, testComponentToFromEL, testComponentToFromEL2, testComponentToFromELBackwardCompatible, testEncodeBeginPublish, testEncodeChildren, testGetFacetsAndChildren, testLifecycleManagement, testMethodBindingAdapterBaseException, testStateHolder, testStateHolder2, testValueBindings, testValueExpressions, testValueExpressionValueBindingIdempotency
 
Methods inherited from class javax.faces.component.UIComponentTestCase
checkAttributeCount, checkAttributeMissing, checkAttributePresent, checkChildCount, checkChildMissing, checkChildPresent, checkFacetCount, checkFacetMissing, checkFacetPresent, testAttributesMap, testAttributesNegative, testAttributesPositive, testAttributesTransparency, testChidrenNegative, testChidrenReplace, testChildrenIterator, testChildrenListIterator, testChildrenPositive, testFacetsMapEntrySet, testFacetsMapKeySet, testFacetsMapValues, testFacetsNegative, testFacetsPositive, testPristine, testPropertiesInvalid, testPropertiesValid, testValidationEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FACTORIES

public static java.lang.String[][] FACTORIES
Constructor Detail

UIViewRootTestCase

public UIViewRootTestCase(java.lang.String name)
Construct a new instance of this test case.

Parameters:
name - Name of the test case
Method Detail

suite

public static Test suite()
Return the tests included in this test suite.


setUp

public void setUp()
           throws java.lang.Exception
Overrides:
setUp in class UIComponentBaseTestCase
Throws:
java.lang.Exception

tearDown

public void tearDown()
              throws java.lang.Exception
Tear down instance variables required by this test case.

Overrides:
tearDown in class UIComponentBaseTestCase
Throws:
java.lang.Exception

testAddGetComponentResources

public void testAddGetComponentResources()

testAbortProcessingException

public void testAbortProcessingException()

testEventBroadcasting

public void testEventBroadcasting()

testEventQueuing

public void testEventQueuing()

testLocaleFromVB

public void testLocaleFromVB()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testUninitializedInstance

public void testUninitializedInstance()
                               throws java.lang.Exception
Throws:
java.lang.Exception

testPhaseMethExpression

public void testPhaseMethExpression()
                             throws java.lang.Exception
Throws:
java.lang.Exception

testPhaseMethExpressionSkipping

public void testPhaseMethExpressionSkipping()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

testPhaseListener

public void testPhaseListener()
                       throws java.lang.Exception
Throws:
java.lang.Exception

testPhaseListenerSkipping

public void testPhaseListenerSkipping()
                               throws java.lang.Exception
Throws:
java.lang.Exception

testPhaseMethodExpressionAndListener

public void testPhaseMethodExpressionAndListener()
                                          throws java.lang.Exception
Throws:
java.lang.Exception

testPhaseMethodExpressionAndListenerSkipping

public void testPhaseMethodExpressionAndListenerSkipping()
                                                  throws java.lang.Exception
Throws:
java.lang.Exception

testPhaseMethExpressionState

public void testPhaseMethExpressionState()
                                  throws java.lang.Exception
Throws:
java.lang.Exception

testPhaseListenerState

public void testPhaseListenerState()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testPhaseMethodExpressionAndListenerState

public void testPhaseMethodExpressionAndListenerState()
                                               throws java.lang.Exception
Throws:
java.lang.Exception

testPhaseListenerExceptions

public void testPhaseListenerExceptions()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

doTestPhaseMethodExpression

public void doTestPhaseMethodExpression(UIViewRoot root,
                                        boolean skipping)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

doTestPhaseMethodExpressionWithPhaseId

public void doTestPhaseMethodExpressionWithPhaseId(UIViewRoot root,
                                                   PhaseId phaseId)
                                            throws java.lang.Exception
Throws:
java.lang.Exception

doTestPhaseListener

public void doTestPhaseListener(UIViewRoot root,
                                boolean skipping)
                         throws java.lang.Exception
Throws:
java.lang.Exception

doTestPhaseListenerWithPhaseId

public void doTestPhaseListenerWithPhaseId(UIViewRoot root,
                                           PhaseId phaseId)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

doTestPhaseMethodExpressionAndListener

public void doTestPhaseMethodExpressionAndListener(UIViewRoot root,
                                                   boolean skipping)
                                            throws java.lang.Exception
Throws:
java.lang.Exception

doTestPhaseMethodExpressionAndListenerWithPhaseId

public void doTestPhaseMethodExpressionAndListenerWithPhaseId(UIViewRoot root,
                                                              PhaseId phaseId)
                                                       throws java.lang.Exception
Throws:
java.lang.Exception

testEventsListClear

public void testEventsListClear()

testInvokeOnComponentPositive

public void testInvokeOnComponentPositive()
                                   throws java.lang.Exception
Overrides:
testInvokeOnComponentPositive in class UIComponentBaseTestCase
Throws:
java.lang.Exception

testInvokeOnComponentNegative

public void testInvokeOnComponentNegative()
                                   throws java.lang.Exception
Overrides:
testInvokeOnComponentNegative in class UIComponentBaseTestCase
Throws:
java.lang.Exception

testInvokeOnComponentWithPrependId

public void testInvokeOnComponentWithPrependId()
                                        throws java.lang.Exception
Overrides:
testInvokeOnComponentWithPrependId in class UIComponentBaseTestCase
Throws:
java.lang.Exception

testChildrenListAfterAddViewPublish

public void testChildrenListAfterAddViewPublish()
Overrides:
testChildrenListAfterAddViewPublish in class UIComponentBaseTestCase

testFacetMapAfterAddViewPublish

public void testFacetMapAfterAddViewPublish()
Overrides:
testFacetMapAfterAddViewPublish in class UIComponentBaseTestCase

testViewMapEventsTest

public void testViewMapEventsTest()

testViewMapSaveRestore

public void testViewMapSaveRestore()
                            throws java.lang.Exception
Throws:
java.lang.Exception

checkProperties

protected void checkProperties(UIComponent comp1,
                               UIComponent comp2)
Overrides:
checkProperties in class UIComponentBaseTestCase

createComponent

protected UIComponent createComponent()
Overrides:
createComponent in class UIComponentBaseTestCase

populateComponent

protected void populateComponent(UIComponent component)
Overrides:
populateComponent in class UIComponentBaseTestCase


Copyright 2002-2011 Oracle America Inc, Inc. All Rights Reserved.