diff --git a/core/src/test/java/org/apache/struts2/util/StrutsUtilTest.java b/core/src/test/java/org/apache/struts2/util/StrutsUtilTest.java index f6a0debe92..de1ce844d7 100644 --- a/core/src/test/java/org/apache/struts2/util/StrutsUtilTest.java +++ b/core/src/test/java/org/apache/struts2/util/StrutsUtilTest.java @@ -268,7 +268,7 @@ protected void tearDown() throws Exception { // === internal class to assist in testing - static class InternalMockHttpServletRequest extends MockHttpServletRequest { + protected static class InternalMockHttpServletRequest extends MockHttpServletRequest { InternalMockRequestDispatcher dispatcher = null; public RequestDispatcher getRequestDispatcher(String path) { dispatcher = new InternalMockRequestDispatcher(path); @@ -280,8 +280,8 @@ public InternalMockRequestDispatcher getDispatcher() { } } - static class InternalMockRequestDispatcher extends MockRequestDispatcher { - private String url; + protected static class InternalMockRequestDispatcher extends MockRequestDispatcher { + private final String url; boolean included = false; public InternalMockRequestDispatcher(String url) { super(url);