javax.faces.component
Class UIComponentBaseTestCase

java.lang.Object
  extended by JUnitFacesTestCase
      extended by javax.faces.component.UIComponentTestCase
          extended by javax.faces.component.UIComponentBaseTestCase
Direct Known Subclasses:
StateHolderSaverTestCase, UIColumnTestCase, UICommandTestCase, UIDataTestCase, UIFormTestCase, UIGraphicTestCase, UIPanelTestCase, UIParameterTestCase, UISelectItemsTestCase, UISelectItemTestCase, UIViewRootTestCase, ValueHolderTestCaseBase

public class UIComponentBaseTestCase
extends UIComponentTestCase

Base unit tests for all UIComponentBase subclasses.


Nested Class Summary
static class UIComponentBaseTestCase.ComponentListener
           
static class UIComponentBaseTestCase.CustomAbortProcessingException
           
static class UIComponentBaseTestCase.Listener
           
static class UIComponentBaseTestCase.QueueingListener
           
static class UIComponentBaseTestCase.UIComponentListener
           
static class UIComponentBaseTestCase.UIComponentOverrideEncodeBegin
           
static class UIComponentBaseTestCase.UIComponentOverrideEncodeEnd
           
 
Nested classes/interfaces inherited from class javax.faces.component.UIComponentTestCase
UIComponentTestCase.ValidationSignal
 
Field Summary
 
Fields inherited from class javax.faces.component.UIComponentTestCase
component, expectedAttributes, expectedFamily, expectedId, expectedRendered, expectedRendererType, expectedRendersChildren
 
Constructor Summary
UIComponentBaseTestCase(java.lang.String name)
          Construct a new instance of this test case.
 
Method Summary
protected  void checkAttributes(UIComponent comp1, UIComponent comp2)
           
protected  void checkComponentListeners(UIComponent control, UIComponent toValidate)
           
protected  void checkComponents(UIComponent comp1, UIComponent comp2)
           
protected  void checkProperties(UIComponent comp1, UIComponent comp2)
           
protected  void checkValueBindings(UIComponent comp1, UIComponent comp2)
           
protected  UIComponent createComponent()
           
protected  java.lang.String lifecycleTrace(java.lang.String lmethod, java.lang.String cmethod)
          Construct and return a lifecycle method call trace for the specified method names.
protected  void lifecycleTrace(java.lang.String lmethod, java.lang.String cmethod, UIComponent component, java.lang.StringBuffer sb)
           
protected  void populateComponent(UIComponent component)
           
 void setUp()
           
static Test suite()
           
 void tearDown()
           
 void testChildrenAndFacetsWithNullGetParent()
           
 void testChildrenListAfterAddPublish()
           
 void testChildrenListAfterAddViewPublish()
           
 void testChildrenRecursive()
           
 void testComponentReconnect()
           
 void testComponentRemoval()
           
 void testComponentToFromEL()
           
 void testComponentToFromEL2()
           
 void testComponentToFromELBackwardCompatible()
           
 void testEncodeBeginPublish()
           
 void testEncodeChildren()
           
 void testFacetMapAfterAddViewPublish()
           
 void testGetFacetsAndChildren()
           
 void testInvokeOnComponentNegative()
           
 void testInvokeOnComponentPositive()
           
 void testInvokeOnComponentWithPrependId()
           
 void testLifecycleManagement()
           
 void testMethodBindingAdapterBaseException()
           
 void testStateHolder()
           
 void testStateHolder2()
           
 void testValueBindings()
           
 void testValueExpressions()
           
 void 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
 

Constructor Detail

UIComponentBaseTestCase

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

Parameters:
name - Name of the test case
Method Detail

setUp

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

suite

public static Test suite()

tearDown

public void tearDown()
              throws java.lang.Exception
Overrides:
tearDown in class UIComponentTestCase
Throws:
java.lang.Exception

testLifecycleManagement

public void testLifecycleManagement()

testComponentToFromELBackwardCompatible

public void testComponentToFromELBackwardCompatible()

testComponentToFromEL

public void testComponentToFromEL()

testComponentToFromEL2

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

testEncodeChildren

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

testChildrenRecursive

public void testChildrenRecursive()

testChildrenAndFacetsWithNullGetParent

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

testComponentReconnect

public void testComponentReconnect()

testComponentRemoval

public void testComponentRemoval()

testStateHolder

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

testStateHolder2

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

testValueBindings

public void testValueBindings()

testValueExpressions

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

testValueExpressionValueBindingIdempotency

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

testMethodBindingAdapterBaseException

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

checkAttributes

protected void checkAttributes(UIComponent comp1,
                               UIComponent comp2)

checkComponents

protected void checkComponents(UIComponent comp1,
                               UIComponent comp2)

checkProperties

protected void checkProperties(UIComponent comp1,
                               UIComponent comp2)

checkValueBindings

protected void checkValueBindings(UIComponent comp1,
                                  UIComponent comp2)

checkComponentListeners

protected void checkComponentListeners(UIComponent control,
                                       UIComponent toValidate)

createComponent

protected UIComponent createComponent()

populateComponent

protected void populateComponent(UIComponent component)

lifecycleTrace

protected java.lang.String lifecycleTrace(java.lang.String lmethod,
                                          java.lang.String cmethod)
Construct and return a lifecycle method call trace for the specified method names.

Parameters:
lmethod - Name of the lifecycle method under test
cmethod - Name of the component method that corresponds

lifecycleTrace

protected void lifecycleTrace(java.lang.String lmethod,
                              java.lang.String cmethod,
                              UIComponent component,
                              java.lang.StringBuffer sb)

testGetFacetsAndChildren

public void testGetFacetsAndChildren()

testInvokeOnComponentPositive

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

testInvokeOnComponentNegative

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

testInvokeOnComponentWithPrependId

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

testChildrenListAfterAddPublish

public void testChildrenListAfterAddPublish()

testFacetMapAfterAddViewPublish

public void testFacetMapAfterAddViewPublish()

testChildrenListAfterAddViewPublish

public void testChildrenListAfterAddViewPublish()

testEncodeBeginPublish

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


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