|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
com.mockrunner.base.BasicWebTestCase
com.mockrunner.base.BasicHTMLOutputTestCase
com.mockrunner.tag.BasicTagTestCaseAdapter
public abstract class BasicTagTestCaseAdapter
Delegator for 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 Summary | |
|---|---|
BasicTagTestCaseAdapter()
|
|
BasicTagTestCaseAdapter(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 TagTestModule |
createTagTestModule()
Creates a TagTestModule based on the current
WebMockObjectFactory. |
protected TagTestModule |
createTagTestModule(WebMockObjectFactory mockFactory)
Creates a TagTestModule with the specified
WebMockObjectFactory. |
protected WebMockObjectFactory |
createWebMockObjectFactory()
Creates a WebMockObjectFactory. |
protected WebMockObjectFactory |
createWebMockObjectFactory(WebMockObjectFactory otherFactory)
Same as createWebMockObjectFactory(otherFactory, true). |
protected WebMockObjectFactory |
createWebMockObjectFactory(WebMockObjectFactory otherFactory,
boolean createNewSession)
Creates a WebMockObjectFactory based on another
WebMockObjectFactory. |
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 WebMockObjectFactory |
getWebMockObjectFactory()
Gets the WebMockObjectFactory. |
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 |
setWebMockObjectFactory(WebMockObjectFactory webMockObjectFactory)
Sets the WebMockObjectFactory. |
protected void |
tearDown()
|
| Methods inherited from class com.mockrunner.base.BasicHTMLOutputTestCase |
|---|
getOutput, getOutputAsBufferedReader, getOutputAsJDOMDocument, getOutputAsW3CDocument, getOutputAsWellformedXML, getWebTestModule, setCaseSensitive, verifyOutput, verifyOutputContains, verifyOutputRegularExpression |
| Methods inherited from class com.mockrunner.base.BasicWebTestCase |
|---|
addRequestParameter, addRequestParameter, addRequestParameter, getRequestAttribute, getRequestParameter, getSessionAttribute, setRequestAttribute, setSessionAttribute |
| 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 |
|---|
public BasicTagTestCaseAdapter()
public BasicTagTestCaseAdapter(java.lang.String name)
| Method Detail |
|---|
protected void tearDown()
throws java.lang.Exception
tearDown in class junit.framework.TestCasejava.lang.Exception
protected void setUp()
throws java.lang.Exception
TagTestModule. If you
overwrite this method, you must call super.setUp().
setUp in class junit.framework.TestCasejava.lang.Exceptionprotected 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 factory
WebMockObjectFactoryprotected 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(java.lang.Class tagClass,
java.util.Map attributes)
TagTestModule.createNestedTag(Class, Map)
protected NestedTag createNestedTag(java.lang.Class tagClass)
TagTestModule.createNestedTag(Class)
protected javax.servlet.jsp.tagext.JspTag createWrappedTag(java.lang.Class tagClass)
TagTestModule.createWrappedTag(Class)
protected javax.servlet.jsp.tagext.JspTag createWrappedTag(java.lang.Class tagClass,
java.util.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,
java.util.Map attributes)
TagTestModule.setTag(JspTag, Map)
protected NestedTag setTag(javax.servlet.jsp.tagext.TagSupport tag,
java.util.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(java.lang.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(java.lang.Class tagClass)
TagTestModule.createTag(Class)
protected javax.servlet.jsp.tagext.TagSupport createTag(java.lang.Class tagClass,
java.util.Map attributes)
TagTestModule.createTag(Class, Map)
protected javax.servlet.jsp.tagext.TagSupport getTag()
TagTestModule.getTag()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||