javax.faces.webapp
Class UIComponentTagTestCase

java.lang.Object
  extended by JUnitFacesTestCase
      extended by javax.faces.webapp.TagTestCaseBase
          extended by javax.faces.webapp.UIComponentTagTestCase

public class UIComponentTagTestCase
extends TagTestCaseBase

Base unit tests for all UIComponentTag classes.


Field Summary
protected  java.util.Map tags
           
 
Fields inherited from class javax.faces.webapp.TagTestCaseBase
pageContext, root, servlet
 
Constructor Summary
UIComponentTagTestCase(java.lang.String name)
          Construct a new instance of this test case.
 
Method Summary
protected  void add(Tag parent, Tag child)
           
protected  void configure(java.lang.String id1, java.lang.String id2, boolean rendered, boolean children)
           
protected  void release()
           
protected  void release(Tag tag)
           
protected  void render()
           
protected  void render(Tag tag)
           
protected  void reset()
           
 void setUp()
          Since the JSP tag no longer creates the response writer, we must do it ourselves.
static Test suite()
          Return the tests included in this test suite.
 void tearDown()
          Tear down instance variables required by this test case.
 void testMultipleTagWithId()
           
 void testMultipleTagWithoutId1()
           
 void testMultipleTagWithoutId2()
           
 void testMultipleTagWithoutId3()
           
 void testPristine()
           
 void testRenderedFalse()
           
 void testRendersChildren()
           
 void testSingleTagWithId()
           
 void testSingleTagWithoutId()
           
 void testUniqueId()
           
 void testValueBindings()
           
protected  java.lang.String text()
           
protected  java.lang.String tree()
           
protected  void tree(UIComponent component, java.lang.StringBuffer sb)
           
protected  void verifyB2()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tags

protected java.util.Map tags
Constructor Detail

UIComponentTagTestCase

public UIComponentTagTestCase(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

Since the JSP tag no longer creates the response writer, we must do it ourselves.

Overrides:
setUp in class TagTestCaseBase
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 TagTestCaseBase
Throws:
java.lang.Exception

testMultipleTagWithId

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

testMultipleTagWithoutId1

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

testMultipleTagWithoutId2

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

testMultipleTagWithoutId3

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

testPristine

public void testPristine()

testRenderedFalse

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

testRendersChildren

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

testSingleTagWithId

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

testSingleTagWithoutId

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

testUniqueId

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

testValueBindings

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

add

protected void add(Tag parent,
                   Tag child)

configure

protected void configure(java.lang.String id1,
                         java.lang.String id2,
                         boolean rendered,
                         boolean children)

release

protected void release()

release

protected void release(Tag tag)

render

protected void render()
               throws JspException
Throws:
JspException

render

protected void render(Tag tag)
               throws JspException
Throws:
JspException

reset

protected void reset()
              throws java.io.IOException
Throws:
java.io.IOException

tree

protected java.lang.String tree()

tree

protected void tree(UIComponent component,
                    java.lang.StringBuffer sb)

text

protected java.lang.String text()

verifyB2

protected void verifyB2()


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