Skip to content

Commit

Permalink
WW-5353 One more test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kusalk committed Apr 20, 2024
1 parent 9f9a0e3 commit 0d614a7
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
import com.opensymphony.xwork2.ActionProxyFactory;
import com.opensymphony.xwork2.XWorkTestCase;
import com.opensymphony.xwork2.config.Configuration;
import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.dispatcher.Dispatcher;
import org.apache.struts2.dispatcher.HttpParameters;
Expand All @@ -36,13 +39,12 @@
import org.springframework.mock.web.MockPageContext;
import org.springframework.mock.web.MockServletContext;

import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import java.io.UnsupportedEncodingException;
import java.util.HashMap;
import java.util.Map;

import static java.util.Collections.emptyMap;

/**
* Base test case for JUnit testing Struts.
*/
Expand All @@ -51,7 +53,7 @@ public abstract class StrutsTestCase extends XWorkTestCase {
protected MockHttpServletRequest request;
protected MockPageContext pageContext;
protected MockServletContext servletContext;
protected Map<String, String> dispatcherInitParams;
protected Map<String, String> dispatcherInitParams = emptyMap();
protected Dispatcher dispatcher;

protected DefaultResourceLoader resourceLoader = new DefaultResourceLoader();
Expand Down

0 comments on commit 0d614a7

Please sign in to comment.