javax.faces.component
Class UIComponentTestCase

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

public class UIComponentTestCase
extends JUnitFacesTestCase

Base unit tests for all UIComponent implementation classes.


Nested Class Summary
static class UIComponentTestCase.Listener
           
static class UIComponentTestCase.ValidationSignal
           
 
Field Summary
protected  UIComponent component
           
protected  java.lang.String[] expectedAttributes
           
protected  java.lang.String expectedFamily
           
protected  java.lang.String expectedId
           
protected  boolean expectedRendered
           
protected  java.lang.String expectedRendererType
           
protected  boolean expectedRendersChildren
           
 
Constructor Summary
UIComponentTestCase(java.lang.String name)
           
 
Method Summary
protected  void checkAttributeCount(UIComponent component, int count)
           
protected  void checkAttributeMissing(UIComponent component, java.lang.String name)
           
protected  void checkAttributePresent(UIComponent component, java.lang.String name, java.lang.Object value)
           
protected  void checkChildCount(UIComponent component, int count)
           
protected  void checkChildMissing(UIComponent component, UIComponent child)
           
protected  void checkChildPresent(UIComponent component, UIComponent child, int index)
           
protected  void checkFacetCount(UIComponent component, int count)
           
protected  void checkFacetMissing(UIComponent component, java.lang.String name, UIComponent facet)
           
protected  void checkFacetPresent(UIComponent component, java.lang.String name, UIComponent facet)
           
 void setUp()
           
static Test suite()
           
 void tearDown()
           
 void testAttributesMap()
           
 void testAttributesNegative()
           
 void testAttributesPositive()
           
 void testAttributesTransparency()
           
 void testChidrenNegative()
           
 void testChidrenReplace()
           
 void testChildrenIterator()
           
 void testChildrenListIterator()
           
 void testChildrenPositive()
           
 void testFacetsMapEntrySet()
           
 void testFacetsMapKeySet()
           
 void testFacetsMapValues()
           
 void testFacetsNegative()
           
 void testFacetsPositive()
           
 void testPristine()
           
 void testPropertiesInvalid()
           
 void testPropertiesValid()
           
 void testValidationEvents()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

component

protected UIComponent component

expectedAttributes

protected java.lang.String[] expectedAttributes

expectedFamily

protected java.lang.String expectedFamily

expectedId

protected java.lang.String expectedId

expectedRendered

protected boolean expectedRendered

expectedRendererType

protected java.lang.String expectedRendererType

expectedRendersChildren

protected boolean expectedRendersChildren
Constructor Detail

UIComponentTestCase

public UIComponentTestCase(java.lang.String name)
Method Detail

setUp

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

suite

public static Test suite()

tearDown

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

testValidationEvents

public void testValidationEvents()

testAttributesMap

public void testAttributesMap()

testAttributesNegative

public void testAttributesNegative()

testAttributesPositive

public void testAttributesPositive()

testAttributesTransparency

public void testAttributesTransparency()

testChildrenIterator

public void testChildrenIterator()

testChildrenListIterator

public void testChildrenListIterator()

testChidrenNegative

public void testChidrenNegative()

testChildrenPositive

public void testChildrenPositive()

testChidrenReplace

public void testChidrenReplace()

testFacetsMapEntrySet

public void testFacetsMapEntrySet()

testFacetsMapKeySet

public void testFacetsMapKeySet()

testFacetsMapValues

public void testFacetsMapValues()

testFacetsNegative

public void testFacetsNegative()

testFacetsPositive

public void testFacetsPositive()

testPristine

public void testPristine()

testPropertiesInvalid

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

testPropertiesValid

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

checkAttributeCount

protected void checkAttributeCount(UIComponent component,
                                   int count)

checkAttributeMissing

protected void checkAttributeMissing(UIComponent component,
                                     java.lang.String name)

checkAttributePresent

protected void checkAttributePresent(UIComponent component,
                                     java.lang.String name,
                                     java.lang.Object value)

checkChildCount

protected void checkChildCount(UIComponent component,
                               int count)

checkChildMissing

protected void checkChildMissing(UIComponent component,
                                 UIComponent child)

checkChildPresent

protected void checkChildPresent(UIComponent component,
                                 UIComponent child,
                                 int index)

checkFacetCount

protected void checkFacetCount(UIComponent component,
                               int count)

checkFacetMissing

protected void checkFacetMissing(UIComponent component,
                                 java.lang.String name,
                                 UIComponent facet)

checkFacetPresent

protected void checkFacetPresent(UIComponent component,
                                 java.lang.String name,
                                 UIComponent facet)


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