A B C D E F G H I J L M O P R S T U W

A

AbstractHttpClient - class org.apache.cactus.client.AbstractHttpClient.
Abstract class for performing the steps necessary to run a test.
AbstractHttpClient() - Constructor for class org.apache.cactus.client.AbstractHttpClient
 
AbstractHttpServletRequestWrapper - class org.apache.cactus.server.AbstractHttpServletRequestWrapper.
Abstract wrapper around HttpServletRequest.
AbstractHttpServletRequestWrapper(HttpServletRequest, ServletURL) - Constructor for class org.apache.cactus.server.AbstractHttpServletRequestWrapper
Construct an HttpServletRequest instance that delegates it's method calls to the request object passed as parameter and that uses the URL passed as parameter to simulate a URL from which the request would come from.
AbstractPageContextWrapper - class org.apache.cactus.server.AbstractPageContextWrapper.
Abstract wrapper around PageContext.
AbstractPageContextWrapper(PageContext, ServletURL) - Constructor for class org.apache.cactus.server.AbstractPageContextWrapper
Construct an PageContext instance that delegates it's method calls to the page context object passed as parameter and that uses the URL passed as parameter to simulate a URL from which the request would come from.
AbstractServletContextWrapper - class org.apache.cactus.server.AbstractServletContextWrapper.
Abstract wrapper around ServletContext.
AbstractServletContextWrapper(ServletContext) - Constructor for class org.apache.cactus.server.AbstractServletContextWrapper
 
AbstractTestCaller - class org.apache.cactus.server.AbstractTestCaller.
Responsible for instanciating the TestCase class on the server side, set up the implicit objects and call the test method.
AbstractTestCaller(WebImplicitObjects) - Constructor for class org.apache.cactus.server.AbstractTestCaller
 
AbstractTestCase - class org.apache.cactus.AbstractTestCase.
Abstract class that specific test cases (ServletTestCase, FilterTestCase, ...) must extend.
AbstractTestCase(String) - Constructor for class org.apache.cactus.AbstractTestCase
Constructs a JUnit test case with the given name.
AbstractTestController - class org.apache.cactus.server.AbstractTestController.
Controller that extracts the requested service from the HTTP request and executes the request by calling a WebTestCaller.
AbstractTestController() - Constructor for class org.apache.cactus.server.AbstractTestController
 
addCookie(Cookie) - Method in class org.apache.cactus.WebRequest
Adds a cookie to the request.
addCookie(String, String) - Method in class org.apache.cactus.WebRequest
Adds a cookie to the request.
addCookie(String, String, String) - Method in class org.apache.cactus.WebRequest
Adds a cookie to the request.
addGetHeaderFieldValue(String) - Method in class org.apache.cactus.mock.MockHttpURLConnection
Add a new header field value to the vector of values that will be returned by getHeaderField().
addGetInputStream(InputStream) - Method in class org.apache.cactus.mock.MockHttpURLConnection
Add a new input stream to the vector of values that will be returned by getInputStream().
addHeader(String, String) - Method in class org.apache.cactus.WebRequest
Adds a header to the request.
addParameter(String, String) - Method in class org.apache.cactus.WebRequest
Adds a parameter to the request.
AssertionFailedErrorWrapper - error org.apache.cactus.client.AssertionFailedErrorWrapper.
Same as ServletExceptionWrapper except that this exception class extends JUnit AssertionFailedError so that JUnit will print a different message in it's runner console.
AssertionFailedErrorWrapper() - Constructor for class org.apache.cactus.client.AssertionFailedErrorWrapper
Standard throwable constructor.
AssertionFailedErrorWrapper(String) - Constructor for class org.apache.cactus.client.AssertionFailedErrorWrapper
Standard throwable constructor.
AssertionFailedErrorWrapper(String, String, String) - Constructor for class org.apache.cactus.client.AssertionFailedErrorWrapper
The constructor to use to simulate a real exception.
AssertUtils - class org.apache.cactus.util.AssertUtils.
Deprecated. As of Cactus 1.2, replaced by WebResponse
AssertUtils() - Constructor for class org.apache.cactus.util.AssertUtils
Deprecated.  
AUTOSESSION_NAME_PARAM - Static variable in class org.apache.cactus.ServiceDefinition
Name of the parameter in the HTTP request that specify if a session should be automatically created for the user or not.

B

BaseLog - class org.apache.cactus.util.log.BaseLog.
Wrapper around the Log4j Category class.
BaseLog(String) - Constructor for class org.apache.cactus.util.log.BaseLog
 
BaseLogDummy - class org.apache.cactus.util.log.BaseLogDummy.
Dummy class that logs nothing.
BaseLogDummy(String) - Constructor for class org.apache.cactus.util.log.BaseLogDummy
 
beginBeginMethodBadParamNumber(WebRequest, String) - Method in class org.apache.cactus.TestAbstractTestCase
Test that when a begin method for a given test has the wrong number of parameters, a AssertionFailedError exception is returned.
beginBeginMethodBadParamType(String) - Method in class org.apache.cactus.TestAbstractTestCase
Test that when a begin method for a given test has the wrong type of parameters, a AssertionFailedError exception is returned.
beginBeginMethodBadReturnType(WebRequest) - Method in class org.apache.cactus.TestAbstractTestCase
Test that when a begin method for a given test does not have the correct return type (i.e. void), a AssertionFailedError exception is returned.
beginBeginMethodOK1(ServletTestRequest) - Method in class org.apache.cactus.TestAbstractTestCase
Verify that the deprecated begin method with a ServletTestRequest parameter is still supported.
beginBeginMethodOK2(WebRequest) - Method in class org.apache.cactus.TestAbstractTestCase
Verify that the begin method with a WebRequest parameter is called correctly.

C

CALL_TEST_SERVICE - Static variable in class org.apache.cactus.ServiceEnumeration
Call test method Service.
ChainedRuntimeException - exception org.apache.cactus.util.ChainedRuntimeException.
Represent an exception that should stop the running test.
ChainedRuntimeException(String) - Constructor for class org.apache.cactus.util.ChainedRuntimeException
Create a TestException and set the exception error message.
ChainedRuntimeException(String, Throwable) - Constructor for class org.apache.cactus.util.ChainedRuntimeException
Create a ChainedRuntimeException, set the exception error message along with the exception object that caused this exception.
ChainedRuntimeException(Throwable) - Constructor for class org.apache.cactus.util.ChainedRuntimeException
Create a ChainedRuntimeException, and set exception object that caused this exception.
checkConfigProperties() - Static method in class org.apache.cactus.client.ClientConfigurationChecker
Checks if the cactus.properties file is in the CLASSPATH.
CLASS_NAME_PARAM - Static variable in class org.apache.cactus.ServiceDefinition
Name of the parameter in the HTTP request that represents the name of the Test class to call.
ClientConfigurationChecker - class org.apache.cactus.client.ClientConfigurationChecker.
Helper class that checks configuration parameters (for the client side) like if the CLASSPATH contains the jar for the Servlet API, if the cactus.properties file is in the CLASSPATH, ...
ClientConfigurationChecker() - Constructor for class org.apache.cactus.client.ClientConfigurationChecker
 
ClientCookie - class org.apache.cactus.util.ClientCookie.
Deprecated. As of Cactus 1.2, replaced by org.apache.cactus.Cookie
ClientCookie(String, String, String, String, long, String, boolean, float) - Constructor for class org.apache.cactus.util.ClientCookie
Deprecated. Construct a client cookie.
config - Variable in class org.apache.cactus.ServletTestCase
Valid ServletConfig object that you can access from the testXXX(), setUp and tearDown() methods.
CONFIG - Static variable in class org.apache.cactus.client.AbstractHttpClient
Properties file holding configuration data for Cactus.
CONFIG_NAME - Static variable in class org.apache.cactus.client.AbstractHttpClient
Name of the Cactus configuration file
connect() - Method in class org.apache.cactus.mock.MockHttpURLConnection
 
connect(WebRequest) - Method in class org.apache.cactus.client.HttpClientHelper
Calls the Servlet Redirector.
Cookie - class org.apache.cactus.Cookie.
Client cookie.
Cookie(String, String, String) - Constructor for class org.apache.cactus.Cookie
Create a cookie.
currentTestMethod - Variable in class org.apache.cactus.AbstractTestCase
The name of the current test method being executed.

D

debug(String) - Method in class org.apache.cactus.util.log.BaseLog
Log a DEBUG level message.
debug(String) - Method in class org.apache.cactus.util.log.BaseLogDummy
Log a DEBUG level message.
debug(String) - Method in interface org.apache.cactus.util.log.Log
Log a DEBUG level message.
debug(String, Throwable) - Method in class org.apache.cactus.util.log.BaseLog
Log a DEBUG level message along with an exception
debug(String, Throwable) - Method in class org.apache.cactus.util.log.BaseLogDummy
Log a DEBUG level message along with an exception
debug(String, Throwable) - Method in interface org.apache.cactus.util.log.Log
Log a DEBUG level message along with an exception
disconnect() - Method in class org.apache.cactus.mock.MockHttpURLConnection
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class org.apache.cactus.server.ServletTestRedirector
Handle GET requests.
doGet(JspImplicitObjects) - Method in class org.apache.cactus.server.JspTestRedirector
Handles requests from the jspRedirector.jsp JSP Redirector.
doGetResults() - Method in class org.apache.cactus.server.AbstractTestCaller
Return the last test results as a serialized object in the HTTP response.
doPost(HttpServletRequest, HttpServletResponse) - Method in class org.apache.cactus.server.ServletTestRedirector
Handle POST request.
doTest() - Method in class org.apache.cactus.server.AbstractTestCaller
Calls a test method.
doTest(ServletTestRequest) - Method in class org.apache.cactus.client.AbstractHttpClient
Calls the test method indirectly by calling the Redirector servlet and then open a second HTTP connection to retrieve the test results.

E

endEndMethodBadParamNumber(WebResponse, String) - Method in class org.apache.cactus.TestAbstractTestCase
Test that when an end method for a given test has the wrong number of parameters, a AssertionFailedError exception is returned.
endEndMethodBadParamType(String) - Method in class org.apache.cactus.TestAbstractTestCase
Test that when an end method for a given test has the wrong type of parameters, a AssertionFailedError exception is returned.
endEndMethodBadReturnType(WebResponse) - Method in class org.apache.cactus.TestAbstractTestCase
Test that when an end method for a given test does not have the correct return type (i.e. void), a AssertionFailedError exception is returned.
endEndMethodOK1(WebResponse) - Method in class org.apache.cactus.TestAbstractTestCase
Test that the end method is called correctly when it's signature contains a org.apache.cactus.WebResponse parameter.
endEndMethodOK2(WebResponse) - Method in class org.apache.cactus.TestAbstractTestCase
Test that the end method is called correctly when it's signature contains a com.meterware.httpunit.WebResponse parameter.
endEndMethodOK3(HttpURLConnection) - Method in class org.apache.cactus.TestAbstractTestCase
Test that the deprecated end method with the HttpURLConnection parameter can still be called correctly.
entry(String) - Method in class org.apache.cactus.util.log.BaseLog
Used to log a message when entering a method.
entry(String) - Method in class org.apache.cactus.util.log.BaseLogDummy
Used to log a message when entering a method.
entry(String) - Method in interface org.apache.cactus.util.log.Log
Used to log a message when entering a method.
equals(Object) - Method in class org.apache.cactus.Cookie
Two cookies match if the name, path and domain match.
equals(String) - Method in class org.apache.cactus.ServiceEnumeration
Compares a string representing the name of the service with the Service enumerated type.
error(String) - Method in class org.apache.cactus.util.log.BaseLog
Log an ERROR level message.
error(String) - Method in class org.apache.cactus.util.log.BaseLogDummy
Log an ERROR level message.
error(String) - Method in interface org.apache.cactus.util.log.Log
Log an ERROR level message.
error(String, Throwable) - Method in class org.apache.cactus.util.log.BaseLog
Log an ERROR level message along with an exception
error(String, Throwable) - Method in class org.apache.cactus.util.log.BaseLogDummy
Log an ERROR level message along with an exception
error(String, Throwable) - Method in interface org.apache.cactus.util.log.Log
Log an ERROR level message along with an exception
error(Throwable) - Method in class org.apache.cactus.util.log.BaseLog
Log an ERROR level exception only
error(Throwable) - Method in class org.apache.cactus.util.log.BaseLogDummy
Log an ERROR level exception only
error(Throwable) - Method in interface org.apache.cactus.util.log.Log
Log an ERROR level exception only
exit(String) - Method in class org.apache.cactus.util.log.BaseLog
Used to log a message when exiting a method.
exit(String) - Method in class org.apache.cactus.util.log.BaseLogDummy
Used to log a message when exiting a method.
exit(String) - Method in interface org.apache.cactus.util.log.Log
Used to log a message when exiting a method.

F

findAttribute(String) - Method in class org.apache.cactus.server.AbstractPageContextWrapper
 
forward(ServletRequest, ServletResponse) - Method in class org.apache.cactus.server.RequestDispatcherWrapper
Call the original RequestDispatcher forward() method but with the original HTTP request (not the simulation one which would make the servlet engine choke !).
forward(String) - Method in class org.apache.cactus.server.AbstractPageContextWrapper
 

G

GET_METHOD - Static variable in class org.apache.cactus.WebRequest
GET Method identifier.
GET_RESULTS_SERVICE - Static variable in class org.apache.cactus.ServiceEnumeration
Get the previous test results Service.
getAttribute(String) - Method in class org.apache.cactus.server.AbstractServletContextWrapper
 
getAttribute(String) - Method in class org.apache.cactus.server.AbstractPageContextWrapper
 
getAttribute(String) - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getAttribute(String, int) - Method in class org.apache.cactus.server.AbstractPageContextWrapper
 
getAttributeNames() - Method in class org.apache.cactus.server.AbstractServletContextWrapper
 
getAttributeNames() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getAttributeNamesInScope(int) - Method in class org.apache.cactus.server.AbstractPageContextWrapper
 
getAttributesScope(String) - Method in class org.apache.cactus.server.AbstractPageContextWrapper
 
getAuthType() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getAutomaticSession() - Method in class org.apache.cactus.WebRequest
 
getCharacterEncoding() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getComment() - Method in class org.apache.cactus.Cookie
Returns the comment describing the purpose of this cookie, or null if no such comment has been defined.
getComment() - Method in class org.apache.cactus.util.ClientCookie
Deprecated.  
getConnection() - Method in class org.apache.cactus.WebResponse
 
getContentLength() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getContentType() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getContext(String) - Method in class org.apache.cactus.server.AbstractServletContextWrapper
 
getContextPath() - Method in class org.apache.cactus.ServletURL
 
getContextPath() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getCookie(String) - Method in class org.apache.cactus.WebResponse
Return the first cookie found that has the specified name or null if not found.
getCookies() - Method in class org.apache.cactus.WebResponse
 
getCookies() - Method in class org.apache.cactus.WebRequest
 
getCookies() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getCookies(HttpURLConnection) - Static method in class org.apache.cactus.util.AssertUtils
Deprecated. Extract the cookies from a HTTP connection.
getDateHeader(String) - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getDomain() - Method in class org.apache.cactus.Cookie
Returns the domain of this cookie.
getDomain() - Method in class org.apache.cactus.util.ClientCookie
Deprecated.  
getDomain(WebRequest, URLConnection) - Static method in class org.apache.cactus.client.HttpClientHelper
Returns the domain that will be used to send the cookies.
getException() - Method in class org.apache.cactus.server.AbstractPageContextWrapper
 
getExceptionClassName() - Method in class org.apache.cactus.WebTestResult
 
getExceptionMessage() - Method in class org.apache.cactus.WebTestResult
 
getExceptionStackTrace() - Method in class org.apache.cactus.WebTestResult
 
getExpiryDate() - Method in class org.apache.cactus.Cookie
Return the expiry date.
getHeader(String) - Method in class org.apache.cactus.WebRequest
Returns the first value corresponding to this header's name.
getHeader(String) - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getHeaderField(int) - Method in class org.apache.cactus.mock.MockHttpURLConnection
See java.net.URLConnection.getHeaderField.
getHeaderNames() - Method in class org.apache.cactus.WebRequest
 
getHeaderNames() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getHeaders(String) - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getHeaderValues(String) - Method in class org.apache.cactus.WebRequest
Returns all the values associated with this header's name.
getHost() - Method in class org.apache.cactus.ServletURL
 
getHttpServletRequest() - Method in class org.apache.cactus.server.WebImplicitObjects
 
getHttpServletResponse() - Method in class org.apache.cactus.server.WebImplicitObjects
 
getInitParameter(String) - Method in class org.apache.cactus.server.AbstractServletContextWrapper
 
getInitParameter(String) - Method in class org.apache.cactus.server.ServletConfigWrapper
 
getInitParameterNames() - Method in class org.apache.cactus.server.AbstractServletContextWrapper
 
getInitParameterNames() - Method in class org.apache.cactus.server.ServletConfigWrapper
 
getInputStream() - Method in class org.apache.cactus.WebResponse
 
getInputStream() - Method in class org.apache.cactus.mock.MockHttpURLConnection
See java.net.URLConnection.getInputStream.
getInputStream() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getInstance() - Static method in class org.apache.cactus.util.log.LogService
 
getIntHeader(String) - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getJspWriter() - Method in class org.apache.cactus.server.JspImplicitObjects
 
getLocale() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getLocales() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getLog(String) - Method in class org.apache.cactus.util.log.LogService
 
getLogs() - Method in class org.apache.cactus.server.AbstractServletContextWrapper
Returns all the text logs that have been generated using the log() methods so that it is possible to easily assert the content of the logs.
getMajorVersion() - Method in class org.apache.cactus.server.AbstractServletContextWrapper
 
getMaxAge() - Method in class org.apache.cactus.util.ClientCookie
Deprecated.  
getMethod() - Method in class org.apache.cactus.WebRequest
 
getMethod() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getMimeType(String) - Method in class org.apache.cactus.server.AbstractServletContextWrapper
 
getMinorVersion() - Method in class org.apache.cactus.server.AbstractServletContextWrapper
 
getName() - Method in class org.apache.cactus.Cookie
 
getName() - Method in class org.apache.cactus.util.ClientCookie
Deprecated.  
getNamedDispatcher(String) - Method in class org.apache.cactus.server.AbstractServletContextWrapper
 
getOriginalRequest() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getOut() - Method in class org.apache.cactus.server.AbstractPageContextWrapper
 
getPage() - Method in class org.apache.cactus.server.AbstractPageContextWrapper
 
getPageContext() - Method in class org.apache.cactus.server.JspImplicitObjects
 
getParameter(String) - Method in class org.apache.cactus.WebRequest
Returns the first value corresponding to this parameter's name.
getParameter(String) - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getParameterNames() - Method in class org.apache.cactus.WebRequest
 
getParameterNames() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getParameterValues(String) - Method in class org.apache.cactus.WebRequest
Returns all the values associated with this parameter's name.
getParameterValues(String) - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getPath() - Method in class org.apache.cactus.ServletURL
 
getPath() - Method in class org.apache.cactus.Cookie
Return the path this cookie is associated with.
getPath() - Method in class org.apache.cactus.util.ClientCookie
Deprecated.  
getPathInfo() - Method in class org.apache.cactus.ServletURL
 
getPathInfo() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getPathTranslated() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getPort() - Method in class org.apache.cactus.ServletURL
 
getProtocol() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getQueryString() - Method in class org.apache.cactus.ServletURL
 
getQueryString() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getReader() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getRealPath(String) - Method in class org.apache.cactus.server.AbstractServletContextWrapper
 
getRealPath(String) - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getRemoteAddr() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getRemoteHost() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getRemoteUser() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getRequest() - Method in class org.apache.cactus.server.AbstractPageContextWrapper
 
getRequestDispatcher(String) - Method in class org.apache.cactus.server.AbstractServletContextWrapper
 
getRequestDispatcher(String) - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getRequestedSessionId() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getRequestURI() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getResource(String) - Method in class org.apache.cactus.server.AbstractServletContextWrapper
 
getResourceAsStream(String) - Method in class org.apache.cactus.server.AbstractServletContextWrapper
 
getResponse() - Method in class org.apache.cactus.server.AbstractPageContextWrapper
 
getResponseAsString(HttpURLConnection) - Static method in class org.apache.cactus.util.AssertUtils
Deprecated.  
getResponseAsStringArray(HttpURLConnection) - Static method in class org.apache.cactus.util.AssertUtils
Deprecated.  
getScheme() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getServerInfo() - Method in class org.apache.cactus.server.AbstractServletContextWrapper
 
getServerName() - Method in class org.apache.cactus.ServletURL
 
getServerName() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getServerPort() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getServlet(String) - Method in class org.apache.cactus.server.AbstractServletContextWrapper
 
getServletConfig() - Method in class org.apache.cactus.server.ServletImplicitObjects
 
getServletConfig() - Method in class org.apache.cactus.server.AbstractPageContextWrapper
 
getServletContext() - Method in class org.apache.cactus.server.WebImplicitObjects
 
getServletContext() - Method in class org.apache.cactus.server.AbstractPageContextWrapper
 
getServletContext() - Method in class org.apache.cactus.server.ServletConfigWrapper
 
getServletName() - Method in class org.apache.cactus.server.ServletConfigWrapper
 
getServletNames() - Method in class org.apache.cactus.server.AbstractServletContextWrapper
 
getServletPath() - Method in class org.apache.cactus.ServletURL
 
getServletPath() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getServlets() - Method in class org.apache.cactus.server.AbstractServletContextWrapper
 
getSession() - Method in class org.apache.cactus.server.AbstractPageContextWrapper
 
getSession() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getSession(boolean) - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getText() - Method in class org.apache.cactus.WebResponse
 
getTextAsArray() - Method in class org.apache.cactus.WebResponse
 
getURL() - Method in class org.apache.cactus.WebRequest
 
getUserPrincipal() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getValue() - Method in class org.apache.cactus.Cookie
 
getValue() - Method in class org.apache.cactus.util.ClientCookie
Deprecated.  
getVersion() - Method in class org.apache.cactus.util.ClientCookie
Deprecated.  
getWebRequest() - Method in class org.apache.cactus.WebResponse
 

H

handlePageException(Exception) - Method in class org.apache.cactus.server.AbstractPageContextWrapper
 
handleRequest(WebImplicitObjects) - Method in class org.apache.cactus.server.AbstractTestController
Handles the incoming request by extracting the requested service and calling the correct method on a WebTestCaller.
hasException() - Method in class org.apache.cactus.WebTestResult
 
hashCode() - Method in class org.apache.cactus.Cookie
Hash up name, value and domain into new hash.
HttpClientHelper - class org.apache.cactus.client.HttpClientHelper.
Helper class to open an HTTP connection to the server redirector and pass to it HTTP parameters, Cookies and HTTP headers.
HttpClientHelper(String) - Constructor for class org.apache.cactus.client.HttpClientHelper
 
HttpServletRequestWrapper - class org.apache.cactus.server.HttpServletRequestWrapper.
Encapsulation class for the Servlet 2.2 API HttpServletRequest.
HttpServletRequestWrapper(HttpServletRequest, ServletURL) - Constructor for class org.apache.cactus.server.HttpServletRequestWrapper
Construct an HttpServletRequest instance that delegates it's method calls to the request object passed as parameter and that uses the URL passed as parameter to simulate a URL from which the request would come from.

I

include(ServletRequest, ServletResponse) - Method in class org.apache.cactus.server.RequestDispatcherWrapper
Call the original RequestDispatcher include() method but with the original HTTP request (not the simulation one which would make the servlet engine choke !).
include(String) - Method in class org.apache.cactus.server.AbstractPageContextWrapper
 
info(String) - Method in class org.apache.cactus.util.log.BaseLog
Log an INFO level message.
info(String) - Method in class org.apache.cactus.util.log.BaseLogDummy
Log an INFO level message.
info(String) - Method in interface org.apache.cactus.util.log.Log
Log an INFO level message.
info(String, Throwable) - Method in class org.apache.cactus.util.log.BaseLog
Log an INFO level message along with an exception
info(String, Throwable) - Method in class org.apache.cactus.util.log.BaseLogDummy
Log an INFO level message along with an exception
info(String, Throwable) - Method in interface org.apache.cactus.util.log.Log
Log an INFO level message along with an exception
init(String) - Method in class org.apache.cactus.util.log.LogService
Initialize the logging system.
initialize(Servlet, ServletRequest, ServletResponse, String, boolean, int, boolean) - Method in class org.apache.cactus.server.AbstractPageContextWrapper
 
instanceOf(Class) - Method in class org.apache.cactus.client.ServletExceptionWrapper
As all the server exceptions are wrapped into this ServletExceptionWrapper class, we need to be able to know the original server exception class.
instanceOf(Class) - Method in class org.apache.cactus.client.AssertionFailedErrorWrapper
As all the server exceptions are wrapped into this ServletExceptionWrapper class, we need to be able to know the original server exception class.
isDebugEnabled() - Method in class org.apache.cactus.util.log.BaseLog
 
isDebugEnabled() - Method in class org.apache.cactus.util.log.BaseLogDummy
 
isDebugEnabled() - Method in interface org.apache.cactus.util.log.Log
 
isExpired() - Method in class org.apache.cactus.Cookie
 
isInitialized() - Method in class org.apache.cactus.util.log.LogService
 
isRequestedSessionIdFromCookie() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
isRequestedSessionIdFromUrl() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
isRequestedSessionIdFromURL() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
isRequestedSessionIdValid() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
isSecure() - Method in class org.apache.cactus.Cookie
 
isSecure() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
isSecure() - Method in class org.apache.cactus.util.ClientCookie
Deprecated.  
isToBeDiscarded() - Method in class org.apache.cactus.Cookie
 
isUserInRole(String) - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 

J

JspHttpClient - class org.apache.cactus.client.JspHttpClient.
Manage the logic for calling the JSP redirector for executing a test on the server side.
JspHttpClient() - Constructor for class org.apache.cactus.client.JspHttpClient
 
JspImplicitObjects - class org.apache.cactus.server.JspImplicitObjects.
Holder class that contains the instances of the implicit objects that will be accessible in the test classes (i.e. subclasses of JspTestCase).
JspImplicitObjects() - Constructor for class org.apache.cactus.server.JspImplicitObjects
 
JspTestCaller - class org.apache.cactus.server.JspTestCaller.
Call the test method on the server side after assigning the JSP implicit objects using reflection.
JspTestCaller(JspImplicitObjects) - Constructor for class org.apache.cactus.server.JspTestCaller
 
JspTestCase - class 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.
JspTestCase(String) - Constructor for class org.apache.cactus.JspTestCase
Constructs a JUnit test case with the given name.
JspTestController - class org.apache.cactus.server.JspTestController.
JSP Controller that extracts the requested service from the HTTP request and executes the request by calling a JspTestCaller.
JspTestController() - Constructor for class org.apache.cactus.server.JspTestController
 
JspTestRedirector - class org.apache.cactus.server.JspTestRedirector.
Extension of the jspRedirector.jsp JSP Redirector in the java realmn in order to provide a symmetry with the ServletRedirector and minimize the amount of java code in jspRedirector.jsp.
JspTestRedirector() - Constructor for class org.apache.cactus.server.JspTestRedirector
 

L

loadFromRequest(HttpServletRequest) - Static method in class org.apache.cactus.ServletURL
Creates a ServletURL object by loading it's values from the HTTP request.
Log - interface org.apache.cactus.util.log.Log.
Interface for logging implementation classes
log(Exception, String) - Method in class org.apache.cactus.server.AbstractServletContextWrapper
Intercept the log call and add the message to an internal vector of log messages that can then later be retrieved and asserted by the test case writer.
log(String) - Method in class org.apache.cactus.server.AbstractServletContextWrapper
Intercept the log call and add the message to an internal vector of log messages that can then later be retrieved and asserted by the test case writer.
log(String, Throwable) - Method in class org.apache.cactus.server.AbstractServletContextWrapper
Intercept the log call and add the message to an internal vector of log messages that can then later be retrieved and asserted by the test case writer.
LogService - class org.apache.cactus.util.log.LogService.
Logging service acting as a wrapper around the Jakarta Log4j logging framework.

M

main(String[]) - Static method in class org.apache.cactus.TestAbstractTestCase
Start the tests.
main(String[]) - Static method in class org.apache.cactus.TestAll
Start the tests.
METHOD_NAME_PARAM - Static variable in class org.apache.cactus.ServiceDefinition
Name of the parameter in the HTTP request that represents the name of the Test method to call.
MockHttpURLConnection - class org.apache.cactus.mock.MockHttpURLConnection.
Mock implementation of HttpURLConnection.
MockHttpURLConnection(URL) - Constructor for class org.apache.cactus.mock.MockHttpURLConnection
 

O

org.apache.cactus - package org.apache.cactus
Contains all classes needed for Writing Cactus test classes.
org.apache.cactus.client - package org.apache.cactus.client
 
org.apache.cactus.mock - package org.apache.cactus.mock
 
org.apache.cactus.server - package org.apache.cactus.server
 
org.apache.cactus.util - package org.apache.cactus.util
 
org.apache.cactus.util.log - package org.apache.cactus.util.log
 
out - Variable in class org.apache.cactus.JspTestCase
Valid JspWriter object that you can access from the testXXX(), setUp and tearDown() methods.

P

pageContext - Variable in class org.apache.cactus.JspTestCase
Valid PageContext object that you can access from the testXXX(), setUp and tearDown() methods.
PageContextWrapper - class org.apache.cactus.server.PageContextWrapper.
Wrapper around PageContext so that get methods that would normally return implicit objects will now return Cactus wrapper of implicit objects instead.
PageContextWrapper(PageContext, ServletURL) - Constructor for class org.apache.cactus.server.PageContextWrapper
Construct an PageContext instance that delegates it's method calls to the page context object passed as parameter and that uses the URL passed as parameter to simulate a URL from which the request would come from.
popBody() - Method in class org.apache.cactus.server.AbstractPageContextWrapper
 
POST_METHOD - Static variable in class org.apache.cactus.WebRequest
POST Method identifier.
printStackTrace() - Method in class org.apache.cactus.util.ChainedRuntimeException
Print the full stack trace, including the original exception.
printStackTrace(PrintStream) - Method in class org.apache.cactus.client.ServletExceptionWrapper
Simulates a printing of a stack trace by printing the string stack trace
printStackTrace(PrintStream) - Method in class org.apache.cactus.client.AssertionFailedErrorWrapper
Simulates a printing of a stack trace by printing the string stack trace
printStackTrace(PrintStream) - Method in class org.apache.cactus.util.ChainedRuntimeException
Print the full stack trace, including the original exception.
printStackTrace(PrintWriter) - Method in class org.apache.cactus.client.ServletExceptionWrapper
Simulates a printing of a stack trace by printing the string stack trace
printStackTrace(PrintWriter) - Method in class org.apache.cactus.client.AssertionFailedErrorWrapper
Simulates a printing of a stack trace by printing the string stack trace
printStackTrace(PrintWriter) - Method in class org.apache.cactus.util.ChainedRuntimeException
Print the full stack trace, including the original exception.
pushBody() - Method in class org.apache.cactus.server.AbstractPageContextWrapper
 

R

release() - Method in class org.apache.cactus.server.AbstractPageContextWrapper
 
removeAttribute(String) - Method in class org.apache.cactus.server.AbstractServletContextWrapper
 
removeAttribute(String) - Method in class org.apache.cactus.server.AbstractPageContextWrapper
 
removeAttribute(String) - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
removeAttribute(String, int) - Method in class org.apache.cactus.server.AbstractPageContextWrapper
 
request - Variable in class org.apache.cactus.ServletTestCase
Valid HttpServletRequest object that you can access from the testXXX(), setUp and tearDown() methods.
RequestDispatcherWrapper - class org.apache.cactus.server.RequestDispatcherWrapper.
Wrapper around RequestDispatcher which overrides the forward() and include methods to use the original HTTP request object instead of the simulated one used by Cactus.
RequestDispatcherWrapper(RequestDispatcher) - Constructor for class org.apache.cactus.server.RequestDispatcherWrapper
 
response - Variable in class org.apache.cactus.ServletTestCase
Valid HttpServletResponse object that you can access from the testXXX(), setUp and tearDown() methods.
runBare() - Method in class org.apache.cactus.AbstractTestCase
Runs the bare test sequence.
runBareServerTest() - Method in class org.apache.cactus.AbstractTestCase
Run the test that was specified in the constructor on the server side, calling setUp() and tearDown().

S

saveToRequest(WebRequest) - Method in class org.apache.cactus.ServletURL
Saves the current URL to a WebRequest object.
SERVICE_NAME_PARAM - Static variable in class org.apache.cactus.ServiceDefinition
Name of the parameter in the HTTP request that specify the service asked to the Redirector Servlet.
ServiceDefinition - class org.apache.cactus.ServiceDefinition.
Constants that define HTTP parameters required for defining a service that is performed by the ServletTestRedirector servlet.
ServiceDefinition() - Constructor for class org.apache.cactus.ServiceDefinition
 
ServiceEnumeration - class org.apache.cactus.ServiceEnumeration.
List of valid services that the ServletTestRedirector can perform.
ServiceEnumeration(String) - Constructor for class org.apache.cactus.ServiceEnumeration
 
ServletConfigWrapper - class org.apache.cactus.server.ServletConfigWrapper.
Wrapper around ServletConfig which overrides the getServletContext() method to return our own wrapper around ServletContext.
ServletConfigWrapper(ServletConfig) - Constructor for class org.apache.cactus.server.ServletConfigWrapper
 
ServletContextWrapper - class org.apache.cactus.server.ServletContextWrapper.
Wrapper around Servlet 2.2 ServletContext.
ServletContextWrapper(ServletContext) - Constructor for class org.apache.cactus.server.ServletContextWrapper
 
ServletExceptionWrapper - class org.apache.cactus.client.ServletExceptionWrapper.
Wrapper around a Throwable object.
ServletExceptionWrapper() - Constructor for class org.apache.cactus.client.ServletExceptionWrapper
Standard throwable constructor.
ServletExceptionWrapper(String) - Constructor for class org.apache.cactus.client.ServletExceptionWrapper
Standard throwable constructor.
ServletExceptionWrapper(String, String, String) - Constructor for class org.apache.cactus.client.ServletExceptionWrapper
The constructor to use to simulate a real exception.
ServletHttpClient - class org.apache.cactus.client.ServletHttpClient.
Manage the logic for calling the Servlet redirector for executing a test on the server side.
ServletHttpClient() - Constructor for class org.apache.cactus.client.ServletHttpClient
 
ServletImplicitObjects - class org.apache.cactus.server.ServletImplicitObjects.
Holder class that contains the instances of the implicit objects that will be accessible in the test classes (i.e. subclasses of ServletTestCase).
ServletImplicitObjects() - Constructor for class org.apache.cactus.server.ServletImplicitObjects
 
ServletTestCaller - class org.apache.cactus.server.ServletTestCaller.
Responsible for instanciating the TestCase class on the server side, set up the implicit objects and call the test method.
ServletTestCaller(ServletImplicitObjects) - Constructor for class org.apache.cactus.server.ServletTestCaller
 
ServletTestCase - class 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.
ServletTestCase(String) - Constructor for class org.apache.cactus.ServletTestCase
Constructs a JUnit test case with the given name.
ServletTestController - class org.apache.cactus.server.ServletTestController.
Servlet Controller that extracts the requested service from the HTTP request and executes the request by calling a ServletTestCaller.
ServletTestController() - Constructor for class org.apache.cactus.server.ServletTestController
 
ServletTestRedirector - class org.apache.cactus.server.ServletTestRedirector.
Generic Servlet redirector that calls a test method on the server side.
ServletTestRedirector() - Constructor for class org.apache.cactus.server.ServletTestRedirector
 
ServletTestRequest - class org.apache.cactus.ServletTestRequest.
Deprecated. As of Cactus 1.2, replaced by WebRequest
ServletTestRequest() - Constructor for class org.apache.cactus.ServletTestRequest
Deprecated.  
ServletURL - class org.apache.cactus.ServletURL.
Simulate an HTTP URL by breaking it into its different parts :
URL = "http://" + serverName (including port) + requestURI ?
ServletURL(String, String, String, String, String) - Constructor for class org.apache.cactus.ServletURL
Creates the URL to simulate.
session - Variable in class org.apache.cactus.ServletTestCase
Valid HttpSession object that you can access from the testXXX(), setUp and tearDown() methods.
setAttribute(String, Object) - Method in class org.apache.cactus.server.AbstractServletContextWrapper
 
setAttribute(String, Object) - Method in class org.apache.cactus.server.AbstractPageContextWrapper
 
setAttribute(String, Object) - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
setAttribute(String, Object, int) - Method in class org.apache.cactus.server.AbstractPageContextWrapper
 
setAutomaticSession(boolean) - Method in class org.apache.cactus.WebRequest
 
setComment(String) - Method in class org.apache.cactus.Cookie
If a user agent (web browser) presents this cookie to a user, the cookie's purpose will be described using this comment.
setDomain(String) - Method in class org.apache.cactus.Cookie
Sets the cookie domain.
setExpiryDate(Date) - Method in class org.apache.cactus.Cookie
Set the cookie expires date.
setHttpServletRequest(HttpServletRequest) - Method in class org.apache.cactus.server.WebImplicitObjects
 
setHttpServletResponse(HttpServletResponse) - Method in class org.apache.cactus.server.WebImplicitObjects
 
setInitParameter(String, String) - Method in class org.apache.cactus.server.ServletConfigWrapper
Sets a parameter as if it were set in the web.xml file.
setJspWriter(JspWriter) - Method in class org.apache.cactus.server.JspImplicitObjects
 
setMethod(String) - Method in class org.apache.cactus.WebRequest
 
setName(String) - Method in class org.apache.cactus.Cookie
Sets the cookie name
setPageContext(PageContext) - Method in class org.apache.cactus.server.JspImplicitObjects
 
setPath(String) - Method in class org.apache.cactus.Cookie
Sets the cookie path.
setSecure(boolean) - Method in class org.apache.cactus.Cookie
Indicates to the user agent that the cookie should only be sent using a secure protocol (https).
setServletConfig(ServletConfig) - Method in class org.apache.cactus.server.ServletImplicitObjects
 
setServletContext(ServletContext) - Method in class org.apache.cactus.server.WebImplicitObjects
 
setServletName(String) - Method in class org.apache.cactus.server.ServletConfigWrapper
Sets the servlet name.
setURL(String, String, String, String, String) - Method in class org.apache.cactus.WebRequest
Sets the simulated URL.
setValue(String) - Method in class org.apache.cactus.Cookie
Sets the cookie value
suite() - Static method in class org.apache.cactus.TestAbstractTestCase
 
suite() - Static method in class org.apache.cactus.TestAll
 

T

TestAbstractTestCase - class org.apache.cactus.TestAbstractTestCase.
Unit tests of the AbstractTestCase class.
TestAbstractTestCase_InterceptorTestCase - class org.apache.cactus.TestAbstractTestCase_InterceptorTestCase.
Test TestCase class that intercepts all exceptions (and assert them) coming from test case classes that inherits from it.
TestAbstractTestCase_InterceptorTestCase(String) - Constructor for class org.apache.cactus.TestAbstractTestCase_InterceptorTestCase
Constructs a test case with the given name.
TestAbstractTestCase(String) - Constructor for class org.apache.cactus.TestAbstractTestCase
Defines the testcase name for JUnit.
TestAll - class org.apache.cactus.TestAll.
Run all the unit tests of Cactus that do not need a servlet environment to run.
TestAll(String) - Constructor for class org.apache.cactus.TestAll
Defines the testcase name for JUnit.
testBeginMethodBadParamNumber() - Method in class org.apache.cactus.TestAbstractTestCase
Test that when a begin method for a given test has the wrong number of parameters, a AssertionFailedError exception is returned.
testBeginMethodBadParamType() - Method in class org.apache.cactus.TestAbstractTestCase
Test that when a begin method for a given test has the wrong type of parameters, a AssertionFailedError exception is returned.
testBeginMethodBadReturnType() - Method in class org.apache.cactus.TestAbstractTestCase
Test that when a begin method for a given test does not have the correct return type (i.e. void), a AssertionFailedError exception is returned.
testBeginMethodNotPublic() - Method in class org.apache.cactus.TestAbstractTestCase
Test that when a begin method for a given test is not declared public a AssertionFailedError exception is returned.
testBeginMethodOK1() - Method in class org.apache.cactus.TestAbstractTestCase
Verify that the deprecated begin method with a ServletTestRequest parameter is still supported.
testBeginMethodOK2() - Method in class org.apache.cactus.TestAbstractTestCase
Verify that the begin method with a WebRequest parameter is called correctly.
testEndMethodBadParamNumber() - Method in class org.apache.cactus.TestAbstractTestCase
Test that when an end method for a given test has the wrong number of parameters, a AssertionFailedError exception is returned.
testEndMethodBadParamType() - Method in class org.apache.cactus.TestAbstractTestCase
Test that when an end method for a given test has the wrong type of parameters, a AssertionFailedError exception is returned.
testEndMethodBadReturnType() - Method in class org.apache.cactus.TestAbstractTestCase
Test that when an end method for a given test does not have the correct return type (i.e. void), a AssertionFailedError exception is returned.
testEndMethodNotPublic() - Method in class org.apache.cactus.TestAbstractTestCase
Test that when an end method for a given test is not declared public a AssertionFailedError exception is returned.
testEndMethodOK1() - Method in class org.apache.cactus.TestAbstractTestCase
Test that the end method is called correctly when it's signature contains a org.apache.cactus.WebResponse parameter.
testEndMethodOK2() - Method in class org.apache.cactus.TestAbstractTestCase
Test that the end method is called correctly when it's signature contains a com.meterware.httpunit.WebResponse parameter.
testEndMethodOK3() - Method in class org.apache.cactus.TestAbstractTestCase
Test that the deprecated end method with the HttpURLConnection parameter can still be called correctly.
toString() - Method in class org.apache.cactus.ServiceEnumeration
 
toString() - Method in class org.apache.cactus.ServletURL
 
toString() - Method in class org.apache.cactus.WebRequest
 
toString() - Method in class org.apache.cactus.WebTestResult
Gives a string representation of the test result
toString() - Method in class org.apache.cactus.Cookie
 

U

URL_CONTEXT_PATH_PARAM - Static variable in class org.apache.cactus.ServletURL
Name of the parameter in the HTTP request that represents the context path in the URL to simulate.
URL_PATH_INFO_PARAM - Static variable in class org.apache.cactus.ServletURL
Name of the parameter in the HTTP request that represents the Path Info in the URL to simulate.
URL_QUERY_STRING_PARAM - Static variable in class org.apache.cactus.ServletURL
Name of the parameter in the HTTP request that represents the Query String in the URL to simulate.
URL_SERVER_NAME_PARAM - Static variable in class org.apache.cactus.ServletURL
Name of the parameter in the HTTP request that represents the Server name in the URL to simulate.
URL_SERVLET_PATH_PARAM - Static variable in class org.apache.cactus.ServletURL
Name of the parameter in the HTTP request that represents the Servlet Path in the URL to simulate.
usingProxy() - Method in class org.apache.cactus.mock.MockHttpURLConnection
 

W

warn(String) - Method in class org.apache.cactus.util.log.BaseLog
Log a WARNING level message.
warn(String) - Method in class org.apache.cactus.util.log.BaseLogDummy
Log a WARNING level message.
warn(String) - Method in interface org.apache.cactus.util.log.Log
Log a WARNING level message.
warn(String, Throwable) - Method in class org.apache.cactus.util.log.BaseLog
Log a WARNING level message along with an exception
warn(String, Throwable) - Method in class org.apache.cactus.util.log.BaseLogDummy
Log a WARNING level message along with an exception
warn(String, Throwable) - Method in interface org.apache.cactus.util.log.Log
Log a WARNING level message along with an exception
WebImplicitObjects - class org.apache.cactus.server.WebImplicitObjects.
Holder class that contains the instances of the implicit objects that exist for all web requests.
WebImplicitObjects() - Constructor for class org.apache.cactus.server.WebImplicitObjects
 
WebRequest - class org.apache.cactus.WebRequest.
Contains all HTTP request data for a test case.
WebRequest() - Constructor for class org.apache.cactus.WebRequest
 
WebResponse - class org.apache.cactus.WebResponse.
Default web response implementation that provides a minimal API for asserting returned output stream from the server side.
WebResponse(WebRequest, HttpURLConnection) - Constructor for class org.apache.cactus.WebResponse
 
WebTestResult - class org.apache.cactus.WebTestResult.
Represent the result of the execution of the Test class by the server redirector.If any exception was raised during the test, it is saved by this class.
WebTestResult() - Constructor for class org.apache.cactus.WebTestResult
Constructor to call when the test was ok and no error was raised.
WebTestResult(Throwable) - Constructor for class org.apache.cactus.WebTestResult
Constructor to call when an exception was raised during the test.

A B C D E F G H I J L M O P R S T U W

Copyright © 2000-2001 Apache Software Foundation. All Rights Reserved.