|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.apache.cactus.ServletTestCase org.apache.cactus.JspTestCase
Test classes that need access to valid JSP implicit objects (such as the page context, the output jsp writer, the HTTP request, ...) must subclass this class.
Field Summary | |
javax.servlet.jsp.JspWriter |
out
Valid JspWriter object that you can access from
the testXXX() , setUp and
tearDown() methods. |
PageContextWrapper |
pageContext
Valid PageContext object that you can access from
the testXXX() , setUp and
tearDown() methods. |
Fields inherited from class org.apache.cactus.ServletTestCase |
config, request, response, session |
Constructor Summary | |
JspTestCase()
Default constructor defined in order to allow creating Test Case without needing to define constructor (new feature in JUnit 3.8.1). |
|
JspTestCase(java.lang.String theName)
Constructs a JUnit test case with the given name. |
|
JspTestCase(java.lang.String theName,
junit.framework.Test theTest)
Wraps a pure JUnit Test Case in a Cactus Test Case. |
Methods inherited from class org.apache.cactus.ServletTestCase |
runBare, runTest |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, setName, setUp, tearDown, 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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public PageContextWrapper pageContext
PageContext
object that you can access from
the testXXX()
, setUp
and
tearDown()
methods. If you try to access it from either the
beginXXX()
or endXXX()
methods it will
have the null
value.
public javax.servlet.jsp.JspWriter out
JspWriter
object that you can access from
the testXXX()
, setUp
and
tearDown()
methods. If you try to access it from either the
beginXXX()
or endXXX()
methods it will
have the null
value.
Constructor Detail |
public JspTestCase()
public JspTestCase(java.lang.String theName)
theName
- the name of the test casepublic JspTestCase(java.lang.String theName, junit.framework.Test theTest)
theName
- the name of the testtheTest
- the Test Case class to wrap
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |