javax.faces.component
Class UIDataTestCase

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

public class UIDataTestCase
extends UIComponentBaseTestCase

Unit tests for UIData.


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
protected  java.util.List beans
           
protected  DataModel model
           
protected  java.io.StringWriter swriter
           
 
Fields inherited from class javax.faces.component.UIComponentTestCase
component, expectedAttributes, expectedFamily, expectedId, expectedRendered, expectedRendererType, expectedRendersChildren
 
Constructor Summary
UIDataTestCase(java.lang.String name)
          Construct a new instance of this test case.
 
Method Summary
protected  void checkLocalValues(java.lang.String[] values)
           
protected  void checkMessages(int expected)
           
protected  void checkModelInputs(java.lang.String[] values)
           
protected  void checkProperties(UIComponent comp1, UIComponent comp2)
           
protected  void checkResponse(java.lang.String resource)
           
protected  void checkSubmittedValues(java.lang.String[] values)
           
protected  UIComponent createComponent()
           
 void PENDING_FIXME_testNestedTablesWithoutIds()
           
 void PENDING_FIXME_testTreeLifecycleFacets()
           
 void PENDING_FIXME_testValueBindings()
           
protected  void populateComponent(UIComponent component)
           
 void setUp()
           
protected  void setupModel()
           
protected  void setupRenderers()
           
protected  UICommand setupTree(boolean labels)
           
protected  UICommand setupTree(UIComponent root, boolean labels, boolean ids)
           
protected  UICommand setupTree2(UIComponent root, boolean labels, boolean ids)
           
static Test suite()
           
 void tearDown()
           
 void testAttributesTransparency()
           
 void testClearDataModelCache()
           
 void testInvokeOnComponent()
           
 void testInvokeOnComponent2()
           
 void testInvokeOnComponentNested()
          Test invokeOnComponent on the following tree.
 void testLifecycleManagement()
           
 void testModelPristine()
           
 void testModelRead()
           
 void testModelWrite()
           
 void testNestedTablesWithIds()
           
 void testPristine()
           
 void testPropertiesInvalid()
           
 void testPropertiesValid()
           
 void testTreeLifecycle()
           
 void testTreeModify1()
           
 void testTreeModify2()
           
 void testTreeRendering()
           
 void testTreeTail()
           
 void testTreeUpdating()
           
 void testTreeValidation()
           
 
Methods inherited from class javax.faces.component.UIComponentBaseTestCase
checkAttributes, checkComponentListeners, checkComponents, checkValueBindings, lifecycleTrace, lifecycleTrace, 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
 

Field Detail

beans

protected java.util.List beans

model

protected DataModel model

swriter

protected java.io.StringWriter swriter
Constructor Detail

UIDataTestCase

public UIDataTestCase(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()

tearDown

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

testClearDataModelCache

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

testAttributesTransparency

public void testAttributesTransparency()
Overrides:
testAttributesTransparency in class UIComponentTestCase

testLifecycleManagement

public void testLifecycleManagement()
Overrides:
testLifecycleManagement in class UIComponentBaseTestCase

testModelPristine

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

testModelRead

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

testModelWrite

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

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

testTreeLifecycle

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

testInvokeOnComponent

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

testInvokeOnComponent2

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

testInvokeOnComponentNested

public void testInvokeOnComponentNested()
                                 throws java.lang.Exception

Test invokeOnComponent on the following tree.

 id:null
 type:UIViewRoot
 

id:outerData type:UIData

id:outerColumn type:UIColumn

id:form1 type:UIForm

id:data type:UIData

id:commandColumn type:UIColumn

id:commandFooter type:UIOutput

id:commandHeader type:UIOutput

id:command type:UICommand

id:inputColumn type:UIColumn

id:inputFooter type:UIOutput

id:inputHeader type:UIOutput

id:input type:UIInput

id:outputColumn type:UIColumn

id:outputFooter type:UIOutput

id:outputHeader type:UIOutput

id:output type:UIOutput

id:constantColumn type:UIColumn

id:constantFooter type:UIOutput

id:constantHeader type:UIOutput

id:constant type:UIOutput

id:form2 type:UIForm

id:data type:UIData

id:commandColumn type:UIColumn

id:commandFooter type:UIOutput

id:commandHeader type:UIOutput

id:command type:UICommand

id:inputColumn type:UIColumn

id:inputFooter type:UIOutput

id:inputHeader type:UIOutput

id:input type:UIInput

id:outputColumn type:UIColumn

id:outputFooter type:UIOutput

id:outputHeader type:UIOutput

id:output type:UIOutput

id:constantColumn type:UIColumn

id:constantFooter type:UIOutput

id:constantHeader type:UIOutput

id:constant type:UIOutput

Throws:
java.lang.Exception

PENDING_FIXME_testTreeLifecycleFacets

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

testTreeModify1

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

testTreeModify2

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

testTreeRendering

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

testTreeTail

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

testTreeUpdating

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

testTreeValidation

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

testNestedTablesWithIds

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

PENDING_FIXME_testNestedTablesWithoutIds

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

PENDING_FIXME_testValueBindings

public void PENDING_FIXME_testValueBindings()

checkLocalValues

protected void checkLocalValues(java.lang.String[] values)

checkSubmittedValues

protected void checkSubmittedValues(java.lang.String[] values)

checkMessages

protected void checkMessages(int expected)

checkModelInputs

protected void checkModelInputs(java.lang.String[] values)

checkProperties

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

checkResponse

protected void checkResponse(java.lang.String resource)
                      throws java.lang.Exception
Throws:
java.lang.Exception

createComponent

protected UIComponent createComponent()
Overrides:
createComponent in class UIComponentBaseTestCase

populateComponent

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

setupModel

protected void setupModel()
                   throws java.lang.Exception
Throws:
java.lang.Exception

setupRenderers

protected void setupRenderers()
                       throws java.lang.Exception
Throws:
java.lang.Exception

setupTree

protected UICommand setupTree(boolean labels)
                       throws java.lang.Exception
Throws:
java.lang.Exception

setupTree

protected UICommand setupTree(UIComponent root,
                              boolean labels,
                              boolean ids)
                       throws java.lang.Exception
Throws:
java.lang.Exception

setupTree2

protected UICommand setupTree2(UIComponent root,
                               boolean labels,
                               boolean ids)
                        throws java.lang.Exception
Throws:
java.lang.Exception


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