com.mockrunner.tag
Class TagTestCaseAdapter

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.mockrunner.base.BaseTestCase
              extended by com.mockrunner.base.WebTestCase
                  extended by com.mockrunner.base.HTMLOutputTestCase
                      extended by com.mockrunner.tag.TagTestCaseAdapter
All Implemented Interfaces:
junit.framework.Test

public abstract class TagTestCaseAdapter
extends HTMLOutputTestCase

Delegator for TagTestModule. You can subclass this adapter or use TagTestModule directly (so your test case can use another base class). This adapter extends BaseTestCase. It can be used if you want to use several modules in conjunction. This class is generated from the TagTestModule and should not be edited directly.


Constructor Summary
TagTestCaseAdapter()
           
TagTestCaseAdapter(java.lang.String name)
           
 
Method Summary
protected  void clearOutput()
          Delegates to TagTestModule.clearOutput()
protected  NestedTag createNestedTag(java.lang.Class tagClass)
          Delegates to TagTestModule.createNestedTag(Class)
protected  NestedTag createNestedTag(java.lang.Class tagClass, java.util.Map attributes)
          Delegates to TagTestModule.createNestedTag(Class, Map)
protected  javax.servlet.jsp.tagext.TagSupport createTag(java.lang.Class tagClass)
          Delegates to TagTestModule.createTag(Class)
protected  javax.servlet.jsp.tagext.TagSupport createTag(java.lang.Class tagClass, java.util.Map attributes)
          Delegates to TagTestModule.createTag(Class, Map)
protected  javax.servlet.jsp.tagext.JspTag createWrappedTag(java.lang.Class tagClass)
          Delegates to TagTestModule.createWrappedTag(Class)
protected  javax.servlet.jsp.tagext.JspTag createWrappedTag(java.lang.Class tagClass, java.util.Map attributes)
          Delegates to TagTestModule.createWrappedTag(Class, Map)
protected  int doAfterBody()
          Delegates to TagTestModule.doAfterBody()
protected  int doEndTag()
          Delegates to TagTestModule.doEndTag()
protected  void doInitBody()
          Delegates to TagTestModule.doInitBody()
protected  int doStartTag()
          Delegates to TagTestModule.doStartTag()
protected  void doTag()
          Delegates to TagTestModule.doTag()
protected  HTMLOutputModule getHTMLOutputModule()
          Returns the TagTestModule as HTMLOutputModule.
protected  MockPageContext getMockPageContext()
          Delegates to TagTestModule.getMockPageContext()
protected  NestedTag getNestedTag()
          Delegates to TagTestModule.getNestedTag()
protected  javax.servlet.jsp.tagext.TagSupport getTag()
          Delegates to TagTestModule.getTag()
protected  TagTestModule getTagTestModule()
          Gets the TagTestModule.
protected  javax.servlet.jsp.tagext.JspTag getWrappedTag()
          Delegates to TagTestModule.getWrappedTag()
protected  void populateAttributes()
          Delegates to TagTestModule.populateAttributes()
protected  int processTagLifecycle()
          Delegates to TagTestModule.processTagLifecycle()
protected  void release()
          Delegates to TagTestModule.release()
protected  void setBody(java.lang.String body)
          Delegates to TagTestModule.setBody(String)
protected  void setDoRelease(boolean doRelease)
          Delegates to TagTestModule.setDoRelease(boolean)
protected  void setDoReleaseRecursive(boolean doRelease)
          Delegates to TagTestModule.setDoReleaseRecursive(boolean)
protected  NestedTag setTag(javax.servlet.jsp.tagext.JspTag tag)
          Delegates to TagTestModule.setTag(JspTag)
protected  NestedTag setTag(javax.servlet.jsp.tagext.JspTag tag, java.util.Map attributes)
          Delegates to TagTestModule.setTag(JspTag, Map)
protected  NestedTag setTag(javax.servlet.jsp.tagext.TagSupport tag)
          Delegates to TagTestModule.setTag(TagSupport)
protected  NestedTag setTag(javax.servlet.jsp.tagext.TagSupport tag, java.util.Map attributes)
          Delegates to TagTestModule.setTag(TagSupport, Map)
protected  void setTagTestModule(TagTestModule tagTestModule)
          Sets the TagTestModule.
protected  void setUp()
          Creates the TagTestModule.
protected  void tearDown()
           
 
Methods inherited from class com.mockrunner.base.HTMLOutputTestCase
getOutput, getOutputAsBufferedReader, getOutputAsJDOMDocument, getOutputAsW3CDocument, getOutputAsWellformedXML, getWebTestModule, setCaseSensitive, verifyOutput, verifyOutputContains, verifyOutputRegularExpression
 
Methods inherited from class com.mockrunner.base.WebTestCase
addRequestParameter, addRequestParameter, addRequestParameter, getRequestAttribute, getRequestParameter, getSessionAttribute, setRequestAttribute, setSessionAttribute
 
Methods inherited from class com.mockrunner.base.BaseTestCase
createActionMockObjectFactory, createActionMockObjectFactory, createActionMockObjectFactory, createActionTestModule, createActionTestModule, createConnectorMockObjectFactory, createConnectorTestModule, createConnectorTestModule, createEJBMockObjectFactory, createEJBTestModule, createEJBTestModule, createJDBCMockObjectFactory, createJDBCTestModule, createJDBCTestModule, createJMSMockObjectFactory, createJMSTestModule, createJMSTestModule, createServletTestModule, createServletTestModule, createTagTestModule, createTagTestModule, createWebMockObjectFactory, createWebMockObjectFactory, createWebMockObjectFactory, getActionMockObjectFactory, getConnectorMockObjectFactory, getEJBMockObjectFactory, getJDBCMockObjectFactory, getJMSMockObjectFactory, getWebMockObjectFactory, setActionMockObjectFactory, setConnectorMockObjectFactory, setEJBMockObjectFactory, setJDBCMockObjectFactory, setJMSMockObjectFactory, setWebMockObjectFactory
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TagTestCaseAdapter

public TagTestCaseAdapter()

TagTestCaseAdapter

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

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class BaseTestCase
Throws:
java.lang.Exception

setUp

protected void setUp()
              throws java.lang.Exception
Creates the TagTestModule. If you overwrite this method, you must call super.setUp().

Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

getHTMLOutputModule

protected HTMLOutputModule getHTMLOutputModule()
Returns the TagTestModule as HTMLOutputModule.

Specified by:
getHTMLOutputModule in class HTMLOutputTestCase
Returns:
the HTMLOutputModule

getTagTestModule

protected TagTestModule getTagTestModule()
Gets the TagTestModule.

Returns:
the TagTestModule

setTagTestModule

protected void setTagTestModule(TagTestModule tagTestModule)
Sets the TagTestModule.

Parameters:
tagTestModule - the TagTestModule

getMockPageContext

protected MockPageContext getMockPageContext()
Delegates to TagTestModule.getMockPageContext()


clearOutput

protected void clearOutput()
Delegates to TagTestModule.clearOutput()


createNestedTag

protected NestedTag createNestedTag(java.lang.Class tagClass,
                                    java.util.Map attributes)
Delegates to TagTestModule.createNestedTag(Class, Map)


createNestedTag

protected NestedTag createNestedTag(java.lang.Class tagClass)
Delegates to TagTestModule.createNestedTag(Class)


createWrappedTag

protected javax.servlet.jsp.tagext.JspTag createWrappedTag(java.lang.Class tagClass)
Delegates to TagTestModule.createWrappedTag(Class)


createWrappedTag

protected javax.servlet.jsp.tagext.JspTag createWrappedTag(java.lang.Class tagClass,
                                                           java.util.Map attributes)
Delegates to TagTestModule.createWrappedTag(Class, Map)


getWrappedTag

protected javax.servlet.jsp.tagext.JspTag getWrappedTag()
Delegates to TagTestModule.getWrappedTag()


setTag

protected NestedTag setTag(javax.servlet.jsp.tagext.JspTag tag)
Delegates to TagTestModule.setTag(JspTag)


setTag

protected NestedTag setTag(javax.servlet.jsp.tagext.JspTag tag,
                           java.util.Map attributes)
Delegates to TagTestModule.setTag(JspTag, Map)


setTag

protected NestedTag setTag(javax.servlet.jsp.tagext.TagSupport tag,
                           java.util.Map attributes)
Delegates to TagTestModule.setTag(TagSupport, Map)


setTag

protected NestedTag setTag(javax.servlet.jsp.tagext.TagSupport tag)
Delegates to TagTestModule.setTag(TagSupport)


setDoRelease

protected void setDoRelease(boolean doRelease)
Delegates to TagTestModule.setDoRelease(boolean)


setDoReleaseRecursive

protected void setDoReleaseRecursive(boolean doRelease)
Delegates to TagTestModule.setDoReleaseRecursive(boolean)


populateAttributes

protected void populateAttributes()
Delegates to TagTestModule.populateAttributes()


setBody

protected void setBody(java.lang.String body)
Delegates to TagTestModule.setBody(String)


getNestedTag

protected NestedTag getNestedTag()
Delegates to TagTestModule.getNestedTag()


doTag

protected void doTag()
Delegates to TagTestModule.doTag()


doStartTag

protected int doStartTag()
Delegates to TagTestModule.doStartTag()


doEndTag

protected int doEndTag()
Delegates to TagTestModule.doEndTag()


doInitBody

protected void doInitBody()
Delegates to TagTestModule.doInitBody()


doAfterBody

protected int doAfterBody()
Delegates to TagTestModule.doAfterBody()


processTagLifecycle

protected int processTagLifecycle()
Delegates to TagTestModule.processTagLifecycle()


release

protected void release()
Delegates to TagTestModule.release()


createTag

protected javax.servlet.jsp.tagext.TagSupport createTag(java.lang.Class tagClass)
Delegates to TagTestModule.createTag(Class)


createTag

protected javax.servlet.jsp.tagext.TagSupport createTag(java.lang.Class tagClass,
                                                        java.util.Map attributes)
Delegates to TagTestModule.createTag(Class, Map)


getTag

protected javax.servlet.jsp.tagext.TagSupport getTag()
Delegates to TagTestModule.getTag()