public class ServletTestCase extends AbstractCactusTestCase implements CactusTestCase
Modifier and Type | Field and Description |
---|---|
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. |
javax.servlet.http.HttpServletResponse |
response
Valid
HttpServletResponse object that you can access from
the testXXX() , setUp and
tearDown() methods. |
javax.servlet.http.HttpSession |
session
Valid
HttpSession object that you can access from
the testXXX() , setUp and
tearDown() methods. |
Constructor and Description |
---|
ServletTestCase() |
ServletTestCase(java.lang.String theName) |
ServletTestCase(java.lang.String theName,
junit.framework.Test theTest) |
Modifier and Type | Method and Description |
---|---|
protected ProtocolHandler |
createProtocolHandler()
Create a protocol handler instance that will be used to connect to the
server side.
|
runBare, runBareServer
countTestCases, createResult, getName, run, run, runTest, setName, setUp, tearDown, toString
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
runBareServer
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 javax.servlet.http.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 javax.servlet.http.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.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 ServletTestCase()
public ServletTestCase(java.lang.String theName)
public ServletTestCase(java.lang.String theName, junit.framework.Test theTest)
protected ProtocolHandler createProtocolHandler()
AbstractCactusTestCase
createProtocolHandler
in class AbstractCactusTestCase
AbstractCactusTestCase.createProtocolHandler()
Copyright © 2000-2004 Apache Software Foundation. All Rights Reserved.