A C D E F G H I L M O P R S T

A

addCookie(Cookie) - Method in class org.apache.click.servlet.MockRequest
Add a new cookie.
addCookie(Cookie) - Method in class org.apache.click.servlet.MockResponse
Add a cookie to the response.
addDateHeader(String, long) - Method in class org.apache.click.servlet.MockResponse
Add a date header.
addFile(String, File, String) - Method in class org.apache.click.servlet.MockRequest
Add an uploaded file to the request.
addHeader(String, String) - Method in class org.apache.click.servlet.MockRequest
Add a header to the request.
addHeader(String, String) - Method in class org.apache.click.servlet.MockResponse
Add the given header value, including an additional entry if one already exists.
addInitParameter(String, String) - Method in class org.apache.click.servlet.MockServletConfig
Add an init parameter.
addInitParameter(String, String) - Method in class org.apache.click.servlet.MockServletContext
Add an init parameter.
addInitParameters(Map<String, String>) - Method in class org.apache.click.servlet.MockServletConfig
Add the map of init parameters.
addInitParameters(Map<String, String>) - Method in class org.apache.click.servlet.MockServletContext
Add the map of init parameters.
addIntHeader(String, int) - Method in class org.apache.click.servlet.MockResponse
Add an int header value.
addMimeType(String, String) - Method in class org.apache.click.servlet.MockServletContext
Add a new recognized mime type.
addRoles(String...) - Method in class org.apache.click.servlet.MockPrincipal
Add the roles of this principal.
append2digits(StringBuffer, int) - Static method in class org.apache.click.servlet.MockResponse
Append two digits if specified int is less than 100.

C

containsHeader(String) - Method in class org.apache.click.servlet.MockResponse
Check if the response contains the given header name.
createTempDir() - Method in class org.apache.click.servlet.MockServletContext
Creates a temporary directory as specified by MockServletContext.getTempPath().
createWebappRoot() - Method in class org.apache.click.servlet.MockServletContext
Creates the web application root File MockServletContext.getWebappRoot().

D

DEFAULT_CONTEXT_PATH - Static variable in class org.apache.click.servlet.MockServletContext
The servlet context default context path, "/mock".

E

encodeRedirectUrl(String) - Method in class org.apache.click.servlet.MockResponse
Encode the redirectUrl.
encodeRedirectURL(String) - Method in class org.apache.click.servlet.MockResponse
Encode the redirectUrl.
encodeUrl(String) - Method in class org.apache.click.servlet.MockResponse
Encode thr URL.
encodeURL(String) - Method in class org.apache.click.servlet.MockResponse
Encode thr URL.
executeActionListeners() - Method in class org.apache.click.MockContext
Execute all listeners that was registered by processed Controls.
executeBehaviors() - Method in class org.apache.click.MockContext
Execute all behaviors that was registered by processed Controls.
executePreDestroy() - Method in class org.apache.click.MockContext
Execute the preDestroy method for all registered behaviors.
executePreRenderHeadElements() - Method in class org.apache.click.MockContext
Execute the preRenderHeadElements method for all registered behaviors.
executePreResponse() - Method in class org.apache.click.MockContext
Execute the preResponse method for all registered behaviors.

F

findMockRequest(ServletRequest) - Static method in class org.apache.click.MockContainer
Find and return the MockRequest from the request stack.
fireActionEventsAndClearRegistry() - Method in class org.apache.click.MockContext
Deprecated. use MockContext.executeActionListeners() instead
flushBuffer() - Method in class org.apache.click.servlet.MockResponse
Flush the buffer.
formatDate(long) - Static method in class org.apache.click.servlet.MockResponse
Formats the specified long value as a date.
formatDate(StringBuffer, Calendar, boolean) - Static method in class org.apache.click.servlet.MockResponse
Format HTTP date "EEE, dd MMM yyyy HH:mm:ss 'GMT'" or "EEE, dd-MMM-yy HH:mm:ss 'GMT'" for cookies.
forward(ServletRequest, ServletResponse) - Method in class org.apache.click.servlet.MockRequestDispatcher
This method stores the dispatcher's resourcePath on the request.

G

getAttribute(String) - Method in class org.apache.click.servlet.MockRequest
Get an attribute.
getAttribute(String) - Method in class org.apache.click.servlet.MockServletContext
Get an attribute with the given name.
getAttribute(String) - Method in class org.apache.click.servlet.MockSession
 
getAttributeNames() - Method in class org.apache.click.servlet.MockRequest
Get the names of all of the values.
getAttributeNames() - Method in class org.apache.click.servlet.MockServletContext
Get all of the attribute names.
getAttributeNames() - Method in class org.apache.click.servlet.MockSession
 
getAuthType() - Method in class org.apache.click.servlet.MockRequest
Get the auth type.
getBinaryContent() - Method in class org.apache.click.servlet.MockResponse
Get the binary content that was written to the servlet stream.
getBufferSize() - Method in class org.apache.click.servlet.MockResponse
Return the current buffer size.
getCharacterEncoding() - Method in class org.apache.click.servlet.MockRequest
Get the current character encoding.
getCharacterEncoding() - Method in class org.apache.click.servlet.MockResponse
Get the character encoding of the response.
getClickServlet() - Method in class org.apache.click.MockContainer
Return the container ClickServlet.
getCode() - Method in class org.apache.click.servlet.MockResponse
Get the response code for this request.
getContentLength() - Method in class org.apache.click.servlet.MockRequest
Return the length of the content.
getContentType() - Method in class org.apache.click.servlet.MockRequest
If useMultiPartContentType set as true return the correct content-type.
getContentType() - Method in class org.apache.click.servlet.MockResponse
Return the response content type.
getContext(String) - Method in class org.apache.click.servlet.MockServletContext
Get the context for the given URL path.
getContextPath() - Method in class org.apache.click.servlet.MockRequest
Returns the portion of the request URI that indicates the context of the request.
getContextPath() - Method in class org.apache.click.servlet.MockServletContext
Return the servlet context path.
getCookies() - Method in class org.apache.click.servlet.MockRequest
Get all of the cookies for this request.
getCookies() - Method in class org.apache.click.servlet.MockResponse
Get all of the cookies that have been added to the response.
getCreationTime() - Method in class org.apache.click.servlet.MockSession
 
getDateHeader(String) - Method in class org.apache.click.servlet.MockRequest
Get the given header as a date.
getDocument() - Method in class org.apache.click.servlet.MockResponse
Get the text document that was written as part of this response.
getErrorMessage() - Method in class org.apache.click.servlet.MockResponse
Get the error message.
getForward() - Method in class org.apache.click.MockContainer
Return the path that Page forwarded to.
getForward() - Method in class org.apache.click.servlet.MockRequest
Returns the url that was forwarded to, otherwise return null.
getForwardOrRedirectUrl() - Method in class org.apache.click.MockContainer
Return the forward or redirect url as set by the Page.
getForwardPageClass() - Method in class org.apache.click.MockContainer
Return the Class that Page forwarded to.
getHeader(String) - Method in class org.apache.click.servlet.MockRequest
Get the given header value.
getHeader(String) - Method in class org.apache.click.servlet.MockResponse
Return the value of the given named header.
getHeaderNames() - Method in class org.apache.click.servlet.MockRequest
Get the names of all of the headers.
getHeaderNames() - Method in class org.apache.click.servlet.MockResponse
Get the names of all of the headers.
getHeaders(String) - Method in class org.apache.click.servlet.MockRequest
Get enumeration of all header values with the given name.
getHeaders() - Method in class org.apache.click.servlet.MockRequest
Return the map of headers for this request.
getHtml() - Method in class org.apache.click.MockContainer
Returns the html output that was generated by HttpServletResponse.
getId() - Method in class org.apache.click.servlet.MockSession
 
getIncludes() - Method in class org.apache.click.servlet.MockRequest
Returns the list of server side included url's.
getInitParameter(String) - Method in class org.apache.click.servlet.MockServletConfig
Returns a String containing the value of the named initialization parameter, or null if the parameter does not exist.
getInitParameter(String) - Method in class org.apache.click.servlet.MockServletContext
Get the init parameter with the given name.
getInitParameterNames() - Method in class org.apache.click.servlet.MockServletConfig
Returns the names of the servlet's initialization parameters as an Enumeration of String objects, or an empty Enumeration if the servlet has no initialization parameters.
getInitParameterNames() - Method in class org.apache.click.servlet.MockServletContext
Get the name of all of the init parameters.
getInputStream() - Method in class org.apache.click.servlet.MockRequest
Returns an input stream if there has been added some uploaded files.
getIntHeader(String) - Method in class org.apache.click.servlet.MockRequest
Get the given header as an int.
getLastAccessedTime() - Method in class org.apache.click.servlet.MockSession
This method will return the current time by invoking System.currentTimeMillis().
getLocalAddr() - Method in class org.apache.click.servlet.MockRequest
Return the local address, "127.0.0.1".
getLocale() - Method in class org.apache.click.servlet.MockRequest
Get the locale of the request.
getLocale() - Method in class org.apache.click.servlet.MockResponse
Get the encoded locale.
getLocales() - Method in class org.apache.click.servlet.MockRequest
Return all the accepted locales.
getLocalName() - Method in class org.apache.click.servlet.MockRequest
Return the local name, "127.0.0.1".
getLocalPort() - Method in class org.apache.click.servlet.MockRequest
Return the local port, 80.
getMajorVersion() - Method in class org.apache.click.servlet.MockServletContext
Return the major version of the Servlet spec that this package supports, defaults to 2.
getMaxInactiveInterval() - Method in class org.apache.click.servlet.MockSession
 
getMethod() - Method in class org.apache.click.servlet.MockRequest
Get the method.
getMimeType(String) - Method in class org.apache.click.servlet.MockServletContext
Get the mime type for the given file.
getMinorVersion() - Method in class org.apache.click.servlet.MockServletContext
Return the minor version of the Servlet spec that this package supports, defaults to 3.
getMockRequest() - Method in class org.apache.click.MockContext
Return the MockRequest instance for this context.
getName() - Method in class org.apache.click.servlet.MockPrincipal
Returns the name of this principal.
getNamedDispatcher(String) - Method in class org.apache.click.servlet.MockServletContext
Returns a RequestDispatcher for the specified name.
getOutputStream() - Method in class org.apache.click.servlet.MockResponse
Get the output stream for writing binary data from the servlet.
getParameter(String) - Method in class org.apache.click.servlet.MockRequest
Get the request parameter with the given name.
getParameterMap() - Method in class org.apache.click.servlet.MockRequest
Get the map of all of the parameters.
getParameterNames() - Method in class org.apache.click.servlet.MockRequest
Get the names of all of the parameters.
getParameterValues(String) - Method in class org.apache.click.servlet.MockRequest
Get the values for the given parameter.
getPathInfo() - Method in class org.apache.click.servlet.MockRequest
Get the path info.
getPathTranslated() - Method in class org.apache.click.servlet.MockRequest
Always returns null.
getProtocol() - Method in class org.apache.click.servlet.MockRequest
Get the protocol.
getQueryString() - Method in class org.apache.click.servlet.MockRequest
Get the query string part of the request.
getReader() - Method in class org.apache.click.servlet.MockRequest
This feature is not implemented at this time as we are not supporting binary servlet input.
getRealPath(String) - Method in class org.apache.click.servlet.MockRequest
Deprecated. Use ServletContext.getRealPath(String) instead.
getRealPath(String) - Method in class org.apache.click.servlet.MockServletContext
Get the real file path of the given resource name.
getRedirect() - Method in class org.apache.click.MockContainer
Return the path that Page redirected to.
getRedirectPageClass() - Method in class org.apache.click.MockContainer
Return the Class that Page redirected to.
getRedirectUrl() - Method in class org.apache.click.servlet.MockResponse
Get the location that was redirected to.
getRemoteAddr() - Method in class org.apache.click.servlet.MockRequest
Get the remote address of the client.
getRemoteHost() - Method in class org.apache.click.servlet.MockRequest
Get the remote host.
getRemotePort() - Method in class org.apache.click.servlet.MockRequest
Return the remote port, 80.
getRemoteUser() - Method in class org.apache.click.servlet.MockRequest
Return the name of the MockRequest.userPrincipal if set, otherwise the value of the "REMOTE_USER" header.
getRequest() - Method in class org.apache.click.MockContainer
Return the container MockRequest.
getRequestDispatcher(String) - Method in class org.apache.click.servlet.MockRequest
Returns a RequestDispatcher for the specified path.
getRequestDispatcher(String) - Method in class org.apache.click.servlet.MockServletContext
Returns a RequestDispatcher for the specified path.
getRequestedSessionId() - Method in class org.apache.click.servlet.MockRequest
Get the requested session id.
getRequestURI() - Method in class org.apache.click.servlet.MockRequest
Returns context path and servlet path concatenated, typically /applicationClassName/applicationClassName.
getRequestURL() - Method in class org.apache.click.servlet.MockRequest
Returns (an attempt at) a reconstructed URL based on it's constituent parts.
getResource(String) - Method in class org.apache.click.servlet.MockServletContext
Get the URL for a particular resource that is relative to the web app root directory.
getResourceAsStream(String) - Method in class org.apache.click.servlet.MockServletContext
Get an input stream for a particular resource that is relative to the web app root directory or the current classpath.
getResourcePaths(String) - Method in class org.apache.click.servlet.MockServletContext
Get the resource paths starting from the web app root directory and then relative to the given name.
getResponse() - Method in class org.apache.click.MockContainer
Return the container MockResponse.
getRoles() - Method in class org.apache.click.servlet.MockPrincipal
Returns the roles of this principal.
getScheme() - Method in class org.apache.click.servlet.MockRequest
Get the scheme http, https, or ftp.
getServerInfo() - Method in class org.apache.click.servlet.MockServletContext
Get the server info.
getServerName() - Method in class org.apache.click.servlet.MockRequest
Get the host server name to which the request was sent.
getServerPort() - Method in class org.apache.click.servlet.MockRequest
Returns the port number to which the request was sent.
getServlet() - Method in class org.apache.click.MockContext
Return the mock ClickServlet instance for this context.
getServlet(String) - Method in class org.apache.click.servlet.MockServletContext
NOT USED - Servlet Spec requires that this always returns null.
getServletConfig() - Method in class org.apache.click.MockContainer
Return the container MockServletConfig.
getServletContext() - Method in class org.apache.click.MockContainer
Return the container MockServletContext.
getServletContext() - Method in class org.apache.click.servlet.MockServletConfig
Return the servlet context.
getServletContext() - Method in class org.apache.click.servlet.MockSession
 
getServletContextName() - Method in class org.apache.click.servlet.MockServletContext
Return the name of the servlet context.
getServletName() - Method in class org.apache.click.servlet.MockServletConfig
Return the servlet name.
getServletNames() - Method in class org.apache.click.servlet.MockServletContext
NOT USED - Servlet spec requires that this always returns null.
getServletPath() - Method in class org.apache.click.servlet.MockRequest
Return a String containing the name or path of the servlet being called.
getServlets() - Method in class org.apache.click.servlet.MockServletContext
NOT USED - Servlet spec requires that this always returns null.
getSession() - Method in class org.apache.click.MockContainer
Return the container MockSession.
getSession() - Method in class org.apache.click.servlet.MockRequest
Returns the current HttpSession associated with this request.
getSession(boolean) - Method in class org.apache.click.servlet.MockRequest
Returns the current HttpSession associated with this request.
getSessionContext() - Method in class org.apache.click.servlet.MockSession
 
getStatus() - Method in class org.apache.click.servlet.MockResponse
Get the status code.
getTempPath() - Method in class org.apache.click.servlet.MockServletContext
Return the temporary path where files are stored during test runs.
getUserPrincipal() - Method in class org.apache.click.servlet.MockRequest
Get the user principal.
getValue(String) - Method in class org.apache.click.servlet.MockSession
 
getValueNames() - Method in class org.apache.click.servlet.MockSession
 
getWebappPath() - Method in class org.apache.click.servlet.MockServletContext
Return the web application path where resources like javascript, css and images can be picked up.
getWebappRoot() - Method in class org.apache.click.servlet.MockServletContext
Return the web application root File where resources like javascript, css and images can be picked up.
getWriter() - Method in class org.apache.click.servlet.MockResponse
Get the print writer for writing text output for this response.

H

hasUploadedFiles() - Method in class org.apache.click.servlet.MockRequest
 

I

include(ServletRequest, ServletResponse) - Method in class org.apache.click.servlet.MockRequestDispatcher
This method stores the dispatcher's resourcePath on the request.
initContext() - Static method in class org.apache.click.MockContext
Creates and returns a new Context instance.
initContext(String) - Static method in class org.apache.click.MockContext
Creates and returns a new Context instance for the specified servletPath.
initContext(Locale) - Static method in class org.apache.click.MockContext
Creates and returns a new Context instance for the specified locale.
initContext(HttpServletRequest) - Static method in class org.apache.click.MockContext
Deprecated. use one of the other initContext methods because those will construct a complete mock stack including a MockRequest.
initContext(Locale, String) - Static method in class org.apache.click.MockContext
Creates and returns a new Context instance for the specified locale and servletPath.
initContext(MockServletConfig, MockRequest, MockResponse, ClickServlet) - Static method in class org.apache.click.MockContext
Creates and returns a new Context instance for the specified mock objects.
initContext(MockServletConfig, MockRequest, MockResponse, ClickServlet, ActionEventDispatcher, ControlRegistry) - Static method in class org.apache.click.MockContext
Creates and returns a new Context instance for the specified mock objects.
initialize() - Method in class org.apache.click.servlet.MockRequest
Reset the request back to a default state.
initialize() - Method in class org.apache.click.servlet.MockResponse
Reset the response ready for reuse.
invalidate() - Method in class org.apache.click.servlet.MockSession
 
isCommitted() - Method in class org.apache.click.servlet.MockResponse
Always returns false.
isError() - Method in class org.apache.click.servlet.MockResponse
Return whether the servlet returned an error code or not.
isNew() - Method in class org.apache.click.servlet.MockSession
 
isPost() - Method in class org.apache.click.servlet.MockRequest
Return whether the request is a post or not.
isRedirect() - Method in class org.apache.click.servlet.MockResponse
Check whether the response was redirected or not.
isRequestedSessionIdFromCookie() - Method in class org.apache.click.servlet.MockRequest
Check whether session id is from a cookie.
isRequestedSessionIdFromUrl() - Method in class org.apache.click.servlet.MockRequest
Check whether session id is from a url rewrite.
isRequestedSessionIdFromURL() - Method in class org.apache.click.servlet.MockRequest
Check whether session id is from a url rewrite.
isRequestedSessionIdValid() - Method in class org.apache.click.servlet.MockRequest
Check whether the session id is valid.
isSecure() - Method in class org.apache.click.servlet.MockRequest
Always returns false.
isUserInRole(String) - Method in class org.apache.click.servlet.MockRequest
Returns true if the authenticated user is included in the given role, false otherwise.

L

log(Exception, String) - Method in class org.apache.click.servlet.MockServletContext
Log the exception to System.err and the message to System.out.
log(String) - Method in class org.apache.click.servlet.MockServletContext
Log the message to System.out.
log(String, Throwable) - Method in class org.apache.click.servlet.MockServletContext
Log the cause to System.err and the message to System.out.

M

MockContainer - Class in org.apache.click
Provides a mock container for testing Click Pages.
MockContainer(String) - Constructor for class org.apache.click.MockContainer
Create a new container for the specified webappPath.
MockContainer(String, Locale) - Constructor for class org.apache.click.MockContainer
Create a new container for the specified webappPath and locale.
MockContext - Class in org.apache.click
Provides a mock Context object for unit testing.
MockPrincipal - Class in org.apache.click.servlet
Mock implementation of a user principal.
MockPrincipal() - Constructor for class org.apache.click.servlet.MockPrincipal
Constructs a new MockPrincipal instance.
MockPrincipal(String) - Constructor for class org.apache.click.servlet.MockPrincipal
Constructs a new MockPrincipal instance for the given name.
MockPrincipal(String, Set<String>) - Constructor for class org.apache.click.servlet.MockPrincipal
Constructs a new MockPrincipal instance for the given name and roles.
MockPrincipal(String, String...) - Constructor for class org.apache.click.servlet.MockPrincipal
Constructs a new MockPrincipal instance for the given name and roles.
MockRequest - Class in org.apache.click.servlet
Mock implementation of HttpServletRequest.
MockRequest() - Constructor for class org.apache.click.servlet.MockRequest
Create new MockRequest.
MockRequest(Locale) - Constructor for class org.apache.click.servlet.MockRequest
Create new MockRequest for the specified local.
MockRequest(ServletContext) - Constructor for class org.apache.click.servlet.MockRequest
Create a new MockRequest for the specified context.
MockRequest(Locale, ServletContext) - Constructor for class org.apache.click.servlet.MockRequest
Create a new MockRequest for the specified locale and servletContext.
MockRequest(Locale, ServletContext, HttpSession) - Constructor for class org.apache.click.servlet.MockRequest
Create a new MockRequest for the specified arguments.
MockRequest(Locale, String, String, ServletContext, HttpSession) - Constructor for class org.apache.click.servlet.MockRequest
Create a new MockRequest for the specified arguments.
MockRequestDispatcher - Class in org.apache.click.servlet
Mock implementation of RequestDispatcher.
MockRequestDispatcher(String) - Constructor for class org.apache.click.servlet.MockRequestDispatcher
Constructs a new RequestDispatcher instance for the specified resourcePath.
MockResponse - Class in org.apache.click.servlet
Mock implementation of HttpServletResponse.
MockResponse() - Constructor for class org.apache.click.servlet.MockResponse
Create the response object.
MockServletConfig - Class in org.apache.click.servlet
Mock implementation of ServletConfig.
MockServletConfig() - Constructor for class org.apache.click.servlet.MockServletConfig
Create a new MockServletConfig instance.
MockServletConfig(String) - Constructor for class org.apache.click.servlet.MockServletConfig
Create a new MockServletConfig instance with the specified servletName.
MockServletConfig(ServletContext) - Constructor for class org.apache.click.servlet.MockServletConfig
Create a new MockServletConfig instance with the specified servletContext.
MockServletConfig(String, ServletContext) - Constructor for class org.apache.click.servlet.MockServletConfig
Create a new MockServletConfig instance with the specified servletName and servletContext.
MockServletConfig(String, ServletContext, Map<String, String>) - Constructor for class org.apache.click.servlet.MockServletConfig
Create a new MockServletConfig instance with the specified servletName, servletContext and initialization parameters.
MockServletContext - Class in org.apache.click.servlet
Mock implementation of ServletContext.
MockServletContext() - Constructor for class org.apache.click.servlet.MockServletContext
Default constructor for this mock object.
MockServletContext(String, String) - Constructor for class org.apache.click.servlet.MockServletContext
Create the mock object.
MockServletContext(String, String, String) - Constructor for class org.apache.click.servlet.MockServletContext
Create the mock object.
MockSession - Class in org.apache.click.servlet
Mock implementation of HttpSession.
MockSession() - Constructor for class org.apache.click.servlet.MockSession
Create a default MockSession.
MockSession(String) - Constructor for class org.apache.click.servlet.MockSession
Create a MockSession for the specified session identifier.
MockSession(ServletContext) - Constructor for class org.apache.click.servlet.MockSession
Create a MockSession for the specified servletContext.
MockSession(String, ServletContext) - Constructor for class org.apache.click.servlet.MockSession
Create a MockSession for the specified id and servletContext.

O

org.apache.click - package org.apache.click
Provides a mock package for Click, enabling unit testing of Pages and Controls.
org.apache.click.servlet - package org.apache.click.servlet
Provides mock implementations of the Servlet API interfaces.

P

putValue(String, Object) - Method in class org.apache.click.servlet.MockSession
 

R

REMOTE_USER - Static variable in class org.apache.click.servlet.MockRequest
The REMOTE_USER header.
removeAttribute(String) - Method in class org.apache.click.servlet.MockRequest
Remove the given attribute.
removeAttribute(String) - Method in class org.apache.click.servlet.MockServletContext
Remove an attribute with the given name.
removeAttribute(String) - Method in class org.apache.click.servlet.MockSession
 
removeParameter(String) - Method in class org.apache.click.servlet.MockRequest
Remove the specified parameter.
removeValue(String) - Method in class org.apache.click.servlet.MockSession
 
reset() - Method in class org.apache.click.MockContext
Reset mock internal state.
reset() - Method in class org.apache.click.servlet.MockRequest
Delegate to initialize method.
reset() - Method in class org.apache.click.servlet.MockResponse
Delegate to initialise method.
resetBuffer() - Method in class org.apache.click.servlet.MockResponse
Clears the buffer.

S

sendError(int) - Method in class org.apache.click.servlet.MockResponse
Send an error code.
sendError(int, String) - Method in class org.apache.click.servlet.MockResponse
Send an error code.
sendRedirect(String) - Method in class org.apache.click.servlet.MockResponse
Indicate sending of a redirectUrl to a particular named resource.
setAttribute(String, Object) - Method in class org.apache.click.MockContainer
Convenience method for setting the MockRequest attribute.
setAttribute(String, Object) - Method in class org.apache.click.servlet.MockRequest
Set the given attribute.
setAttribute(String, Object) - Method in class org.apache.click.servlet.MockServletContext
Set an attribute.
setAttribute(String, Object) - Method in class org.apache.click.servlet.MockSession
 
setAuthType(String) - Method in class org.apache.click.servlet.MockRequest
Set the auth type.
setBufferSize(int) - Method in class org.apache.click.servlet.MockResponse
Method ignored.
setCharacterEncoding(String) - Method in class org.apache.click.servlet.MockRequest
Set the character encoding.
setCharacterEncoding(String) - Method in class org.apache.click.servlet.MockResponse
Set the character encoding.
setClickServlet(ClickServlet) - Method in class org.apache.click.MockContainer
Set the container ClickServlet.
setContentLength(int) - Method in class org.apache.click.servlet.MockResponse
Set the content length.
setContentType(String) - Method in class org.apache.click.servlet.MockResponse
Set the content type.
setContextPath(String) - Method in class org.apache.click.servlet.MockRequest
Set the portion of the request URI that indicates the context of the request.
setContextPath(String) - Method in class org.apache.click.servlet.MockServletContext
Sets the servlet context path.
setCookies(Cookie[]) - Method in class org.apache.click.servlet.MockRequest
Set the cookies.
setDateHeader(String, long) - Method in class org.apache.click.servlet.MockResponse
Set a date header.
setHeader(String, String) - Method in class org.apache.click.servlet.MockRequest
Set request header value.
setHeader(String, String...) - Method in class org.apache.click.servlet.MockRequest
Set request header values.
setHeader(String, String) - Method in class org.apache.click.servlet.MockResponse
Set the given header value.
setHttpSession(HttpSession) - Method in class org.apache.click.servlet.MockRequest
Set the request's session instance.
setId(String) - Method in class org.apache.click.servlet.MockSession
Sets session unique identifier.
setIntHeader(String, int) - Method in class org.apache.click.servlet.MockResponse
Set an int header value.
setLocale(Locale) - Method in class org.apache.click.servlet.MockResponse
Set the locale in the response header.
setMaxInactiveInterval(int) - Method in class org.apache.click.servlet.MockSession
 
setMethod(String) - Method in class org.apache.click.servlet.MockRequest
Set the method.
setName(String) - Method in class org.apache.click.servlet.MockPrincipal
Set the name of this principal.
setParameter(String, String) - Method in class org.apache.click.MockContainer
Convenience method for setting the MockRequest parameter.
setParameter(String, String[]) - Method in class org.apache.click.MockContainer
Convenience method for setting multi-valued MockRequest parameters.
setParameter(String, File, String) - Method in class org.apache.click.MockContainer
Convenience method for setting files to be uploaded.
setParameter(String, String) - Method in class org.apache.click.servlet.MockRequest
Set a parameter.
setParameter(String, String[]) - Method in class org.apache.click.servlet.MockRequest
Set the specified parameter name to the array of strings.
setParameters(Map<String, Object>) - Method in class org.apache.click.servlet.MockRequest
Sets a map of parameters.
setPathInfo(String) - Method in class org.apache.click.servlet.MockRequest
Set the path that this request is supposed to be serving.
setRequest(MockRequest) - Method in class org.apache.click.MockContainer
Set the container MockRequest.
setResponse(MockResponse) - Method in class org.apache.click.MockContainer
Set the container MockResponse.
setRoles(Set<String>) - Method in class org.apache.click.servlet.MockPrincipal
Sets the roles of this principal.
setScheme(String) - Method in class org.apache.click.servlet.MockRequest
Set the request's scheme, for example http, https, or ftp.
setServerName(String) - Method in class org.apache.click.servlet.MockRequest
Sets the host server name to which the request was sent.
setServerPort(int) - Method in class org.apache.click.servlet.MockRequest
Set the port number to which the request was sent.
setServletConfig(MockServletConfig) - Method in class org.apache.click.MockContainer
Set the container MockServletConfig.
setServletContext(MockServletContext) - Method in class org.apache.click.MockContainer
Set the container MockServletContext.
setServletContext(ServletContext) - Method in class org.apache.click.servlet.MockRequest
Set the request's servletContext instance.
setServletContext(ServletContext) - Method in class org.apache.click.servlet.MockServletConfig
Set the servlet context instance.
setServletContext(ServletContext) - Method in class org.apache.click.servlet.MockSession
Sets the servletContext to which the session belong.
setServletContextName(String) - Method in class org.apache.click.servlet.MockServletContext
Set the servlet context name to the specified value.
setServletName(String) - Method in class org.apache.click.servlet.MockServletConfig
Set the servlet name.
setServletPath(String) - Method in class org.apache.click.servlet.MockRequest
Set the string containing the name or path of the servlet being called.
setSession(MockSession) - Method in class org.apache.click.MockContainer
Set the container MockSession.
setSession(HttpSession) - Method in class org.apache.click.servlet.MockRequest
Set the current HttpSession associated with this request.
setStatus(int) - Method in class org.apache.click.servlet.MockResponse
Set the status for this response.
setStatus(int, String) - Method in class org.apache.click.servlet.MockResponse
Deprecated.  
setTempPath(String) - Method in class org.apache.click.servlet.MockServletContext
Set the temporary path where files are stored during test runs.
setUseMultiPartContentType(boolean) - Method in class org.apache.click.servlet.MockRequest
True will force Request to generate multiPart ContentType and ContentLength.
setUserPrincipal(Principal) - Method in class org.apache.click.servlet.MockRequest
Set the user principal.
setWebappPath(String) - Method in class org.apache.click.servlet.MockServletContext
Sets the mock web application path to the specified webappPath.
start() - Method in class org.apache.click.MockContainer
Starts the container and configure it for testing Page instances.
stop() - Method in class org.apache.click.MockContainer
Stops the container.

T

testPage(Class<T>, Map<?, ?>) - Method in class org.apache.click.MockContainer
This method simulates a browser requesting (GET) or submitting (POST) the url associated with the specified pageClass and parameters.
testPage(Class<T>) - Method in class org.apache.click.MockContainer
This method simulates a browser requesting (GET) or submitting (POST) the url associated with the specified pageClass and request parameters.
testPage(String) - Method in class org.apache.click.MockContainer
This method simulates a browser requesting (GET) or submitting (POST) the specified path.
testPage(String, Map<?, ?>) - Method in class org.apache.click.MockContainer
This method simulates a browser requesting (GET) or submitting (POST) the specified path and request parameters.
toString() - Method in class org.apache.click.servlet.MockRequest
Returns the String representation of the mock request.
toString() - Method in class org.apache.click.servlet.MockSession
Return a string representation of the session.

A C D E F G H I L M O P R S T