public abstract class BasicTagTestCaseAdapter extends BasicHTMLOutputTestCase
TagTestModule. You can
subclass this adapter or use TagTestModule
directly (so your test case can use another base class).
This basic adapter can be used if you don't need any other modules. It
does not extend BaseTestCase. If you want
to use several modules in conjunction, consider subclassing
TagTestCaseAdapter.
This class is generated from the TagTestModule
and should not be edited directly.| Constructor and Description |
|---|
BasicTagTestCaseAdapter() |
BasicTagTestCaseAdapter(String name) |
getOutput, getOutputAsBufferedReader, getOutputAsJDOMDocument, getOutputAsW3CDocument, getOutputAsWellformedXML, getWebTestModule, setCaseSensitive, verifyOutput, verifyOutputContains, verifyOutputRegularExpressionaddRequestParameter, addRequestParameter, addRequestParameter, getRequestAttribute, getRequestParameter, getSessionAttribute, setRequestAttribute, setSessionAttributecountTestCases, createResult, getName, run, run, runBare, runTest, setName, toStringassertEquals, 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, failpublic BasicTagTestCaseAdapter()
public BasicTagTestCaseAdapter(String name)
protected void tearDown()
throws Exception
tearDown in class junit.framework.TestCaseExceptionprotected void setUp()
throws Exception
TagTestModule. If you
overwrite this method, you must call super.setUp().setUp in class junit.framework.TestCaseExceptionprotected WebMockObjectFactory createWebMockObjectFactory()
WebMockObjectFactory.WebMockObjectFactoryprotected WebMockObjectFactory createWebMockObjectFactory(WebMockObjectFactory otherFactory)
createWebMockObjectFactory(otherFactory, true).protected WebMockObjectFactory createWebMockObjectFactory(WebMockObjectFactory otherFactory, boolean createNewSession)
WebMockObjectFactory based on another
WebMockObjectFactory.
The created WebMockObjectFactory will have its own
request and response objects. If you set createNewSession
to true it will also have its own session object.
The two factories will share one ServletContext.
Especially important for multithreading tests.
If you set createNewSession to false, the two factories
will share one session. This setting simulates multiple requests
from the same client.otherFactory - the other factorycreateNewSession - create a new session for the new factoryWebMockObjectFactoryprotected WebMockObjectFactory getWebMockObjectFactory()
WebMockObjectFactory.WebMockObjectFactoryprotected void setWebMockObjectFactory(WebMockObjectFactory webMockObjectFactory)
WebMockObjectFactory.webMockObjectFactory - the WebMockObjectFactoryprotected TagTestModule createTagTestModule()
TagTestModule based on the current
WebMockObjectFactory.
Same as createTagTestModule(getWebMockObjectFactory()).TagTestModuleprotected TagTestModule createTagTestModule(WebMockObjectFactory mockFactory)
TagTestModule with the specified
WebMockObjectFactory.TagTestModuleprotected HTMLOutputModule getHTMLOutputModule()
TagTestModule as
HTMLOutputModule.getHTMLOutputModule in class BasicHTMLOutputTestCaseHTMLOutputModuleprotected TagTestModule getTagTestModule()
TagTestModule.TagTestModuleprotected void setTagTestModule(TagTestModule tagTestModule)
TagTestModule.tagTestModule - the TagTestModuleprotected MockPageContext getMockPageContext()
TagTestModule.getMockPageContext()protected void clearOutput()
TagTestModule.clearOutput()protected NestedTag createNestedTag(Class tagClass, Map attributes)
TagTestModule.createNestedTag(Class, Map)protected NestedTag createNestedTag(Class tagClass)
TagTestModule.createNestedTag(Class)protected javax.servlet.jsp.tagext.JspTag createWrappedTag(Class tagClass)
TagTestModule.createWrappedTag(Class)protected javax.servlet.jsp.tagext.JspTag createWrappedTag(Class tagClass, Map attributes)
TagTestModule.createWrappedTag(Class, Map)protected javax.servlet.jsp.tagext.JspTag getWrappedTag()
TagTestModule.getWrappedTag()protected NestedTag setTag(javax.servlet.jsp.tagext.JspTag tag)
TagTestModule.setTag(JspTag)protected NestedTag setTag(javax.servlet.jsp.tagext.JspTag tag, Map attributes)
TagTestModule.setTag(JspTag, Map)protected NestedTag setTag(javax.servlet.jsp.tagext.TagSupport tag, Map attributes)
TagTestModule.setTag(TagSupport, Map)protected NestedTag setTag(javax.servlet.jsp.tagext.TagSupport tag)
TagTestModule.setTag(TagSupport)protected void setDoRelease(boolean doRelease)
TagTestModule.setDoRelease(boolean)protected void setDoReleaseRecursive(boolean doRelease)
TagTestModule.setDoReleaseRecursive(boolean)protected void populateAttributes()
TagTestModule.populateAttributes()protected void setBody(String body)
TagTestModule.setBody(String)protected NestedTag getNestedTag()
TagTestModule.getNestedTag()protected void doTag()
TagTestModule.doTag()protected int doStartTag()
TagTestModule.doStartTag()protected int doEndTag()
TagTestModule.doEndTag()protected void doInitBody()
TagTestModule.doInitBody()protected int doAfterBody()
TagTestModule.doAfterBody()protected int processTagLifecycle()
TagTestModule.processTagLifecycle()protected void release()
TagTestModule.release()protected javax.servlet.jsp.tagext.TagSupport createTag(Class tagClass)
TagTestModule.createTag(Class)protected javax.servlet.jsp.tagext.TagSupport createTag(Class tagClass, Map attributes)
TagTestModule.createTag(Class, Map)protected javax.servlet.jsp.tagext.TagSupport getTag()
TagTestModule.getTag()Copyright © 2003-2013. All Rights Reserved.