public class StrutsRestTestCase<T> extends StrutsJUnit4TestCase<T>
dispatcher, dispatcherInitParams, pageContext, request, resourceLoader, response, servletContextactionProxyFactory, configuration, configurationManager, container| Constructor and Description |
|---|
StrutsRestTestCase() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
executeAction(String uri)
Executes an action and returns it's output (not the result returned from
execute()), but the actual output that would be written to the response.
|
protected String |
executeAction(String httpMethod,
String uri)
Executes an action and returns it's output (not the result returned from
execute()), but the actual output that would be written to the response.
|
protected ActionProxy |
getActionProxy(String uri)
Creates an action proxy for a request, and sets parameters of the ActionInvocation to the passed
parameters.
|
protected ActionProxy |
getActionProxy(String httpMethod,
String uri)
Creates an action proxy for a request, and sets parameters of the ActionInvocation to the passed
parameters.
|
protected void |
initServletMockObjects() |
containsErrors, findValueAfterExecute, finishExecution, getAction, getActionMapping, getActionMapping, getConfigPath, initActionContext, initDispatcher, initDispatcherParams, initSession, injectStrutsDependencies, setUp, setupBeforeInitDispatcher, tearDownloadButAdd, loadButAdd, loadConfigurationProvidersprotected String executeAction(String uri) throws javax.servlet.ServletException, UnsupportedEncodingException
executeAction in class StrutsJUnit4TestCase<T>uri - action uri to testjavax.servlet.ServletException - in case of servlet errorsUnsupportedEncodingException - in case of unsupported encodingprotected String executeAction(String httpMethod, String uri) throws javax.servlet.ServletException, UnsupportedEncodingException
httpMethod - HTTP method of request like GET, POST, PUT or DELETEuri - action uri to testjavax.servlet.ServletException - in case of servlet errorsUnsupportedEncodingException - in case of unsupported encodingprotected ActionProxy getActionProxy(String uri)
getActionProxy in class StrutsJUnit4TestCase<T>uri - request uri to testprotected ActionProxy getActionProxy(String httpMethod, String uri)
httpMethod - HTTP method of request like GET, POST, PUT or DELETEuri - request uri to testprotected void initServletMockObjects()
initServletMockObjects in class StrutsJUnit4TestCase<T>Copyright © 2000–2019 Apache Software Foundation. All rights reserved.