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

A

ATTR_ERRORS - Static variable in interface org.apache.cactus.server.runner.XMLConstants
Errors attribute for testsuite elements
ATTR_FAILURES - Static variable in interface org.apache.cactus.server.runner.XMLConstants
Failures attribute for testsuite elements
ATTR_MESSAGE - Static variable in interface org.apache.cactus.server.runner.XMLConstants
Message attribute for failure elements (message of the exception)
ATTR_NAME - Static variable in interface org.apache.cactus.server.runner.XMLConstants
Name attribute for property, testcase and testsuite elements
ATTR_TESTS - Static variable in interface org.apache.cactus.server.runner.XMLConstants
Tests attribute for testsuite elements (number of tests executed)
ATTR_TIME - Static variable in interface org.apache.cactus.server.runner.XMLConstants
Time attribute for testcase and testsuite elements
ATTR_TYPE - Static variable in interface org.apache.cactus.server.runner.XMLConstants
Type attribute for failure and error elements
AUTOSESSION_NAME_PARAM - Static variable in interface org.apache.cactus.HttpServiceDefinition
Name of the parameter in the HTTP request that specify if a session should be automatically created for the user or not.
AbstractAuthentication - class org.apache.cactus.client.authentication.AbstractAuthentication.
This class was designed with the simple assumption that ALL authentication implementations will have a String Name and a String Password.
AbstractAuthentication(String, String) - Constructor for class org.apache.cactus.client.authentication.AbstractAuthentication
 
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.
AbstractServletConfigWrapper - class org.apache.cactus.server.AbstractServletConfigWrapper.
Abstract wrapper around ServletConfig which overrides the getServletContext() method to return our own wrapper around ServletContext.
AbstractServletConfigWrapper(ServletConfig) - Constructor for class org.apache.cactus.server.AbstractServletConfigWrapper
 
AbstractServletContextWrapper - class org.apache.cactus.server.AbstractServletContextWrapper.
Abstract wrapper around ServletContext.
AbstractServletContextWrapper(ServletContext) - Constructor for class org.apache.cactus.server.AbstractServletContextWrapper
 
AbstractTestSuite - class org.apache.cactus.AbstractTestSuite.
Test Suite that wraps all the tests of the suite in Cactus Test Case objects so that pure JUnit tests can be run on the server side.
AbstractTestSuite() - Constructor for class org.apache.cactus.AbstractTestSuite
 
AbstractTestSuite(Class) - Constructor for class org.apache.cactus.AbstractTestSuite
 
AbstractTestSuite(String) - Constructor for class org.apache.cactus.AbstractTestSuite
 
AbstractWebConfiguration - class org.apache.cactus.configuration.AbstractWebConfiguration.
Common implementation for all WebConfiguration implementations.
AbstractWebConfiguration() - Constructor for class org.apache.cactus.configuration.AbstractWebConfiguration
 
AbstractWebImplicitObjects - class org.apache.cactus.server.AbstractWebImplicitObjects.
Holder class that contains the instances of the implicit objects that exist for all web requests.
AbstractWebImplicitObjects() - Constructor for class org.apache.cactus.server.AbstractWebImplicitObjects
 
AbstractWebTestCaller - class org.apache.cactus.server.AbstractWebTestCaller.
Responsible for instanciating the TestCase class on the server side, set up the implicit objects and call the test method.
AbstractWebTestCaller(WebImplicitObjects) - Constructor for class org.apache.cactus.server.AbstractWebTestCaller
 
AbstractWebTestController - class org.apache.cactus.server.AbstractWebTestController.
Controller that extracts the requested service from the HTTP request and executes the request.
AbstractWebTestController() - Constructor for class org.apache.cactus.server.AbstractWebTestController
 
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(String) - Constructor for class org.apache.cactus.client.AssertionFailedErrorWrapper
Standard throwable constructor.
AssertionFailedErrorWrapper() - 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.
Authentication - interface org.apache.cactus.client.authentication.Authentication.
Interface for different authentication modules.
addCookie(String, String) - Method in class org.apache.cactus.BaseWebRequest
Adds a cookie to the request.
addCookie(String, String, String) - Method in class org.apache.cactus.BaseWebRequest
Adds a cookie to the request.
addCookie(Cookie) - Method in class org.apache.cactus.BaseWebRequest
Adds a cookie to the request.
addError(Test, Throwable) - Method in class org.apache.cactus.server.runner.WebappTestRunner
 
addError(Test, Throwable) - Method in class org.apache.cactus.server.runner.XMLFormatter
Event called by the base test runner when the test fails with an error.
addFailure(Test, AssertionFailedError) - Method in class org.apache.cactus.server.runner.WebappTestRunner
 
addFailure(Test, AssertionFailedError) - Method in class org.apache.cactus.server.runner.XMLFormatter
Event called by the base test runner when the test fails with a failure.
addHeader(String, String) - Method in class org.apache.cactus.BaseWebRequest
Adds a header to the request.
addHttpGetParameters(WebRequest, URL) - Static method in class org.apache.cactus.client.connector.http.HttpUtil
Add HTTP GET parameters to the URL passed as parameter.
addParameter(String, String, String) - Method in class org.apache.cactus.BaseWebRequest
Adds a parameter to the request.
addParameter(String, String) - Method in class org.apache.cactus.BaseWebRequest
Adds a parameter to the request.
addTest(Test) - Method in class org.apache.cactus.AbstractTestSuite
 
addTestSuite(Class) - Method in class org.apache.cactus.AbstractTestSuite
 
authenticate(WebRequest, Configuration) - Method in class org.apache.cactus.client.authentication.FormAuthentication
Authenticate the principal by calling the security URL.

B

BEGIN_METHOD_PREFIX - Static variable in class org.apache.cactus.internal.client.ClientTestCaseDelegate
The prefix of a begin test method.
BaseConfiguration - class org.apache.cactus.configuration.BaseConfiguration.
Provides access to the Cactus configuration parameters that are independent of any redirector.
BaseConfiguration() - Constructor for class org.apache.cactus.configuration.BaseConfiguration
Initialize all Cactus configuration properties.
BaseWebRequest - class org.apache.cactus.BaseWebRequest.
Contains all HTTP request data for a test case but independently of the fact that there is or there is not a Cactus redirector.
BaseWebRequest() - Constructor for class org.apache.cactus.BaseWebRequest
Default constructor that requires that BaseWebRequest.setConfiguration(Configuration) be called before the methods requiring a configuration object.
BaseWebRequest(Configuration) - Constructor for class org.apache.cactus.BaseWebRequest
 
BasicAuthentication - class org.apache.cactus.client.authentication.BasicAuthentication.
Basic Authentication support.
BasicAuthentication(String, String) - Constructor for class org.apache.cactus.client.authentication.BasicAuthentication
 

C

CACTUS_CONTEXT_URL_PROPERTY - Static variable in class org.apache.cactus.configuration.BaseConfiguration
Name of Cactus property that specify the URL up to the webapp context.
CACTUS_JSP_REDIRECTOR_NAME_PROPERTY - Static variable in class org.apache.cactus.configuration.JspConfiguration
Name of the cactus property that specifies the name of the JSP redirector.
CACTUS_SERVLET_REDIRECTOR_NAME_PROPERTY - Static variable in class org.apache.cactus.configuration.ServletConfiguration
Name of the cactus property that specifies the name of the Servlet redirector.
CALL_TEST_SERVICE - Static variable in class org.apache.cactus.ServiceEnumeration
Call test method Service.
CLASS_NAME_PARAM - Static variable in interface org.apache.cactus.HttpServiceDefinition
Name of the parameter in the HTTP request that represents the name of the Test class to call.
CLIENT_GLOBAL_BEGIN_METHOD - Static variable in class org.apache.cactus.internal.client.ClientTestCaseDelegate
The name of the method that is called before each test on the client side (if it exists).
CLIENT_GLOBAL_END_METHOD - Static variable in class org.apache.cactus.internal.client.ClientTestCaseDelegate
The name of the method that is called after each test on the client side (if it exists).
COMMAND_PREFIX - Static variable in interface org.apache.cactus.HttpServiceDefinition
Prefix indicating that a String is an official Cactus command.
CREATE_SESSION_SERVICE - Static variable in class org.apache.cactus.ServiceEnumeration
Service used to create an HTTP session so that it is returned in a cookie.
ChainedException - exception org.apache.cactus.util.ChainedException.
A checked chained exception.
ChainedException(String) - Constructor for class org.apache.cactus.util.ChainedException
Create a ChainedException and set the exception error message.
ChainedException(String, Throwable) - Constructor for class org.apache.cactus.util.ChainedException
Create a ChainedException, set the exception error message along with the exception object that caused this exception.
ChainedException(Throwable) - Constructor for class org.apache.cactus.util.ChainedException
Create a ChaineException, and set exception object that caused this exception.
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 ChainedRuntimeException 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.
ClassLoaderUtils - class org.apache.cactus.util.ClassLoaderUtils.
Utiliy methods related to class loading in a webapp environment.
ClassLoaderUtils() - Constructor for class org.apache.cactus.util.ClassLoaderUtils
 
ClientException - exception org.apache.cactus.client.ClientException.
A Cactus client side exception.
ClientException(String) - Constructor for class org.apache.cactus.client.ClientException
 
ClientException(String, Throwable) - Constructor for class org.apache.cactus.client.ClientException
 
ClientException(Throwable) - Constructor for class org.apache.cactus.client.ClientException
 
ClientTestCaseDelegate - class org.apache.cactus.internal.client.ClientTestCaseDelegate.
Delegate class that provides useful methods for the Cactus XXXTestCase classes.
ClientTestCaseDelegate(Test, Test, Configuration) - Constructor for class org.apache.cactus.internal.client.ClientTestCaseDelegate
 
Configuration - interface org.apache.cactus.configuration.Configuration.
Contains all configuration information for the Cactus framework.
ConnectionHelper - interface org.apache.cactus.client.connector.http.ConnectionHelper.
Helper class to open an HTTP connection to the server redirector and pass to it HTTP parameters, Cookies and HTTP headers.
ConnectionHelperFactory - class org.apache.cactus.client.connector.http.ConnectionHelperFactory.
Factory that returns the ConnectionHelper specified in Cactus configuration or the default one if none has been specified.
ConnectionHelperFactory() - Constructor for class org.apache.cactus.client.connector.http.ConnectionHelperFactory
 
Cookie - class org.apache.cactus.Cookie.
Client cookie.
Cookie(String, String, String) - Constructor for class org.apache.cactus.Cookie
Create a cookie.
CookieUtil - class org.apache.cactus.util.CookieUtil.
Utility methods to manipulate cookies and transform Cactus cookie objects to HttpClient cookie objects.
CookieUtil() - Constructor for class org.apache.cactus.util.CookieUtil
 
callBeginMethod(Request) - Method in class org.apache.cactus.internal.client.ClientTestCaseDelegate
Call the test case begin method.
callClientGlobalBegin(Request) - Method in class org.apache.cactus.internal.client.ClientTestCaseDelegate
Call the global begin method.
callClientGlobalEnd(WebRequest, HttpURLConnection, Object) - Method in class org.apache.cactus.internal.client.WebClientTestCaseDelegate
Call the client tear down up method if it exists.
callEndMethod(WebRequest, HttpURLConnection) - Method in class org.apache.cactus.internal.client.WebClientTestCaseDelegate
Call the test case end method
config - Variable in class org.apache.cactus.ServletTestCase
Valid ServletConfig object that you can access from the testXXX(), setUp and tearDown() methods.
config - Variable in class org.apache.cactus.server.ServletImplicitObjects
The Servlet configuration object.
configuration - Variable in class org.apache.cactus.client.connector.http.DefaultHttpClient
Cactus configuration.
configure(WebRequest, Configuration) - Method in interface org.apache.cactus.client.authentication.Authentication
Modifies the request so that it will carry authentication information.
configure(WebRequest, Configuration) - Method in class org.apache.cactus.client.authentication.BasicAuthentication
 
configure(WebRequest, Configuration) - Method in class org.apache.cactus.client.authentication.FormAuthentication
 
connect(WebRequest, Configuration) - Method in interface org.apache.cactus.client.connector.http.ConnectionHelper
Connects to the Cactus Redirector using HTTP.
connect(WebRequest, Configuration) - Method in class org.apache.cactus.client.connector.http.HttpClientConnectionHelper
 
connect(WebRequest, Configuration) - Method in class org.apache.cactus.client.connector.http.JdkConnectionHelper
 
connect() - Method in class org.apache.cactus.util.HttpURLConnection
Deprecated.  
context - Variable in class org.apache.cactus.server.AbstractWebImplicitObjects
The Context object.
countTestCases() - Method in class org.apache.cactus.AbstractTestSuite
 
createCactusTestCase(String, Test) - Method in class org.apache.cactus.AbstractTestSuite
 
createCactusTestCase(String, Test) - Method in class org.apache.cactus.ServletTestSuite
 
createCookieHeader(String, String, Cookie[]) - Static method in class org.apache.cactus.util.CookieUtil
Create a HttpClient Header for cookies that matches the domain and path.
createHttpClientCookie(WebRequest, URL, Cookie) - Static method in class org.apache.cactus.util.CookieUtil
Create a Commons-HttpClient cookie from a Cactus cookie, with information from the web request and the URL.
createHttpClientCookies(WebRequest, URL) - Static method in class org.apache.cactus.util.CookieUtil
Transforms an array of Cactus cookies into an array of Commons-HttpClient cookies, using information from the request and URL.
createHttpState(WebRequest, URL) - Static method in class org.apache.cactus.util.CookieUtil
Create an HttpClient HttpState object containing all cookies stored in the passed WebRequest object.
createTestSuite(Class) - Method in class org.apache.cactus.AbstractTestSuite
 
createTestSuite(Class) - Method in class org.apache.cactus.ServletTestSuite
 

D

DEFAULT_CACTUS_CONNECTION_HELPER_CLASSNAME - Static variable in class org.apache.cactus.configuration.BaseConfiguration
Default ConnectionHelper to use.
DEFAULT_STACK_FILTER_PATTERNS - Static variable in class org.apache.cactus.server.runner.XMLFormatter
Default stack filter patterns.
DefaultHttpClient - class org.apache.cactus.client.connector.http.DefaultHttpClient.
Performs the steps necessary to run a test.
DefaultHttpClient(WebConfiguration) - Constructor for class org.apache.cactus.client.connector.http.DefaultHttpClient
Initialize the Http client.
disconnect() - Method in class org.apache.cactus.util.HttpURLConnection
Deprecated.  
doCreateSession() - Method in class org.apache.cactus.server.AbstractWebTestCaller
Create an HTTP Session and returns the response that contains the HTTP session as a cookie (unless URL rewriting is used in which case the jsesssionid cookie is not returned).
doGet(JspImplicitObjects) - Method in class org.apache.cactus.server.JspTestRedirector
Handles requests from the jspRedirector.jsp JSP Redirector.
doGet(HttpServletRequest, HttpServletResponse) - Method in class org.apache.cactus.server.ServletTestRedirector
Handle GET requests.
doGet(HttpServletRequest, HttpServletResponse) - Method in class org.apache.cactus.server.runner.ServletTestRunner
Starts the test suite passed as a HTTP parameter
doGetResults() - Method in class org.apache.cactus.server.AbstractWebTestCaller
Return the last test results in the HTTP response.
doGetVersion() - Method in class org.apache.cactus.server.AbstractWebTestCaller
Return the cactus version.
doPost(HttpServletRequest, HttpServletResponse) - Method in class org.apache.cactus.server.ServletTestRedirector
Handle POST request.
doRunTest() - Method in class org.apache.cactus.server.AbstractWebTestCaller
Run the connection test between client and server.
doTest(WebRequest) - Method in class org.apache.cactus.client.connector.http.DefaultHttpClient
Calls the test method indirectly by calling the Redirector servlet and then open a second HTTP connection to retrieve the test results.
doTest() - Method in class org.apache.cactus.server.AbstractWebTestCaller
Calls a test method.

E

END_METHOD_PREFIX - Static variable in class org.apache.cactus.internal.client.ClientTestCaseDelegate
The prefix of an end test method.
ERROR - Static variable in interface org.apache.cactus.server.runner.XMLConstants
The error element (for a test case)
endTest(Test) - Method in class org.apache.cactus.server.runner.WebappTestRunner
 
endTest(Test) - Method in class org.apache.cactus.server.runner.XMLFormatter
Event called by the base test runner when the test ends.
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
Deprecated. Use ServiceEnumeration.valueOf(java.lang.String) and identity comparison instead of this method
equals(Object) - Method in class org.apache.cactus.ServiceEnumeration
Always compares object identity.
exceptionClassname - Variable in class org.apache.cactus.client.WebTestResultParser
Parsed exception class name
exceptionMessage - Variable in class org.apache.cactus.client.WebTestResultParser
Parsed exception message
exceptionStacktrace - Variable in class org.apache.cactus.client.WebTestResultParser
Parsed exception stack trace
exceptionToString(Throwable) - Static method in class org.apache.cactus.util.StringUtil
Returns the stack trace of an exception as String.
exceptionToString(Throwable, String[]) - Static method in class org.apache.cactus.util.StringUtil
Returns the stack trace of an exception as String, optionally filtering out line from the stack trac

F

FAILURE - Static variable in interface org.apache.cactus.server.runner.XMLConstants
The failure element (for a test case)
FormAuthentication - class org.apache.cactus.client.authentication.FormAuthentication.
Form-based authentication implementation.
FormAuthentication(String, String) - Constructor for class org.apache.cactus.client.authentication.FormAuthentication
 
findAttribute(String) - Method in class org.apache.cactus.server.AbstractPageContextWrapper
 
forward(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 !).

G

GET_METHOD - Static variable in class org.apache.cactus.BaseWebRequest
GET Method identifier.
GET_RESULTS_SERVICE - Static variable in class org.apache.cactus.ServiceEnumeration
Get the previous test results Service.
GET_VERSION_SERVICE - Static variable in class org.apache.cactus.ServiceEnumeration
Service that returns a cactus version identifier.
generate(TestCase) - Static method in class org.apache.cactus.util.UniqueGenerator
Generates a unique identifier for a Cactus test.
generate(TestCase, long) - Static method in class org.apache.cactus.util.UniqueGenerator
Generates a unique identifier for a Cactus test.
getAllowUserInteraction() - Method in class org.apache.cactus.util.HttpURLConnection
Deprecated.  
getAttribute(String) - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getAttribute(String) - Method in class org.apache.cactus.server.AbstractPageContextWrapper
 
getAttribute(String, int) - Method in class org.apache.cactus.server.AbstractPageContextWrapper
 
getAttribute(String) - Method in class org.apache.cactus.server.AbstractServletContextWrapper
 
getAttributeNames() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getAttributeNames() - Method in class org.apache.cactus.server.AbstractServletContextWrapper
 
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
 
getAuthentication() - Method in class org.apache.cactus.BaseWebRequest
 
getAutomaticSession() - Method in class org.apache.cactus.WebRequest
 
getBeginMethodName() - Method in class org.apache.cactus.internal.client.ClientTestCaseDelegate
 
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.
getConfiguration() - Method in class org.apache.cactus.BaseWebRequest
 
getConfiguration() - Method in class org.apache.cactus.internal.client.ClientTestCaseDelegate
 
getConnection() - Method in class org.apache.cactus.WebResponse
 
getConnectionHelper(String, Configuration) - Static method in class org.apache.cactus.client.connector.http.ConnectionHelperFactory
 
getConnectionHelper() - Method in class org.apache.cactus.configuration.BaseConfiguration
 
getConnectionHelper() - Method in interface org.apache.cactus.configuration.Configuration
 
getContent() - Method in class org.apache.cactus.util.HttpURLConnection
Deprecated.  
getContent(Class[]) - Method in class org.apache.cactus.util.HttpURLConnection
Deprecated.  
getContentLength() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getContentType() - Method in class org.apache.cactus.BaseWebRequest
 
getContentType() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getContentType() - Method in class org.apache.cactus.server.runner.XMLTransformer
Returns the content type that will be produced by the XSLT stylesheet after transformation.
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
 
getContextURL() - Method in class org.apache.cactus.configuration.BaseConfiguration
 
getContextURL() - Method in interface org.apache.cactus.configuration.Configuration
 
getCookie(String) - Method in class org.apache.cactus.WebResponse
Return the first cookie found that has the specified name or null if not found.
getCookieDomain(WebRequest, String) - Static method in class org.apache.cactus.Cookie
Deprecated. use CookieUtil.getCookieDomain(WebRequest, String)
getCookieDomain(WebRequest, String) - Static method in class org.apache.cactus.util.CookieUtil
Returns the domain that will be used to send the cookies.
getCookieIgnoreCase(String) - Method in class org.apache.cactus.WebResponse
Return the first cookie found that has the specified name or null if not found.
getCookiePath(WebRequest, String) - Static method in class org.apache.cactus.Cookie
Deprecated. use CookieUtil.getCookiePath(WebRequest, String)
getCookiePath(WebRequest, String) - Static method in class org.apache.cactus.util.CookieUtil
Returns the path that will be used to validate if a cookie will be sent or not.
getCookiePort(WebRequest, int) - Static method in class org.apache.cactus.Cookie
Deprecated. use CookieUtil.getCookiePort(WebRequest, int)
getCookiePort(WebRequest, int) - Static method in class org.apache.cactus.util.CookieUtil
Returns the port that will be used to send the cookies.
getCookieString(WebRequest, URL) - Static method in class org.apache.cactus.util.CookieUtil
 
getCookies() - Method in class org.apache.cactus.BaseWebRequest
 
getCookies() - Method in class org.apache.cactus.WebResponse
 
getCookies() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getCurrentTestMethod() - Method in class org.apache.cactus.internal.client.ClientTestCaseDelegate
Deprecated. Use ClientTestCaseDelegate.getCurrentTestName() instead
getCurrentTestName() - Method in class org.apache.cactus.internal.client.ClientTestCaseDelegate
 
getDateHeader(String) - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getDefaultRedirectorName() - Method in class org.apache.cactus.configuration.JspConfiguration
 
getDefaultRedirectorName() - Method in class org.apache.cactus.configuration.ServletConfiguration
 
getDefaultRedirectorName() - Method in interface org.apache.cactus.configuration.WebConfiguration
 
getDefaultRedirectorURL() - Method in class org.apache.cactus.configuration.AbstractWebConfiguration
 
getDefaultRedirectorURL() - Method in interface org.apache.cactus.configuration.WebConfiguration
 
getDefaultUseCaches() - Method in class org.apache.cactus.util.HttpURLConnection
Deprecated.  
getDelegatedTest() - Method in class org.apache.cactus.internal.client.ClientTestCaseDelegate
 
getDelegatedTest() - Method in class org.apache.cactus.internal.server.ServerTestCaseDelegate
 
getDoInput() - Method in class org.apache.cactus.util.HttpURLConnection
Deprecated.  
getDoOutput() - Method in class org.apache.cactus.util.HttpURLConnection
Deprecated.  
getDomain() - Method in class org.apache.cactus.Cookie
Returns the domain of this cookie.
getEndMethodName() - Method in class org.apache.cactus.internal.client.ClientTestCaseDelegate
 
getErrorMessage() - Method in class org.apache.cactus.server.runner.WebappTestRunner
 
getErrorStream() - Method in class org.apache.cactus.util.HttpURLConnection
Deprecated.  
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.BaseWebRequest
Returns the first value corresponding to this header's name.
getHeader(String) - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getHeaderField(String) - Method in class org.apache.cactus.util.HttpURLConnection
Deprecated.  
getHeaderField(int) - Method in class org.apache.cactus.util.HttpURLConnection
Deprecated.  
getHeaderFieldKey(int) - Method in class org.apache.cactus.util.HttpURLConnection
Deprecated.  
getHeaderNames() - Method in class org.apache.cactus.BaseWebRequest
 
getHeaderNames() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getHeaderValues(String) - Method in class org.apache.cactus.BaseWebRequest
Returns all the values associated with this header's name.
getHeaders(String) - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getHost() - Method in class org.apache.cactus.ServletURL
Returns the host name.
getHttpServletRequest() - Method in class org.apache.cactus.server.AbstractWebImplicitObjects
 
getHttpServletRequest() - Method in interface org.apache.cactus.server.WebImplicitObjects
 
getHttpServletResponse() - Method in class org.apache.cactus.server.AbstractWebImplicitObjects
 
getHttpServletResponse() - Method in interface org.apache.cactus.server.WebImplicitObjects
 
getIfModifiedSince() - Method in class org.apache.cactus.util.HttpURLConnection
Deprecated.  
getInitParameter(String) - Method in class org.apache.cactus.server.AbstractServletConfigWrapper
 
getInitParameter(String) - Method in class org.apache.cactus.server.AbstractServletContextWrapper
 
getInitParameterNames() - Method in class org.apache.cactus.server.AbstractServletConfigWrapper
 
getInitParameterNames() - Method in class org.apache.cactus.server.AbstractServletContextWrapper
 
getInitializer() - Method in class org.apache.cactus.configuration.BaseConfiguration
 
getInitializer() - Method in interface org.apache.cactus.configuration.Configuration
 
getInputStream() - Method in class org.apache.cactus.WebResponse
 
getInputStream() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getInputStream() - Method in class org.apache.cactus.util.HttpURLConnection
Deprecated.  
getInstanceFollowRedirects() - Method in class org.apache.cactus.util.HttpURLConnection
Deprecated.  
getIntHeader(String) - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getJspWriter() - Method in class org.apache.cactus.server.JspImplicitObjects
 
getLoader() - Method in class org.apache.cactus.server.runner.WebappTestRunner
Overridden from BaseTestRunner in order to use either the context class loader or the webapp one.
getLocale() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getLocales() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getLogger() - Method in class org.apache.cactus.internal.client.ClientTestCaseDelegate
 
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
 
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.AbstractTestSuite
 
getName() - Method in class org.apache.cactus.Cookie
 
getName() - Method in class org.apache.cactus.client.authentication.AbstractAuthentication
 
getNamedDispatcher(String) - Method in class org.apache.cactus.server.AbstractServletContextWrapper
 
getOriginalConfig() - Method in class org.apache.cactus.server.AbstractServletConfigWrapper
 
getOriginalRequest() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getOut() - Method in class org.apache.cactus.server.AbstractPageContextWrapper
 
getOutputStream() - Method in class org.apache.cactus.util.HttpURLConnection
Deprecated.  
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.server.AbstractHttpServletRequestWrapper
 
getParameterGet(String) - Method in class org.apache.cactus.BaseWebRequest
Returns the first value corresponding to this parameter's name (provided this parameter is passed in the URL).
getParameterNames() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getParameterNamesGet() - Method in class org.apache.cactus.BaseWebRequest
 
getParameterNamesPost() - Method in class org.apache.cactus.BaseWebRequest
 
getParameterPost(String) - Method in class org.apache.cactus.BaseWebRequest
Returns the first value corresponding to this parameter's name (provided this parameter is passed in the request body - POST).
getParameterValues(String) - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getParameterValuesGet(String) - Method in class org.apache.cactus.BaseWebRequest
Returns all the values corresponding to this parameter's name (provided this parameter is passed in the URL).
getParameterValuesPost(String) - Method in class org.apache.cactus.BaseWebRequest
Returns all the values corresponding to this parameter's name (provided this parameter is passed in the request body - POST).
getPassword() - Method in class org.apache.cactus.client.authentication.AbstractAuthentication
 
getPath() - Method in class org.apache.cactus.Cookie
Return the path this cookie is associated with.
getPath() - Method in class org.apache.cactus.ServletURL
 
getPath(URL) - Static method in class org.apache.cactus.util.UrlUtil
Returns the path part of the URL.
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
 
getPermission() - Method in class org.apache.cactus.util.HttpURLConnection
Deprecated.  
getPort() - Method in class org.apache.cactus.ServletURL
Returns the port.
getProtocol() - Method in class org.apache.cactus.ServletURL
 
getProtocol() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getQuery(URL) - Static method in class org.apache.cactus.util.UrlUtil
Returns the query string of the URL.
getQueryString() - Method in class org.apache.cactus.ServletURL
 
getQueryString() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getQueryStringParameter(String, String) - Static method in class org.apache.cactus.server.ServletUtil
A substitute method for HttpServletRequest.getParameter().
getReader() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getRealPath(String) - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getRealPath(String) - Method in class org.apache.cactus.server.AbstractServletContextWrapper
 
getRedirectorName() - Method in class org.apache.cactus.WebRequest
 
getRedirectorName(WebRequest) - Method in class org.apache.cactus.configuration.AbstractWebConfiguration
 
getRedirectorName(WebRequest) - Method in interface org.apache.cactus.configuration.WebConfiguration
 
getRedirectorURL(WebRequest) - Method in class org.apache.cactus.configuration.AbstractWebConfiguration
 
getRedirectorURL(WebRequest) - Method in interface org.apache.cactus.configuration.WebConfiguration
 
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.AbstractHttpServletRequestWrapper
 
getRequestDispatcher(String) - Method in class org.apache.cactus.server.AbstractServletContextWrapper
 
getRequestMethod() - Method in class org.apache.cactus.util.HttpURLConnection
Deprecated.  
getRequestProperty(String) - Method in class org.apache.cactus.util.HttpURLConnection
Deprecated.  
getRequestURI() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getRequestedSessionId() - 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
 
getResponseCode() - Method in class org.apache.cactus.util.HttpURLConnection
Deprecated.  
getResponseMessage() - Method in class org.apache.cactus.util.HttpURLConnection
Deprecated.  
getResponseObject(String, Request, HttpURLConnection) - Method in interface org.apache.cactus.client.ResponseObjectFactory
Constructs response object that are passed as parameter to endXXX() and global end methods.
getResponseObject(String, Request, HttpURLConnection) - Method in class org.apache.cactus.client.WebResponseObjectFactory
 
getResponseWriter() - Method in class org.apache.cactus.server.AbstractWebTestCaller
 
getResponseWriter() - Method in class org.apache.cactus.server.JspTestCaller
 
getResponseWriter() - Method in class org.apache.cactus.server.ServletTestCaller
 
getScheme() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getSecurityCheckURL(Configuration) - Method in class org.apache.cactus.client.authentication.FormAuthentication
This returns the URL to use when attempting to log in.
getSecurityRequest() - Method in class org.apache.cactus.client.authentication.FormAuthentication
 
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.AbstractPageContextWrapper
 
getServletConfig() - Method in class org.apache.cactus.server.ServletImplicitObjects
 
getServletContext() - Method in class org.apache.cactus.server.AbstractPageContextWrapper
 
getServletContext() - Method in class org.apache.cactus.server.AbstractServletConfigWrapper
 
getServletContext() - Method in class org.apache.cactus.server.AbstractWebImplicitObjects
 
getServletContext() - Method in interface org.apache.cactus.server.WebImplicitObjects
 
getServletName() - Method in class org.apache.cactus.server.AbstractServletConfigWrapper
 
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.AbstractHttpServletRequestWrapper
 
getSession(boolean) - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getSession() - Method in class org.apache.cactus.server.AbstractPageContextWrapper
 
getSessionCookie() - Method in class org.apache.cactus.WebRequest
Gets an HTTP session id by calling the server side and retrieving the jsessionid cookie in the HTTP response.
getStatusCode() - Method in class org.apache.cactus.WebResponse
Returns the status code returned by the server.
getSuiteClassName() - Method in class org.apache.cactus.server.runner.XMLFormatter
 
getTestCaller(WebImplicitObjects) - Method in class org.apache.cactus.server.AbstractWebTestController
 
getTestCaller(WebImplicitObjects) - Method in class org.apache.cactus.server.JspTestController
 
getTestCaller(WebImplicitObjects) - Method in class org.apache.cactus.server.ServletTestController
 
getTestCaseName(Test) - Static method in class org.apache.cactus.util.JUnitVersionHelper
JUnit 3.7 introduces TestCase.getName() and subsequent versions of JUnit remove the old name() method.
getTestClassClass(String) - Method in class org.apache.cactus.server.AbstractWebTestCaller
 
getTestClassInstance(String, String, String) - Method in class org.apache.cactus.server.AbstractWebTestCaller
 
getTestClassName() - Method in class org.apache.cactus.server.AbstractWebTestCaller
 
getTestConstructor(Class) - Static method in class org.apache.cactus.AbstractTestSuite
Gets a constructor which takes a single String as its argument or a no arg constructor.
getTestMethodName() - Method in class org.apache.cactus.server.AbstractWebTestCaller
 
getText() - Method in class org.apache.cactus.WebResponse
 
getText(InputStream) - Static method in class org.apache.cactus.util.IoUtil
 
getText(InputStream, String) - Static method in class org.apache.cactus.util.IoUtil
Read all data in an Input stream and return them as a String object.
getTextAsArray() - Method in class org.apache.cactus.WebResponse
 
getTotalDurationAsString() - Method in class org.apache.cactus.server.runner.XMLFormatter
 
getURL() - Method in class org.apache.cactus.WebRequest
 
getURL() - Method in class org.apache.cactus.util.HttpURLConnection
Deprecated.  
getUseCaches() - Method in class org.apache.cactus.util.HttpURLConnection
Deprecated.  
getUserData() - Method in class org.apache.cactus.BaseWebRequest
 
getUserPrincipal() - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
getValue() - Method in class org.apache.cactus.Cookie
 
getWebRequest() - Method in class org.apache.cactus.WebResponse
 
getWrappedTest() - Method in class org.apache.cactus.internal.client.ClientTestCaseDelegate
 
getWrappedTest() - Method in class org.apache.cactus.internal.server.ServerTestCaseDelegate
 
getWrappedTestClassName() - Method in class org.apache.cactus.server.AbstractWebTestCaller
 
getWrappedTestName() - Method in class org.apache.cactus.internal.client.ClientTestCaseDelegate
 

H

HttpClientConnectionHelper - class org.apache.cactus.client.connector.http.HttpClientConnectionHelper.
Implementation of ConnectionHelper using Jakarta Commons HttpClient.
HttpClientConnectionHelper(String) - Constructor for class org.apache.cactus.client.connector.http.HttpClientConnectionHelper
 
HttpServiceDefinition - interface org.apache.cactus.HttpServiceDefinition.
Constants that define HTTP parameters required for defining a service that is performed by the ServletTestRedirector servlet.
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.
HttpSessionCookie - class org.apache.cactus.HttpSessionCookie.
Cookie containing an HTTP Session id.
HttpSessionCookie(String, String, String) - Constructor for class org.apache.cactus.HttpSessionCookie
 
HttpURLConnection - class org.apache.cactus.util.HttpURLConnection.
Deprecated. This class has been donated to the Jakarta Commons-HttpClient project, and is now maintained there as org.apache.commons.httpclient.util.HttpURLConnection.
HttpURLConnection(HttpMethod, URL) - Constructor for class org.apache.cactus.util.HttpURLConnection
Deprecated. Creates an HttpURLConnection from a HttpMethod.
HttpURLConnection(URL) - Constructor for class org.apache.cactus.util.HttpURLConnection
Deprecated.  
HttpUtil - class org.apache.cactus.client.connector.http.HttpUtil.
Utility methods to manipulate HTTP requests.
HttpUtil() - Constructor for class org.apache.cactus.client.connector.http.HttpUtil
 
handlePageException(Exception) - Method in class org.apache.cactus.server.AbstractPageContextWrapper
 
handleRequest(ImplicitObjects) - Method in class org.apache.cactus.server.AbstractWebTestController
Handles the incoming request by extracting the requested service and calling the correct method on a WebTestCaller.
handleRequest(ImplicitObjects) - Method in interface org.apache.cactus.server.TestController
Handles the incoming request by extracting the requested service and calling the correct test method.
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.
hashCode() - Method in class org.apache.cactus.ServiceEnumeration
Delegates to the java.lang.Object implementation.

I

ImplicitObjects - interface org.apache.cactus.server.ImplicitObjects.
Tagging interface for implicit objects.
IoUtil - class org.apache.cactus.util.IoUtil.
Various utility methods for manipulating IO streams.
IoUtil() - Constructor for class org.apache.cactus.util.IoUtil
 
include(String) - Method in class org.apache.cactus.server.AbstractPageContextWrapper
 
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 !).
init() - Method in class org.apache.cactus.server.runner.ServletTestRunner
Called by the container when the servlet is initialized.
initParameters - Variable in class org.apache.cactus.server.AbstractServletConfigWrapper
List of parameters set using the setInitParameter() method.
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.AssertionFailedErrorWrapper
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.ServletExceptionWrapper
As all the server exceptions are wrapped into this ServletExceptionWrapper class, we need to be able to know the original server exception class.
isAutoSession() - Method in class org.apache.cactus.server.AbstractWebTestCaller
 
isExpired() - Method in class org.apache.cactus.Cookie
 
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
 
isToBeDiscarded() - Method in class org.apache.cactus.Cookie
 
isUserInRole(String) - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
isWrappingATest() - Method in class org.apache.cactus.internal.client.ClientTestCaseDelegate
 

J

JUnitVersionHelper - class org.apache.cactus.util.JUnitVersionHelper.
Work around for some changes to the public JUnit API between different JUnit releases.
JUnitVersionHelper() - Constructor for class org.apache.cactus.util.JUnitVersionHelper
 
JdkConnectionHelper - class org.apache.cactus.client.connector.http.JdkConnectionHelper.
Implementation of ConnectionHelper using the JDK HttpURLConnection class.
JdkConnectionHelper(String) - Constructor for class org.apache.cactus.client.connector.http.JdkConnectionHelper
 
JspConfiguration - class org.apache.cactus.configuration.JspConfiguration.
Provides access to the Cactus configuration parameters related to the JSP Redirector.
JspConfiguration() - Constructor for class org.apache.cactus.configuration.JspConfiguration
 
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 (ie 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() - Constructor for class org.apache.cactus.JspTestCase
Default constructor defined in order to allow creating Test Case without needing to define constructor (new feature in JUnit 3.8.1).
JspTestCase(String) - Constructor for class org.apache.cactus.JspTestCase
Constructs a JUnit test case with the given name.
JspTestCase(String, Test) - Constructor for class org.apache.cactus.JspTestCase
Wraps a pure JUnit Test Case in a Cactus Test Case.
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
 
jspWriter - Variable in class org.apache.cactus.server.JspImplicitObjects
The JSP redirector JspWriter object (same as pagecontext.getOut()).

L

load(String) - Method in class org.apache.cactus.server.runner.WebappTestSuiteLoader
Try to load the test suite class using both the context class loader or the class loader that loaded this class.
loadClass(String, Class) - Static method in class org.apache.cactus.util.ClassLoaderUtils
Try loading a class first by using the context class loader or by using the classloader of the referrer class if the context classloader failed to load the class.
loadClassFromContextClassLoader(String) - Static method in class org.apache.cactus.util.ClassLoaderUtils
Try loading class using the Context class loader.
loadClassFromWebappClassLoader(String, Class) - Static method in class org.apache.cactus.util.ClassLoaderUtils
Try loading class using the Webapp class loader.
loadFromRequest(HttpServletRequest) - Static method in class org.apache.cactus.ServletURL
Creates a ServletURL object by loading it's values from the HTTP request.
loadPropertyResourceBundle(String, Class) - Static method in class org.apache.cactus.util.ClassLoaderUtils
Try loading a resource bundle from either the context class loader or the
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.
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(Exception, String) - Method in class org.apache.cactus.server.AbstractServletContextWrapper
Deprecated. As of Java Servlet API 2.1, use AbstractServletContextWrapper.log(String message, Throwable throwable) instead. This method was originally defined to write an exception's stack trace and an explanatory error message to the servlet log file.

M

METHOD_NAME_PARAM - Static variable in interface org.apache.cactus.HttpServiceDefinition
Name of the parameter in the HTTP request that represents the name of the Test method to call.

N

name - Variable in class org.apache.cactus.client.authentication.AbstractAuthentication
User name part of the Credential

O

org.apache.cactus - package org.apache.cactus
Contains all classes needed for writing Cactus tests.
org.apache.cactus.client - package org.apache.cactus.client
Contains the classes implementing of the client side of Cactus.
org.apache.cactus.client.authentication - package org.apache.cactus.client.authentication
Contains classes that support using and testing various authentification schemes.
org.apache.cactus.client.connector.http - package org.apache.cactus.client.connector.http
Contains the implementation of the HTTP transport for communication of the client-side test runner with the server-side redirectors.
org.apache.cactus.configuration - package org.apache.cactus.configuration
Contains the classes that support the configuration of Cactus.
org.apache.cactus.internal.client - package org.apache.cactus.internal.client
 
org.apache.cactus.internal.server - package org.apache.cactus.internal.server
 
org.apache.cactus.server - package org.apache.cactus.server
Contains the classes implementing the server side of Cactus.
org.apache.cactus.server.runner - package org.apache.cactus.server.runner
Contains the classes that implement the Cactus ServletTestRunner.
org.apache.cactus.util - package org.apache.cactus.util
Contains various utility classes.
originalConfig - Variable in class org.apache.cactus.server.AbstractServletConfigWrapper
The original servlet config object
originalContext - Variable in class org.apache.cactus.server.AbstractServletContextWrapper
The original servlet context object
originalException - Variable in class org.apache.cactus.util.ChainedException
Original exception which caused this exception.
originalException - Variable in class org.apache.cactus.util.ChainedRuntimeException
Original exception which caused this exception.
originalPageContext - Variable in class org.apache.cactus.server.AbstractPageContextWrapper
The real page context
out - Variable in class org.apache.cactus.JspTestCase
Valid JspWriter object that you can access from the testXXX(), setUp and tearDown() methods.

P

POST_METHOD - Static variable in class org.apache.cactus.BaseWebRequest
POST Method identifier.
PROTOCOL_HTTP - Static variable in class org.apache.cactus.ServletURL
Http protocol.
PROTOCOL_HTTPS - Static variable in class org.apache.cactus.ServletURL
Https protocol.
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.
ParsingException - exception org.apache.cactus.client.ParsingException.
Thrown when parsing the Web Test result (XML) and trying to build a WebTestResult object.
ParsingException(String) - Constructor for class org.apache.cactus.client.ParsingException
 
ParsingException(Throwable) - Constructor for class org.apache.cactus.client.ParsingException
 
ParsingException(String, Throwable) - Constructor for class org.apache.cactus.client.ParsingException
 
pageContext - Variable in class org.apache.cactus.JspTestCase
Valid PageContext object that you can access from the testXXX(), setUp and tearDown() methods.
pageContext - Variable in class org.apache.cactus.server.JspImplicitObjects
The JSP redirector PageContext object.
parse(String) - Method in class org.apache.cactus.client.WebTestResultParser
Parse a string and transform it into a WebTestResult object.
password - Variable in class org.apache.cactus.client.authentication.AbstractAuthentication
Password part of the Credential
popBody() - Method in class org.apache.cactus.server.AbstractPageContextWrapper
 
printStackTrace(PrintStream) - 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.client.AssertionFailedErrorWrapper
Simulates a printing of a stack trace by printing the string stack trace
printStackTrace(PrintStream) - 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.ServletExceptionWrapper
Simulates a printing of a stack trace by printing the string stack trace
printStackTrace() - Method in class org.apache.cactus.util.ChainedException
Print the full stack trace, including the original exception.
printStackTrace(PrintStream) - Method in class org.apache.cactus.util.ChainedException
Print the full stack trace, including the original exception.
printStackTrace(PrintWriter) - Method in class org.apache.cactus.util.ChainedException
Print the full stack trace, including the original exception.
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.util.ChainedRuntimeException
Print the full stack trace, including the original exception.
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

RUN_TEST_SERVICE - Static variable in class org.apache.cactus.ServiceEnumeration
Noop service for testing.
Request - interface org.apache.cactus.Request.
Tagging interface that represents all Requests objects that are used on the Cactus client side to store information related to the request that will be sent to the Cactus redirector (on the Cactus Server side).
RequestDirectives - class org.apache.cactus.RequestDirectives.
Encapsulates the Cactus-specific parameters added to a request.
RequestDirectives(WebRequest) - Constructor for class org.apache.cactus.RequestDirectives
 
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
 
ResponseObjectFactory - interface org.apache.cactus.client.ResponseObjectFactory.
Constructs response object that are passed as parameter to endXXX() and global end methods.
readExceptionClassname(String) - Method in class org.apache.cactus.client.WebTestResultParser
Read the WebTestResult.XML_EXCEPTION_CLASSNAME_ATTRIBUTE portion and extract the exception classname.
readExceptionMessage(String) - Method in class org.apache.cactus.client.WebTestResultParser
Read the WebTestResult.XML_EXCEPTION_MESSAGE_ELEMENT portion and extract the exception message.
readExceptionStacktrace(String) - Method in class org.apache.cactus.client.WebTestResultParser
Read the WebTestResult.XML_EXCEPTION_STACKTRACE_ELEMENT portion and extract the exception stacktrace.
readRootElement(String) - Method in class org.apache.cactus.client.WebTestResultParser
Read the WebTestResult.XML_ROOT_ELEMENT portion.
release() - Method in class org.apache.cactus.server.AbstractPageContextWrapper
 
reload(Class) - Method in class org.apache.cactus.server.runner.WebappTestSuiteLoader
Not implemented.
remoteHostName - Variable in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
Remote Host name to simulate (if any)
remoteIPAddress - Variable in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
Remote IP address to simulate (if any)
remoteUser - Variable in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
Remote user to simulate (if any)
removeAttribute(String) - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
removeAttribute(String) - Method in class org.apache.cactus.server.AbstractPageContextWrapper
 
removeAttribute(String, int) - Method in class org.apache.cactus.server.AbstractPageContextWrapper
 
removeAttribute(String) - Method in class org.apache.cactus.server.AbstractServletContextWrapper
 
request - Variable in class org.apache.cactus.ServletTestCase
Valid HttpServletRequest object that you can access from the testXXX(), setUp and tearDown() methods.
request - Variable in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
The real HTTP request
request - Variable in class org.apache.cactus.server.AbstractWebImplicitObjects
The HTTP request object.
response - Variable in class org.apache.cactus.ServletTestCase
Valid HttpServletResponse object that you can access from the testXXX(), setUp and tearDown() methods.
response - Variable in class org.apache.cactus.server.AbstractWebImplicitObjects
The HTTP response object.
run(TestResult) - Method in class org.apache.cactus.AbstractTestSuite
 
run(String, String) - Method in class org.apache.cactus.server.runner.ServletTestRunner
Run the suite tests and return the result.
runBare() - Method in class org.apache.cactus.ServletTestCase
Runs the bare test (either on the client side or on the server side).
runBareInit() - Method in class org.apache.cactus.internal.client.ClientTestCaseDelegate
Perform client side initializations before each test, such as re-initializating the logger and printing some logging information.
runBareInit() - Method in class org.apache.cactus.internal.server.ServerTestCaseDelegate
 
runFailed(String) - Method in class org.apache.cactus.server.runner.WebappTestRunner
Event called by the base test runner when it fails to load a test suite.
runGenericTest(DefaultHttpClient) - Method in class org.apache.cactus.internal.client.WebClientTestCaseDelegate
Execute the test case begin method, then connect to the server proxy redirector (where the test case test method is executed) and then executes the test case end method.
runServerTest() - Method in class org.apache.cactus.internal.server.ServerTestCaseDelegate
Run the test that was specified in the constructor on the server side by executing the testXXX method.
runTest(Test, TestResult) - Method in class org.apache.cactus.AbstractTestSuite
 
runTest() - Method in class org.apache.cactus.ServletTestCase
Runs a test case.
runTest() - Method in class org.apache.cactus.internal.client.WebClientTestCaseDelegate
Runs a test case.

S

SERVICE_NAME_PARAM - Static variable in interface org.apache.cactus.HttpServiceDefinition
Name of the parameter in the HTTP request that specify the service asked to the Redirector Servlet.
ServerTestCaseDelegate - class org.apache.cactus.internal.server.ServerTestCaseDelegate.
Delegate class that allows executing JUnit test on the server side by calling setUp(), testXXX() and tearDown().
ServerTestCaseDelegate(Test, Test) - Constructor for class org.apache.cactus.internal.server.ServerTestCaseDelegate
 
ServiceEnumeration - class org.apache.cactus.ServiceEnumeration.
List of valid services that the test redirectors can perform.
ServletConfigWrapper - class org.apache.cactus.server.ServletConfigWrapper.
Wrapper around ServletConfig for Servlet API 2.2.
ServletConfigWrapper(ServletConfig) - Constructor for class org.apache.cactus.server.ServletConfigWrapper
 
ServletConfiguration - class org.apache.cactus.configuration.ServletConfiguration.
Provides access to the Cactus configuration parameters related to the Servlet Redirector.
ServletConfiguration() - Constructor for class org.apache.cactus.configuration.ServletConfiguration
 
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(String) - Constructor for class org.apache.cactus.client.ServletExceptionWrapper
Standard throwable constructor.
ServletExceptionWrapper() - 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.
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 (ie 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() - Constructor for class org.apache.cactus.ServletTestCase
Default constructor defined in order to allow creating Test Case without needing to define constructor (new feature in JUnit 3.8.1).
ServletTestCase(String) - Constructor for class org.apache.cactus.ServletTestCase
Constructs a JUnit test case with the given name.
ServletTestCase(String, Test) - Constructor for class org.apache.cactus.ServletTestCase
Wraps a pure JUnit Test Case in a Cactus Test Case.
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
 
ServletTestRunner - class org.apache.cactus.server.runner.ServletTestRunner.
Helper servlet to start a JUnit Test Runner in a webapp.
ServletTestRunner() - Constructor for class org.apache.cactus.server.runner.ServletTestRunner
 
ServletTestSuite - class org.apache.cactus.ServletTestSuite.
TestSuite wrapper that wraps all the tests of the suite in Cactus ServletTestCase objects.
ServletTestSuite() - Constructor for class org.apache.cactus.ServletTestSuite
 
ServletTestSuite(Class) - Constructor for class org.apache.cactus.ServletTestSuite
 
ServletTestSuite(String) - Constructor for class org.apache.cactus.ServletTestSuite
 
ServletURL - class org.apache.cactus.ServletURL.
Simulate an HTTP URL by breaking it into its different parts.
ServletURL() - Constructor for class org.apache.cactus.ServletURL
Default constructor.
ServletURL(String, String, String, String, String, String) - Constructor for class org.apache.cactus.ServletURL
Creates the URL to simulate.
ServletURL(String, String, String, String, String) - Constructor for class org.apache.cactus.ServletURL
Creates the URL to simulate, using the default HTTP protocol.
ServletUtil - class org.apache.cactus.server.ServletUtil.
All prupose utility methods for manipulating the Servlet API.
ServletUtil() - Constructor for class org.apache.cactus.server.ServletUtil
 
StringUtil - class org.apache.cactus.util.StringUtil.
Various utility methods for string manipulation.
StringUtil() - Constructor for class org.apache.cactus.util.StringUtil
 
saveToRequest(WebRequest) - Method in class org.apache.cactus.ServletURL
Saves the current URL to a WebRequest object.
servletName - Variable in class org.apache.cactus.server.AbstractServletConfigWrapper
Simulated name of the servlet
session - Variable in class org.apache.cactus.ServletTestCase
Valid HttpSession object that you can access from the testXXX(), setUp and tearDown() methods.
setAllowUserInteraction(boolean) - Method in class org.apache.cactus.util.HttpURLConnection
Deprecated.  
setAttribute(String, Object) - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
 
setAttribute(String, Object) - Method in class org.apache.cactus.server.AbstractPageContextWrapper
 
setAttribute(String, Object, int) - Method in class org.apache.cactus.server.AbstractPageContextWrapper
 
setAttribute(String, Object) - Method in class org.apache.cactus.server.AbstractServletContextWrapper
 
setAuthentication(Authentication) - Method in class org.apache.cactus.BaseWebRequest
Sets the authentication object that will configure the http request
setAutoSession(String) - Method in class org.apache.cactus.RequestDirectives
 
setAutomaticSession(boolean) - Method in class org.apache.cactus.WebRequest
 
setClassName(String) - Method in class org.apache.cactus.RequestDirectives
 
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.
setConfiguration(Configuration) - Method in class org.apache.cactus.BaseWebRequest
 
setConfiguration(Configuration) - Method in class org.apache.cactus.internal.client.ClientTestCaseDelegate
Sets the Cactus configuration * @param theConfiguration the Cactus configuration
setContentType(String) - Method in class org.apache.cactus.BaseWebRequest
Sets the content type that will be set in the http request
setContextPath(String) - Method in class org.apache.cactus.ServletURL
Sets the webapp context path in the URL to simulate, ie this is the name that will be returned by the HttpServletRequest.getContextPath().
setDefaultUseCaches(boolean) - Method in class org.apache.cactus.util.HttpURLConnection
Deprecated.  
setDelegatedTest(Test) - Method in class org.apache.cactus.internal.client.ClientTestCaseDelegate
 
setDelegatedTest(Test) - Method in class org.apache.cactus.internal.server.ServerTestCaseDelegate
 
setDoInput(boolean) - Method in class org.apache.cactus.util.HttpURLConnection
Deprecated.  
setDoOutput(boolean) - Method in class org.apache.cactus.util.HttpURLConnection
Deprecated.  
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.AbstractWebImplicitObjects
 
setHttpServletRequest(HttpServletRequest) - Method in interface org.apache.cactus.server.WebImplicitObjects
 
setHttpServletResponse(HttpServletResponse) - Method in class org.apache.cactus.server.AbstractWebImplicitObjects
 
setHttpServletResponse(HttpServletResponse) - Method in interface org.apache.cactus.server.WebImplicitObjects
 
setIfModifiedSince(long) - Method in class org.apache.cactus.util.HttpURLConnection
Deprecated.  
setInitParameter(String, String) - Method in class org.apache.cactus.server.AbstractServletConfigWrapper
Sets a parameter as if it were set in the web.xml file.
setInstanceFollowRedirects(boolean) - Method in class org.apache.cactus.util.HttpURLConnection
Deprecated.  
setJspWriter(JspWriter) - Method in class org.apache.cactus.server.JspImplicitObjects
 
setLogger(Log) - Method in class org.apache.cactus.internal.client.ClientTestCaseDelegate
 
setMethodName(String) - Method in class org.apache.cactus.RequestDirectives
 
setName(String) - Method in class org.apache.cactus.AbstractTestSuite
 
setName(String) - Method in class org.apache.cactus.Cookie
Sets the cookie name
setName(String) - Method in class org.apache.cactus.client.authentication.AbstractAuthentication
Sets the user name.
setPageContext(PageContext) - Method in class org.apache.cactus.server.JspImplicitObjects
 
setPassword(String) - Method in class org.apache.cactus.client.authentication.AbstractAuthentication
Sets the user password of the Credential.
setPath(String) - Method in class org.apache.cactus.Cookie
Sets the cookie path.
setPathInfo(String) - Method in class org.apache.cactus.ServletURL
Sets the path info in the URL to simulate, ie this is the name that will be returned by the HttpServletRequest.getPathInfo().
setProtocol(String) - Method in class org.apache.cactus.ServletURL
Sets the protocol to simulate (either ServletURL.PROTOCOL_HTTP or ServletURL.PROTOCOL_HTTPS.
setQueryString(String) - Method in class org.apache.cactus.ServletURL
Sets the Query string in the URL to simulate, ie this is the string that will be returned by the HttpServletResquest.getQueryString().
setRedirectorName(String) - Method in class org.apache.cactus.WebRequest
Override the redirector Name defined in cactus.properties.
setRemoteHostName(String) - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
Simulates the remote host name(ie the client host name).
setRemoteIPAddress(String) - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
Simulates the remote IP address (ie the client IP address).
setRemoteUser(String) - Method in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
Sets the remote user name to simulate.
setRequestMethod(String) - Method in class org.apache.cactus.util.HttpURLConnection
Deprecated.  
setRequestProperty(String, String) - Method in class org.apache.cactus.util.HttpURLConnection
Deprecated.  
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).
setSecurityCheckURL(URL) - Method in class org.apache.cactus.client.authentication.FormAuthentication
This sets the URL to use when attempting to log in.
setServerName(String) - Method in class org.apache.cactus.ServletURL
Sets the server name (and port) in the URL to simulate, ie this is the name that will be returned by the HttpServletRequest.getServerName() and HttpServletRequest.getServerPort().
setService(ServiceEnumeration) - Method in class org.apache.cactus.RequestDirectives
 
setServletConfig(ServletConfig) - Method in class org.apache.cactus.server.ServletImplicitObjects
 
setServletContext(ServletContext) - Method in class org.apache.cactus.server.AbstractWebImplicitObjects
 
setServletContext(ServletContext) - Method in interface org.apache.cactus.server.WebImplicitObjects
 
setServletName(String) - Method in class org.apache.cactus.server.AbstractServletConfigWrapper
Sets the servlet name.
setServletPath(String) - Method in class org.apache.cactus.ServletURL
Sets the servlet path in the URL to simulate, ie this is the name that will be returned by the HttpServletRequest.getServletPath().
setSuiteClassName(String) - Method in class org.apache.cactus.server.runner.XMLFormatter
Sets the suite class name that was executed.
setTestCaseFields(TestCase) - Method in class org.apache.cactus.server.AbstractWebTestCaller
Sets the implicit object in the test case class
setTestCaseFields(TestCase) - Method in class org.apache.cactus.server.JspTestCaller
 
setTestCaseFields(TestCase) - Method in class org.apache.cactus.server.ServletTestCaller
 
setTotalDuration(long) - Method in class org.apache.cactus.server.runner.XMLFormatter
Sets the duration it took to execute all the tests.
setURL(String, String, String, String, String) - Method in class org.apache.cactus.WebRequest
Sets the simulated URL.
setUseCaches(boolean) - Method in class org.apache.cactus.util.HttpURLConnection
Deprecated.  
setUserData(InputStream) - Method in class org.apache.cactus.BaseWebRequest
Allow the user to send arbitrary data in the request body
setValue(String) - Method in class org.apache.cactus.Cookie
Sets the cookie value
setWrappedTest(Test) - Method in class org.apache.cactus.internal.client.ClientTestCaseDelegate
 
setWrappedTest(Test) - Method in class org.apache.cactus.internal.server.ServerTestCaseDelegate
 
setWrappedTestName(String) - Method in class org.apache.cactus.RequestDirectives
 
setXslFileName(String) - Method in class org.apache.cactus.server.runner.XMLFormatter
Sets the XSL stylesheet file name to put in the returned XML string so that the browser will try to apply it (IE at least, I don't know about the others).
startTest(Test) - Method in class org.apache.cactus.server.runner.WebappTestRunner
 
startTest(Test) - Method in class org.apache.cactus.server.runner.XMLFormatter
Event called by the base test runner when the test starts.

T

TESTCASE - Static variable in interface org.apache.cactus.server.runner.XMLConstants
A single testcase element
TESTSUITE - Static variable in interface org.apache.cactus.server.runner.XMLConstants
A single test suite results.
TESTSUITES - Static variable in interface org.apache.cactus.server.runner.XMLConstants
Root element for all test suites.
TEST_ID_PARAM - Static variable in interface org.apache.cactus.HttpServiceDefinition
Name of the parameter in the HTTP request that represents the unique id of the test case (to ensure that the client-side test gets the correct results).
TEST_METHOD_PREFIX - Static variable in class org.apache.cactus.internal.client.ClientTestCaseDelegate
The prefix of a test method.
TEST_RESULTS - Static variable in class org.apache.cactus.server.AbstractWebTestCaller
Name of the attribute in the application scope that will hold the results of the test.
TestController - interface org.apache.cactus.server.TestController.
Controller interface that simlulates a bit the controller from the MVC model in that this controller implementation classes are in charge of extracting data from the request and calling the test method to execute.
testAt(int) - Method in class org.apache.cactus.AbstractTestSuite
 
testCount() - Method in class org.apache.cactus.AbstractTestSuite
 
testEnded(String) - Method in class org.apache.cactus.server.runner.WebappTestRunner
Event called by the base test runner when the test ends.
testFailed(int, Test, Throwable) - Method in class org.apache.cactus.server.runner.WebappTestRunner
Event called by the base test runner when the test fails.
testStarted(String) - Method in class org.apache.cactus.server.runner.WebappTestRunner
Event called by the base test runner when the test starts.
tests() - Method in class org.apache.cactus.AbstractTestSuite
 
toString() - Method in class org.apache.cactus.AbstractTestSuite
 
toString() - Method in class org.apache.cactus.BaseWebRequest
 
toString() - Method in class org.apache.cactus.Cookie
 
toString() - Method in class org.apache.cactus.ServiceEnumeration
Returns the string representation of the service.
toString() - Method in class org.apache.cactus.ServletURL
 
toString() - Method in class org.apache.cactus.WebRequest
 
toString() - Method in class org.apache.cactus.WebTestResult
 
toXML(TestResult) - Method in class org.apache.cactus.server.runner.XMLFormatter
Formats the test result as an XML string.
toXml() - Method in class org.apache.cactus.WebTestResult
 
transform(Reader, Writer) - Method in class org.apache.cactus.server.runner.XMLTransformer
Performs the actual transformation.

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_PROTOCOL_PARAM - Static variable in class org.apache.cactus.ServletURL
Name of the parameter in the HTTP request that represents the protocol (HTTP, HTTPS, etc) 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 (+ port) 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.
UniqueGenerator - class org.apache.cactus.util.UniqueGenerator.
Generates a quasi-unique id for a test case.
UniqueGenerator() - Constructor for class org.apache.cactus.util.UniqueGenerator
 
UrlUtil - class org.apache.cactus.util.UrlUtil.
Various utility methods for URL manipulation.
UrlUtil() - Constructor for class org.apache.cactus.util.UrlUtil
 
url - Variable in class org.apache.cactus.server.AbstractHttpServletRequestWrapper
The URL to simulate
url - Variable in class org.apache.cactus.server.AbstractPageContextWrapper
The URL to simulate
usingProxy() - Method in class org.apache.cactus.util.HttpURLConnection
Deprecated.  

V

VERSION - Static variable in class org.apache.cactus.configuration.Version
The Cactus version string which will be resolved by the project build file.
Version - class org.apache.cactus.configuration.Version.
Provides the Cactus version at runtime.
Version() - Constructor for class org.apache.cactus.configuration.Version
 
validateName(String) - Method in class org.apache.cactus.client.authentication.AbstractAuthentication
Verify that the user name passed as parameter is a valid user name for the current authentication scheme.
validateName(String) - Method in class org.apache.cactus.client.authentication.BasicAuthentication
 
validateName(String) - Method in class org.apache.cactus.client.authentication.FormAuthentication
 
validatePassword(String) - Method in class org.apache.cactus.client.authentication.AbstractAuthentication
Verify that the user password passed as parameter is a valid user password for the current authentication scheme.
validatePassword(String) - Method in class org.apache.cactus.client.authentication.BasicAuthentication
 
validatePassword(String) - Method in class org.apache.cactus.client.authentication.FormAuthentication
 
valueOf(String) - Static method in class org.apache.cactus.ServiceEnumeration
Returns the enumeration instance corresponding to the provided service name.

W

WRAPPED_CLASS_NAME_PARAM - Static variable in interface org.apache.cactus.HttpServiceDefinition
Name of the parameter in the HTTP request that represents an optional Test being wrapped by the class represented by CLASS_NAME_PARAM.
WebClientTestCaseDelegate - class org.apache.cactus.internal.client.WebClientTestCaseDelegate.
Delegator extension to support test cases using the HTTP protocol.
WebClientTestCaseDelegate(Test, Test, Configuration) - Constructor for class org.apache.cactus.internal.client.WebClientTestCaseDelegate
 
WebConfiguration - interface org.apache.cactus.configuration.WebConfiguration.
Extends the generic Configuration interface with methods provided configuration information related to Web redirectors.
WebImplicitObjects - interface org.apache.cactus.server.WebImplicitObjects.
Interface for implicit objects that exist for all web requests (HttpServletRequest, HttpServletResponse and ServletContext).
WebRequest - class org.apache.cactus.WebRequest.
Extends BaseWebRequest to add properties specific to the Cactus Web Redirectors.
WebRequest() - Constructor for class org.apache.cactus.WebRequest
Default constructor that requires that BaseWebRequest.setConfiguration(Configuration) be called before the methods requiring a configuration object.
WebRequest(WebConfiguration) - 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
 
WebResponseObjectFactory - class org.apache.cactus.client.WebResponseObjectFactory.
Constructs Web response object that are passed as parameter to endXXX() and global end methods.
WebResponseObjectFactory() - Constructor for class org.apache.cactus.client.WebResponseObjectFactory
 
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.
WebTestResult(String, String, String) - Constructor for class org.apache.cactus.WebTestResult
Constructor used to reconstruct a WebTestResult object from its String representation.
WebTestResultParser - class org.apache.cactus.client.WebTestResultParser.
Parse a string representing a Test result and transform it into a WebTestResult object.
WebTestResultParser() - Constructor for class org.apache.cactus.client.WebTestResultParser
 
WebappTestRunner - class org.apache.cactus.server.runner.WebappTestRunner.
JUnit Test Runner that can load test cases that are in the classpath of a webapp.
WebappTestRunner() - Constructor for class org.apache.cactus.server.runner.WebappTestRunner
 
WebappTestSuiteLoader - class org.apache.cactus.server.runner.WebappTestSuiteLoader.
Dynamic class loader to load classes from the webapp classpath.
WebappTestSuiteLoader() - Constructor for class org.apache.cactus.server.runner.WebappTestSuiteLoader
 
webImplicitObjects - Variable in class org.apache.cactus.server.AbstractWebTestCaller
The implicit objects (which will be used to set the test case fields in the setTesCaseFields method.

X

XMLConstants - interface org.apache.cactus.server.runner.XMLConstants.
XML constants for outputting the JUnit test results in XML.
XMLFormatter - class org.apache.cactus.server.runner.XMLFormatter.
Format the test results in XML.
XMLFormatter() - Constructor for class org.apache.cactus.server.runner.XMLFormatter
 
XMLTransformer - class org.apache.cactus.server.runner.XMLTransformer.
Helper class that handles the transformation of the XML test results to some output format determined by a stylesheet.
XMLTransformer(InputStream) - Constructor for class org.apache.cactus.server.runner.XMLTransformer
Constructor.
XML_EXCEPTION_CLASSNAME_ATTRIBUTE - Static variable in class org.apache.cactus.WebTestResult
Name of Exception XML attribute that contains the exception classname (see WebTestResult.toXml()).
XML_EXCEPTION_ELEMENT - Static variable in class org.apache.cactus.WebTestResult
Name of Exception XML tag (see WebTestResult.toXml()).
XML_EXCEPTION_MESSAGE_ELEMENT - Static variable in class org.apache.cactus.WebTestResult
Name of Exception Message XML tag (see WebTestResult.toXml()).
XML_EXCEPTION_STACKTRACE_ELEMENT - Static variable in class org.apache.cactus.WebTestResult
Name of Exception Stacktrace XML tag (see WebTestResult.toXml()).
XML_ROOT_ELEMENT - Static variable in class org.apache.cactus.WebTestResult
Name of Root XML tag (see WebTestResult.toXml()).

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

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