|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | POINTCUT | FIELD | CONSTRUCTOR | METHOD | DETAIL: FIELD | POINTCUT | CONSTRUCTOR | METHOD |
java.lang.Object | +--junit.framework.Assert | +--junit.framework.TestCase | +--org.apache.cactus.AbstractTestCase | +--org.apache.cactus.ServletTestCase
Test classes that need access to valid Servlet implicit objects (such as the the HTTP request, the HTTP response, the servlet config, ...) must subclass this class.
Field Summary | |
ServletConfigWrapper |
config
Valid ServletConfig object that you can access from
the testXXX() , setUp and
tearDown() methods.
|
HttpServletRequestWrapper |
request
Valid HttpServletRequest object that you can access from
the testXXX() , setUp and
tearDown() methods.
|
HttpServletResponse |
response
Valid HttpServletResponse object that you can access from
the testXXX() , setUp and
tearDown() methods.
|
HttpSession |
session
Valid HttpSession object that you can access from
the testXXX() , setUp and
tearDown() methods.
|
Fields inherited from class org.apache.cactus.AbstractTestCase |
LOG_CLIENT_CONFIG |
Constructor Summary | |
ServletTestCase(String theName)
Constructs a JUnit test case with the given name. |
Methods inherited from class org.apache.cactus.AbstractTestCase |
runBare, runBareServerTest |
Methods inherited from class junit.framework.TestCase |
countTestCases, getName, run, run, setName, toString |
Methods inherited from class junit.framework.Assert |
assert, assert, 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 |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public ServletConfigWrapper config
ServletConfig
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 HttpServletRequestWrapper request
HttpServletRequest
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 HttpServletResponse response
HttpServletResponse
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 HttpSession session
HttpSession
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 ServletTestCase(String theName)
theName
- the name of the test case
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTRUCTOR | METHOD | DETAIL: FIELD | CONSTRUCTOR | METHOD |