Uses of Class
com.avoka.tm.test.MockRequest
Package
Description
Provides web automated test services.
Provides Unit Testing support classes.
-
Uses of MockRequest in com.avoka.fc.core.service.test
Modifier and TypeMethodDescriptionMockEntityService.createRequest
(Submission submission) Create a mock request for the given submission object. -
Uses of MockRequest in com.avoka.tm.test
Modifier and TypeMethodDescriptionAdd a new cookie.Add a header to the request.MockRequest.removeParameter
(String name) Remove the specified parameter.MockRequest.setContentType
(String contentType) Set the request content type.MockRequest.setContextPath
(String contextPath) Set the portion of the request URI that indicates the context of the request.Set request header value.Set request header values.MockRequest.setHttpSession
(HttpSession session) Set the request's session instance.Set the method.MockRequest.setParameter
(String name, String value) Set a parameter.MockRequest.setParameter
(String name, String[] values) Set the specified parameter name to the array of strings.MockRequest.setParameters
(Map<String, Object> parameters) Sets a map of parameters.MockRequest.setPathInfo
(String path) Set the path that this request is supposed to be serving.Set the request's scheme, for example http, https, or ftp.MockRequest.setServerName
(String serverName) Sets the host server name to which the request was sent.MockRequest.setServerPort
(int serverPort) Set the port number to which the request was sent.MockRequest.setServletContext
(ServletContext servletContext) Set the request's servletContext instance.MockRequest.setServletPath
(String servletPath) Set the string containing the name or path of the servlet being called.MockRequest.setSession
(HttpSession session) Set the current HttpSession associated with this request.MockRequest.setUseMultiPartContentType
(boolean useMultiPartContentType) True will force Request to generate multiPart ContentType and ContentLength.MockRequest.setUserPrincipal
(Principal userPrincipal) Set the user principal.