mirror of
https://github.com/apache/struts.git
synced 2026-08-06 23:27:07 +00:00
make newly added methods protected to allow users to override them
See also WW-4921, WW-3442
This commit is contained in:
@@ -168,14 +168,14 @@ public abstract class StrutsJUnit4TestCase<T> extends XWorkJUnit4TestCase {
|
||||
return proxy;
|
||||
}
|
||||
|
||||
private void initActionContext(ActionContext actionContext) {
|
||||
protected void initActionContext(ActionContext actionContext) {
|
||||
actionContext.setParameters(HttpParameters.create(request.getParameterMap()).build());
|
||||
initSession(actionContext);
|
||||
// set the action context to the one used by the proxy
|
||||
ActionContext.setContext(actionContext);
|
||||
}
|
||||
|
||||
private void initSession(ActionContext actionContext) {
|
||||
protected void initSession(ActionContext actionContext) {
|
||||
if (actionContext.getSession() == null) {
|
||||
actionContext.setSession(new HashMap<String, Object>());
|
||||
request.setSession(new MockHttpSession(servletContext));
|
||||
|
||||
Reference in New Issue
Block a user