javax.faces.component
Class ValueHolderTestCaseBase

java.lang.Object
  extended by JUnitFacesTestCase
      extended by javax.faces.component.UIComponentTestCase
          extended by javax.faces.component.UIComponentBaseTestCase
              extended by javax.faces.component.ValueHolderTestCaseBase
Direct Known Subclasses:
UIOutputTestCase

public abstract class ValueHolderTestCaseBase
extends UIComponentBaseTestCase

Unit tests for ValueHolder. Any test case for a component class that implements ValueHolder should extend this class.


Nested Class Summary
 
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
 
Fields inherited from class javax.faces.component.UIComponentTestCase
component, expectedAttributes, expectedFamily, expectedId, expectedRendered, expectedRendererType, expectedRendersChildren
 
Constructor Summary
ValueHolderTestCaseBase(java.lang.String name)
          Construct a new instance of this test case.
 
Method Summary
protected  void checkNumberConverter(NumberConverter nc1, NumberConverter nc2)
           
protected  void checkNumberConverters(NumberConverter nc1, NumberConverter nc2)
           
protected  void checkProperties(UIComponent comp1, UIComponent comp2)
           
protected  NumberConverter createNumberConverter()
           
 boolean doTestAttributesTransparency(ValueHolder vh, UIComponent newComp)
           
protected  void populateComponent(UIComponent component)
           
 void setUp()
           
static Test suite()
           
 void testAttributesTransparency()
           
 void testAttributesTransparencyNonDeterministic()
           
 void testLifecycleManagement()
           
 void testPristine()
           
 void testPropertiesInvalid()
           
 void testPropertiesValid()
           
 
Methods inherited from class javax.faces.component.UIComponentBaseTestCase
checkAttributes, checkComponentListeners, checkComponents, checkValueBindings, createComponent, lifecycleTrace, lifecycleTrace, tearDown, testChildrenAndFacetsWithNullGetParent, testChildrenListAfterAddPublish, testChildrenListAfterAddViewPublish, testChildrenRecursive, testComponentReconnect, testComponentRemoval, testComponentToFromEL, testComponentToFromEL2, testComponentToFromELBackwardCompatible, testEncodeBeginPublish, testEncodeChildren, testFacetMapAfterAddViewPublish, testGetFacetsAndChildren, testInvokeOnComponentNegative, testInvokeOnComponentPositive, testInvokeOnComponentWithPrependId, 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, testChidrenNegative, testChidrenReplace, testChildrenIterator, testChildrenListIterator, testChildrenPositive, testFacetsMapEntrySet, testFacetsMapKeySet, testFacetsMapValues, testFacetsNegative, testFacetsPositive, testValidationEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueHolderTestCaseBase

public ValueHolderTestCaseBase(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 UIComponentBaseTestCase
Throws:
java.lang.Exception

suite

public static Test suite()

testAttributesTransparencyNonDeterministic

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

testAttributesTransparency

public void testAttributesTransparency()
Overrides:
testAttributesTransparency in class UIComponentTestCase

doTestAttributesTransparency

public boolean doTestAttributesTransparency(ValueHolder vh,
                                            UIComponent newComp)

testLifecycleManagement

public void testLifecycleManagement()
Overrides:
testLifecycleManagement in class UIComponentBaseTestCase

testPristine

public void testPristine()
Overrides:
testPristine in class UIComponentTestCase

testPropertiesInvalid

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

testPropertiesValid

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

checkNumberConverter

protected void checkNumberConverter(NumberConverter nc1,
                                    NumberConverter nc2)

checkProperties

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

populateComponent

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

createNumberConverter

protected NumberConverter createNumberConverter()

checkNumberConverters

protected void checkNumberConverters(NumberConverter nc1,
                                     NumberConverter nc2)


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