ALLOWLIST_REQUIRED_PACKAGES = Set.of(
- "com.opensymphony.xwork2.validator.validators",
+ "org.apache.struts2.validator.validators",
"org.apache.struts2.components",
"org.apache.struts2.views.jsp"
);
diff --git a/core/src/main/java/org/apache/struts2/ognl/StrutsOgnlGuard.java b/core/src/main/java/org/apache/struts2/ognl/StrutsOgnlGuard.java
index 0cb4d1d930..f46246d3b9 100644
--- a/core/src/main/java/org/apache/struts2/ognl/StrutsOgnlGuard.java
+++ b/core/src/main/java/org/apache/struts2/ognl/StrutsOgnlGuard.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts2.ognl;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.inject.Inject;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.inject.Inject;
import ognl.Node;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@@ -28,7 +28,7 @@
import java.util.HashSet;
import java.util.Set;
-import static com.opensymphony.xwork2.util.TextParseUtil.commaDelimitedStringToSet;
+import static org.apache.struts2.util.TextParseUtil.commaDelimitedStringToSet;
import static java.util.Collections.emptySet;
import static java.util.Collections.unmodifiableSet;
diff --git a/core/src/main/java/com/opensymphony/xwork2/ognl/XWorkTypeConverterWrapper.java b/core/src/main/java/org/apache/struts2/ognl/XWorkTypeConverterWrapper.java
similarity index 93%
rename from core/src/main/java/com/opensymphony/xwork2/ognl/XWorkTypeConverterWrapper.java
rename to core/src/main/java/org/apache/struts2/ognl/XWorkTypeConverterWrapper.java
index e3abca8013..21eef09e72 100644
--- a/core/src/main/java/com/opensymphony/xwork2/ognl/XWorkTypeConverterWrapper.java
+++ b/core/src/main/java/org/apache/struts2/ognl/XWorkTypeConverterWrapper.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.ognl;
+package org.apache.struts2.ognl;
-import com.opensymphony.xwork2.conversion.TypeConverter;
+import org.apache.struts2.conversion.TypeConverter;
import java.lang.reflect.Member;
import java.util.Map;
diff --git a/core/src/main/java/com/opensymphony/xwork2/ognl/accessor/CompoundRootAccessor.java b/core/src/main/java/org/apache/struts2/ognl/accessor/CompoundRootAccessor.java
similarity index 98%
rename from core/src/main/java/com/opensymphony/xwork2/ognl/accessor/CompoundRootAccessor.java
rename to core/src/main/java/org/apache/struts2/ognl/accessor/CompoundRootAccessor.java
index 2f9333069c..b40ff02193 100644
--- a/core/src/main/java/com/opensymphony/xwork2/ognl/accessor/CompoundRootAccessor.java
+++ b/core/src/main/java/org/apache/struts2/ognl/accessor/CompoundRootAccessor.java
@@ -16,12 +16,12 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.ognl.accessor;
+package org.apache.struts2.ognl.accessor;
-import com.opensymphony.xwork2.inject.Inject;
-import com.opensymphony.xwork2.ognl.OgnlValueStack;
-import com.opensymphony.xwork2.util.CompoundRoot;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.inject.Inject;
+import org.apache.struts2.ognl.OgnlValueStack;
+import org.apache.struts2.util.CompoundRoot;
+import org.apache.struts2.util.ValueStack;
import ognl.MethodFailedException;
import ognl.NoSuchPropertyException;
import ognl.Ognl;
diff --git a/core/src/main/java/com/opensymphony/xwork2/ognl/accessor/HttpParametersPropertyAccessor.java b/core/src/main/java/org/apache/struts2/ognl/accessor/HttpParametersPropertyAccessor.java
similarity index 94%
rename from core/src/main/java/com/opensymphony/xwork2/ognl/accessor/HttpParametersPropertyAccessor.java
rename to core/src/main/java/org/apache/struts2/ognl/accessor/HttpParametersPropertyAccessor.java
index 40fe62a0bb..6f1216b8cd 100644
--- a/core/src/main/java/com/opensymphony/xwork2/ognl/accessor/HttpParametersPropertyAccessor.java
+++ b/core/src/main/java/org/apache/struts2/ognl/accessor/HttpParametersPropertyAccessor.java
@@ -16,12 +16,11 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.ognl.accessor;
+package org.apache.struts2.ognl.accessor;
import ognl.ObjectPropertyAccessor;
import ognl.OgnlException;
import org.apache.struts2.dispatcher.HttpParameters;
-import org.apache.struts2.dispatcher.Parameter;
import java.util.Map;
diff --git a/core/src/main/java/com/opensymphony/xwork2/ognl/accessor/ObjectAccessor.java b/core/src/main/java/org/apache/struts2/ognl/accessor/ObjectAccessor.java
similarity index 86%
rename from core/src/main/java/com/opensymphony/xwork2/ognl/accessor/ObjectAccessor.java
rename to core/src/main/java/org/apache/struts2/ognl/accessor/ObjectAccessor.java
index 2edf89f296..a8cabd7e10 100644
--- a/core/src/main/java/com/opensymphony/xwork2/ognl/accessor/ObjectAccessor.java
+++ b/core/src/main/java/org/apache/struts2/ognl/accessor/ObjectAccessor.java
@@ -16,11 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.ognl.accessor;
+package org.apache.struts2.ognl.accessor;
-import com.opensymphony.xwork2.conversion.impl.XWorkConverter;
-import com.opensymphony.xwork2.ognl.OgnlValueStack;
-import com.opensymphony.xwork2.util.reflection.ReflectionContextState;
+import org.apache.struts2.conversion.impl.XWorkConverter;
+import org.apache.struts2.util.reflection.ReflectionContextState;
import ognl.ObjectPropertyAccessor;
import ognl.OgnlException;
diff --git a/core/src/main/java/com/opensymphony/xwork2/ognl/accessor/ObjectProxyPropertyAccessor.java b/core/src/main/java/org/apache/struts2/ognl/accessor/ObjectProxyPropertyAccessor.java
similarity index 94%
rename from core/src/main/java/com/opensymphony/xwork2/ognl/accessor/ObjectProxyPropertyAccessor.java
rename to core/src/main/java/org/apache/struts2/ognl/accessor/ObjectProxyPropertyAccessor.java
index 5f5ccb7994..e57c55a84d 100644
--- a/core/src/main/java/com/opensymphony/xwork2/ognl/accessor/ObjectProxyPropertyAccessor.java
+++ b/core/src/main/java/org/apache/struts2/ognl/accessor/ObjectProxyPropertyAccessor.java
@@ -16,10 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.ognl.accessor;
+package org.apache.struts2.ognl.accessor;
-import com.opensymphony.xwork2.ognl.ObjectProxy;
-import com.opensymphony.xwork2.util.reflection.ReflectionContextState;
+import org.apache.struts2.ognl.ObjectProxy;
+import org.apache.struts2.util.reflection.ReflectionContextState;
import ognl.OgnlContext;
import ognl.OgnlException;
import ognl.OgnlRuntime;
diff --git a/core/src/main/java/com/opensymphony/xwork2/ognl/accessor/ParameterPropertyAccessor.java b/core/src/main/java/org/apache/struts2/ognl/accessor/ParameterPropertyAccessor.java
similarity index 97%
rename from core/src/main/java/com/opensymphony/xwork2/ognl/accessor/ParameterPropertyAccessor.java
rename to core/src/main/java/org/apache/struts2/ognl/accessor/ParameterPropertyAccessor.java
index 659b709833..f7e4fb102c 100644
--- a/core/src/main/java/com/opensymphony/xwork2/ognl/accessor/ParameterPropertyAccessor.java
+++ b/core/src/main/java/org/apache/struts2/ognl/accessor/ParameterPropertyAccessor.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.ognl.accessor;
+package org.apache.struts2.ognl.accessor;
import ognl.ObjectPropertyAccessor;
import ognl.OgnlException;
diff --git a/core/src/main/java/com/opensymphony/xwork2/ognl/accessor/RootAccessor.java b/core/src/main/java/org/apache/struts2/ognl/accessor/RootAccessor.java
similarity index 95%
rename from core/src/main/java/com/opensymphony/xwork2/ognl/accessor/RootAccessor.java
rename to core/src/main/java/org/apache/struts2/ognl/accessor/RootAccessor.java
index 481bf2f751..50e9feea00 100644
--- a/core/src/main/java/com/opensymphony/xwork2/ognl/accessor/RootAccessor.java
+++ b/core/src/main/java/org/apache/struts2/ognl/accessor/RootAccessor.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.ognl.accessor;
+package org.apache.struts2.ognl.accessor;
import ognl.ClassResolver;
import ognl.MethodAccessor;
diff --git a/core/src/main/java/com/opensymphony/xwork2/ognl/accessor/XWorkCollectionPropertyAccessor.java b/core/src/main/java/org/apache/struts2/ognl/accessor/XWorkCollectionPropertyAccessor.java
similarity index 96%
rename from core/src/main/java/com/opensymphony/xwork2/ognl/accessor/XWorkCollectionPropertyAccessor.java
rename to core/src/main/java/org/apache/struts2/ognl/accessor/XWorkCollectionPropertyAccessor.java
index 2d3581e143..d416785a5d 100644
--- a/core/src/main/java/com/opensymphony/xwork2/ognl/accessor/XWorkCollectionPropertyAccessor.java
+++ b/core/src/main/java/org/apache/struts2/ognl/accessor/XWorkCollectionPropertyAccessor.java
@@ -16,14 +16,14 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.ognl.accessor;
-
-import com.opensymphony.xwork2.ObjectFactory;
-import com.opensymphony.xwork2.conversion.ObjectTypeDeterminer;
-import com.opensymphony.xwork2.conversion.impl.XWorkConverter;
-import com.opensymphony.xwork2.inject.Inject;
-import com.opensymphony.xwork2.ognl.OgnlUtil;
-import com.opensymphony.xwork2.util.reflection.ReflectionContextState;
+package org.apache.struts2.ognl.accessor;
+
+import org.apache.struts2.ObjectFactory;
+import org.apache.struts2.conversion.ObjectTypeDeterminer;
+import org.apache.struts2.conversion.impl.XWorkConverter;
+import org.apache.struts2.inject.Inject;
+import org.apache.struts2.ognl.OgnlUtil;
+import org.apache.struts2.util.reflection.ReflectionContextState;
import ognl.ObjectPropertyAccessor;
import ognl.OgnlException;
import ognl.OgnlRuntime;
diff --git a/core/src/main/java/com/opensymphony/xwork2/ognl/accessor/XWorkEnumerationAccessor.java b/core/src/main/java/org/apache/struts2/ognl/accessor/XWorkEnumerationAccessor.java
similarity index 96%
rename from core/src/main/java/com/opensymphony/xwork2/ognl/accessor/XWorkEnumerationAccessor.java
rename to core/src/main/java/org/apache/struts2/ognl/accessor/XWorkEnumerationAccessor.java
index d0d713aa30..cad0c7cd88 100644
--- a/core/src/main/java/com/opensymphony/xwork2/ognl/accessor/XWorkEnumerationAccessor.java
+++ b/core/src/main/java/org/apache/struts2/ognl/accessor/XWorkEnumerationAccessor.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.ognl.accessor;
+package org.apache.struts2.ognl.accessor;
import ognl.EnumerationPropertyAccessor;
import ognl.ObjectPropertyAccessor;
diff --git a/core/src/main/java/com/opensymphony/xwork2/ognl/accessor/XWorkIteratorPropertyAccessor.java b/core/src/main/java/org/apache/struts2/ognl/accessor/XWorkIteratorPropertyAccessor.java
similarity index 96%
rename from core/src/main/java/com/opensymphony/xwork2/ognl/accessor/XWorkIteratorPropertyAccessor.java
rename to core/src/main/java/org/apache/struts2/ognl/accessor/XWorkIteratorPropertyAccessor.java
index 89796080c5..acd7c52d21 100644
--- a/core/src/main/java/com/opensymphony/xwork2/ognl/accessor/XWorkIteratorPropertyAccessor.java
+++ b/core/src/main/java/org/apache/struts2/ognl/accessor/XWorkIteratorPropertyAccessor.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.ognl.accessor;
+package org.apache.struts2.ognl.accessor;
import ognl.IteratorPropertyAccessor;
import ognl.ObjectPropertyAccessor;
diff --git a/core/src/main/java/com/opensymphony/xwork2/ognl/accessor/XWorkListPropertyAccessor.java b/core/src/main/java/org/apache/struts2/ognl/accessor/XWorkListPropertyAccessor.java
similarity index 94%
rename from core/src/main/java/com/opensymphony/xwork2/ognl/accessor/XWorkListPropertyAccessor.java
rename to core/src/main/java/org/apache/struts2/ognl/accessor/XWorkListPropertyAccessor.java
index 9bc0df14a3..1ec2a2d7c2 100644
--- a/core/src/main/java/com/opensymphony/xwork2/ognl/accessor/XWorkListPropertyAccessor.java
+++ b/core/src/main/java/org/apache/struts2/ognl/accessor/XWorkListPropertyAccessor.java
@@ -16,14 +16,14 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.ognl.accessor;
-
-import com.opensymphony.xwork2.ObjectFactory;
-import com.opensymphony.xwork2.conversion.ObjectTypeDeterminer;
-import com.opensymphony.xwork2.conversion.impl.XWorkConverter;
-import com.opensymphony.xwork2.inject.Inject;
-import com.opensymphony.xwork2.ognl.OgnlUtil;
-import com.opensymphony.xwork2.util.reflection.ReflectionContextState;
+package org.apache.struts2.ognl.accessor;
+
+import org.apache.struts2.ObjectFactory;
+import org.apache.struts2.conversion.ObjectTypeDeterminer;
+import org.apache.struts2.conversion.impl.XWorkConverter;
+import org.apache.struts2.inject.Inject;
+import org.apache.struts2.ognl.OgnlUtil;
+import org.apache.struts2.util.reflection.ReflectionContextState;
import ognl.ListPropertyAccessor;
import ognl.OgnlException;
import ognl.PropertyAccessor;
diff --git a/core/src/main/java/com/opensymphony/xwork2/ognl/accessor/XWorkMapPropertyAccessor.java b/core/src/main/java/org/apache/struts2/ognl/accessor/XWorkMapPropertyAccessor.java
similarity index 94%
rename from core/src/main/java/com/opensymphony/xwork2/ognl/accessor/XWorkMapPropertyAccessor.java
rename to core/src/main/java/org/apache/struts2/ognl/accessor/XWorkMapPropertyAccessor.java
index db8ec65491..6c1cf0419b 100644
--- a/core/src/main/java/com/opensymphony/xwork2/ognl/accessor/XWorkMapPropertyAccessor.java
+++ b/core/src/main/java/org/apache/struts2/ognl/accessor/XWorkMapPropertyAccessor.java
@@ -16,13 +16,13 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.ognl.accessor;
+package org.apache.struts2.ognl.accessor;
-import com.opensymphony.xwork2.ObjectFactory;
-import com.opensymphony.xwork2.conversion.ObjectTypeDeterminer;
-import com.opensymphony.xwork2.conversion.impl.XWorkConverter;
-import com.opensymphony.xwork2.inject.Inject;
-import com.opensymphony.xwork2.util.reflection.ReflectionContextState;
+import org.apache.struts2.ObjectFactory;
+import org.apache.struts2.conversion.ObjectTypeDeterminer;
+import org.apache.struts2.conversion.impl.XWorkConverter;
+import org.apache.struts2.inject.Inject;
+import org.apache.struts2.util.reflection.ReflectionContextState;
import ognl.MapPropertyAccessor;
import ognl.OgnlException;
import org.apache.logging.log4j.LogManager;
diff --git a/core/src/main/java/com/opensymphony/xwork2/ognl/accessor/XWorkMethodAccessor.java b/core/src/main/java/org/apache/struts2/ognl/accessor/XWorkMethodAccessor.java
similarity index 98%
rename from core/src/main/java/com/opensymphony/xwork2/ognl/accessor/XWorkMethodAccessor.java
rename to core/src/main/java/org/apache/struts2/ognl/accessor/XWorkMethodAccessor.java
index f6e51d4fc1..70730c4cad 100644
--- a/core/src/main/java/com/opensymphony/xwork2/ognl/accessor/XWorkMethodAccessor.java
+++ b/core/src/main/java/org/apache/struts2/ognl/accessor/XWorkMethodAccessor.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.ognl.accessor;
+package org.apache.struts2.ognl.accessor;
-import com.opensymphony.xwork2.util.reflection.ReflectionContextState;
+import org.apache.struts2.util.reflection.ReflectionContextState;
import ognl.MethodFailedException;
import ognl.ObjectMethodAccessor;
import ognl.OgnlContext;
diff --git a/core/src/main/java/com/opensymphony/xwork2/ognl/accessor/XWorkObjectPropertyAccessor.java b/core/src/main/java/org/apache/struts2/ognl/accessor/XWorkObjectPropertyAccessor.java
similarity index 89%
rename from core/src/main/java/com/opensymphony/xwork2/ognl/accessor/XWorkObjectPropertyAccessor.java
rename to core/src/main/java/org/apache/struts2/ognl/accessor/XWorkObjectPropertyAccessor.java
index e719b1e4e6..0d364bf540 100644
--- a/core/src/main/java/com/opensymphony/xwork2/ognl/accessor/XWorkObjectPropertyAccessor.java
+++ b/core/src/main/java/org/apache/struts2/ognl/accessor/XWorkObjectPropertyAccessor.java
@@ -16,10 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.ognl.accessor;
+package org.apache.struts2.ognl.accessor;
-import com.opensymphony.xwork2.conversion.impl.XWorkConverter;
-import com.opensymphony.xwork2.util.reflection.ReflectionContextState;
+import org.apache.struts2.conversion.impl.XWorkConverter;
+import org.apache.struts2.util.reflection.ReflectionContextState;
import ognl.ObjectPropertyAccessor;
import ognl.OgnlException;
diff --git a/core/src/main/java/com/opensymphony/xwork2/package.html b/core/src/main/java/org/apache/struts2/package.html
similarity index 100%
rename from core/src/main/java/com/opensymphony/xwork2/package.html
rename to core/src/main/java/org/apache/struts2/package.html
diff --git a/core/src/main/java/org/apache/struts2/result/HttpHeaderResult.java b/core/src/main/java/org/apache/struts2/result/HttpHeaderResult.java
index 4251ec3dc6..4895bbc908 100644
--- a/core/src/main/java/org/apache/struts2/result/HttpHeaderResult.java
+++ b/core/src/main/java/org/apache/struts2/result/HttpHeaderResult.java
@@ -18,10 +18,10 @@
*/
package org.apache.struts2.result;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.Result;
-import com.opensymphony.xwork2.util.TextParseUtil;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.Result;
+import org.apache.struts2.util.TextParseUtil;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
diff --git a/core/src/main/java/com/opensymphony/xwork2/result/ParamNameAwareResult.java b/core/src/main/java/org/apache/struts2/result/ParamNameAwareResult.java
similarity index 88%
rename from core/src/main/java/com/opensymphony/xwork2/result/ParamNameAwareResult.java
rename to core/src/main/java/org/apache/struts2/result/ParamNameAwareResult.java
index 0b80312d06..d3438e6dfa 100644
--- a/core/src/main/java/com/opensymphony/xwork2/result/ParamNameAwareResult.java
+++ b/core/src/main/java/org/apache/struts2/result/ParamNameAwareResult.java
@@ -16,10 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.result;
+package org.apache.struts2.result;
/**
- * Accept parameter name/value to be set on {@link com.opensymphony.xwork2.Result}
+ * Accept parameter name/value to be set on {@link org.apache.struts2.Result}
*/
public interface ParamNameAwareResult {
diff --git a/core/src/main/java/org/apache/struts2/result/PlainResult.java b/core/src/main/java/org/apache/struts2/result/PlainResult.java
index fba2cc2e7c..160e97ba83 100644
--- a/core/src/main/java/org/apache/struts2/result/PlainResult.java
+++ b/core/src/main/java/org/apache/struts2/result/PlainResult.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts2.result;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.Result;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.Result;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.message.ParameterizedMessage;
diff --git a/core/src/main/java/org/apache/struts2/result/PlainTextResult.java b/core/src/main/java/org/apache/struts2/result/PlainTextResult.java
index d15d46bdf5..30d1500a55 100644
--- a/core/src/main/java/org/apache/struts2/result/PlainTextResult.java
+++ b/core/src/main/java/org/apache/struts2/result/PlainTextResult.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.result;
-import com.opensymphony.xwork2.ActionInvocation;
+import org.apache.struts2.ActionInvocation;
import jakarta.servlet.ServletContext;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.logging.log4j.LogManager;
@@ -92,9 +92,6 @@ public void setCharSet(String charSet) {
this.charSet = charSet;
}
- /* (non-Javadoc)
- * @see org.apache.struts2.result.StrutsResultSupport#doExecute(java.lang.String, com.opensymphony.xwork2.ActionInvocation)
- */
protected void doExecute(String finalLocation, ActionInvocation invocation) throws Exception {
// verify charset
Charset charset = readCharset();
diff --git a/core/src/main/java/org/apache/struts2/result/PostbackResult.java b/core/src/main/java/org/apache/struts2/result/PostbackResult.java
index 44f9abf383..f46f7c52c3 100644
--- a/core/src/main/java/org/apache/struts2/result/PostbackResult.java
+++ b/core/src/main/java/org/apache/struts2/result/PostbackResult.java
@@ -18,9 +18,9 @@
*/
package org.apache.struts2.result;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.inject.Inject;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.inject.Inject;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.dispatcher.mapper.ActionMapper;
diff --git a/core/src/main/java/org/apache/struts2/result/ServletActionRedirectResult.java b/core/src/main/java/org/apache/struts2/result/ServletActionRedirectResult.java
index e20ba8342d..5de96b1308 100644
--- a/core/src/main/java/org/apache/struts2/result/ServletActionRedirectResult.java
+++ b/core/src/main/java/org/apache/struts2/result/ServletActionRedirectResult.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts2.result;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.util.reflection.ReflectionExceptionHandler;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.util.reflection.ReflectionExceptionHandler;
import org.apache.struts2.dispatcher.mapper.ActionMapper;
import org.apache.struts2.dispatcher.mapper.ActionMapping;
@@ -156,7 +156,7 @@ public ServletActionRedirectResult(String namespace, String actionName, String m
}
/**
- * @see com.opensymphony.xwork2.Result#execute(com.opensymphony.xwork2.ActionInvocation)
+ * @see org.apache.struts2.Result#execute(org.apache.struts2.ActionInvocation)
*/
public void execute(ActionInvocation invocation) throws Exception {
if (invocation == null) {
diff --git a/core/src/main/java/org/apache/struts2/result/ServletDispatcherResult.java b/core/src/main/java/org/apache/struts2/result/ServletDispatcherResult.java
index df0896cf41..d50ebadf57 100644
--- a/core/src/main/java/org/apache/struts2/result/ServletDispatcherResult.java
+++ b/core/src/main/java/org/apache/struts2/result/ServletDispatcherResult.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts2.result;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.inject.Inject;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.inject.Inject;
import jakarta.servlet.RequestDispatcher;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
diff --git a/core/src/main/java/org/apache/struts2/result/ServletRedirectResult.java b/core/src/main/java/org/apache/struts2/result/ServletRedirectResult.java
index cb050b8cde..7bc8ab616d 100644
--- a/core/src/main/java/org/apache/struts2/result/ServletRedirectResult.java
+++ b/core/src/main/java/org/apache/struts2/result/ServletRedirectResult.java
@@ -18,12 +18,12 @@
*/
package org.apache.struts2.result;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.config.entities.ResultConfig;
-import com.opensymphony.xwork2.inject.Inject;
-import com.opensymphony.xwork2.util.reflection.ReflectionException;
-import com.opensymphony.xwork2.util.reflection.ReflectionExceptionHandler;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.config.entities.ResultConfig;
+import org.apache.struts2.inject.Inject;
+import org.apache.struts2.util.reflection.ReflectionException;
+import org.apache.struts2.util.reflection.ReflectionExceptionHandler;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.logging.log4j.LogManager;
diff --git a/core/src/main/java/org/apache/struts2/result/StreamResult.java b/core/src/main/java/org/apache/struts2/result/StreamResult.java
index 3ee2b659e2..2a6611ec77 100644
--- a/core/src/main/java/org/apache/struts2/result/StreamResult.java
+++ b/core/src/main/java/org/apache/struts2/result/StreamResult.java
@@ -18,9 +18,9 @@
*/
package org.apache.struts2.result;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.inject.Inject;
-import com.opensymphony.xwork2.security.NotExcludedAcceptedPatternsChecker;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.inject.Inject;
+import org.apache.struts2.security.NotExcludedAcceptedPatternsChecker;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@@ -207,7 +207,7 @@ public void setInputName(String inputName) {
}
/**
- * @see StrutsResultSupport#doExecute(java.lang.String, com.opensymphony.xwork2.ActionInvocation)
+ * @see StrutsResultSupport#doExecute(java.lang.String, ActionInvocation)
*/
protected void doExecute(String finalLocation, ActionInvocation invocation) throws Exception {
LOG.debug("Find the Response in context");
diff --git a/core/src/main/java/org/apache/struts2/result/StrutsResultSupport.java b/core/src/main/java/org/apache/struts2/result/StrutsResultSupport.java
index d5307d2797..f37542877f 100644
--- a/core/src/main/java/org/apache/struts2/result/StrutsResultSupport.java
+++ b/core/src/main/java/org/apache/struts2/result/StrutsResultSupport.java
@@ -18,9 +18,9 @@
*/
package org.apache.struts2.result;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.Result;
-import com.opensymphony.xwork2.util.TextParseUtil;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.Result;
+import org.apache.struts2.util.TextParseUtil;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.struts2.StrutsStatics;
@@ -44,7 +44,7 @@
*
* - location - the location to go to after execution (could be a jsp page or another action).
* It can be parsed as per the rules definied in the
- * {@link TextParseUtil#translateVariables(java.lang.String, com.opensymphony.xwork2.util.ValueStack) translateVariables}
+ * {@link TextParseUtil#translateVariables(java.lang.String, org.apache.struts2.util.ValueStack) translateVariables}
* method
* - parse - true by default. If set to false, the location param will not be parsed for expressions
* - encode - false by default. If set to false, the location param will not be url encoded. This only have effect when parse is true
@@ -106,11 +106,11 @@
*
*
*
- * Please see the {@link com.opensymphony.xwork2.Result} class for more info on Results in general.
+ * Please see the {@link org.apache.struts2.Result} class for more info on Results in general.
*
*
*
- * @see com.opensymphony.xwork2.Result
+ * @see org.apache.struts2.Result
*/
public abstract class StrutsResultSupport implements Result, StrutsStatics {
@@ -154,7 +154,7 @@ public StrutsResultSupport(String location, boolean parse, boolean encode) {
public void setLocation(String location) {
this.location = location;
}
-
+
/**
* Gets the location it was created with, mainly for testing
*
@@ -216,7 +216,7 @@ public void execute(ActionInvocation invocation) throws Exception {
protected String conditionalParse(String param, ActionInvocation invocation) {
if (parse && param != null && invocation != null) {
return TextParseUtil.translateVariables(
- param,
+ param,
invocation.getStack(),
new EncodingParsedValueEvaluator());
} else {
@@ -228,7 +228,7 @@ protected String conditionalParse(String param, ActionInvocation invocation) {
* As {@link #conditionalParse(String, ActionInvocation)} but does not
* convert found object into String. If found object is a collection it is
* returned if found object is not a collection it is wrapped in one.
- *
+ *
* @param param parameter
* @param invocation action invocation
* @param excludeEmptyElements 'true' for excluding empty elements
@@ -237,7 +237,7 @@ protected String conditionalParse(String param, ActionInvocation invocation) {
protected Collection conditionalParseCollection(String param, ActionInvocation invocation, boolean excludeEmptyElements) {
if (parse && param != null && invocation != null) {
return TextParseUtil.translateVariablesCollection(
- param,
+ param,
invocation.getStack(),
excludeEmptyElements,
new EncodingParsedValueEvaluator());
@@ -249,9 +249,9 @@ protected Collection conditionalParseCollection(String param, ActionInvo
}
/**
- * {@link com.opensymphony.xwork2.util.TextParseUtil.ParsedValueEvaluator} to do URL encoding for found values. To be
+ * {@link org.apache.struts2.util.TextParseUtil.ParsedValueEvaluator} to do URL encoding for found values. To be
* used for single strings or collections.
- *
+ *
*/
private final class EncodingParsedValueEvaluator implements TextParseUtil.ParsedValueEvaluator {
public Object evaluate(String parsedValue) {
diff --git a/core/src/main/java/com/opensymphony/xwork2/security/AcceptedPatternsChecker.java b/core/src/main/java/org/apache/struts2/security/AcceptedPatternsChecker.java
similarity index 98%
rename from core/src/main/java/com/opensymphony/xwork2/security/AcceptedPatternsChecker.java
rename to core/src/main/java/org/apache/struts2/security/AcceptedPatternsChecker.java
index 4af56ff9e1..874c665570 100644
--- a/core/src/main/java/com/opensymphony/xwork2/security/AcceptedPatternsChecker.java
+++ b/core/src/main/java/org/apache/struts2/security/AcceptedPatternsChecker.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.security;
+package org.apache.struts2.security;
import java.util.Set;
import java.util.regex.Pattern;
diff --git a/core/src/main/java/com/opensymphony/xwork2/security/DefaultAcceptedPatternsChecker.java b/core/src/main/java/org/apache/struts2/security/DefaultAcceptedPatternsChecker.java
similarity index 97%
rename from core/src/main/java/com/opensymphony/xwork2/security/DefaultAcceptedPatternsChecker.java
rename to core/src/main/java/org/apache/struts2/security/DefaultAcceptedPatternsChecker.java
index 82cc4af877..f6e2ad4870 100644
--- a/core/src/main/java/com/opensymphony/xwork2/security/DefaultAcceptedPatternsChecker.java
+++ b/core/src/main/java/org/apache/struts2/security/DefaultAcceptedPatternsChecker.java
@@ -16,10 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.security;
+package org.apache.struts2.security;
-import com.opensymphony.xwork2.inject.Inject;
-import com.opensymphony.xwork2.util.TextParseUtil;
+import org.apache.struts2.inject.Inject;
+import org.apache.struts2.util.TextParseUtil;
import org.apache.commons.lang3.BooleanUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
diff --git a/core/src/main/java/com/opensymphony/xwork2/security/DefaultExcludedPatternsChecker.java b/core/src/main/java/org/apache/struts2/security/DefaultExcludedPatternsChecker.java
similarity index 97%
rename from core/src/main/java/com/opensymphony/xwork2/security/DefaultExcludedPatternsChecker.java
rename to core/src/main/java/org/apache/struts2/security/DefaultExcludedPatternsChecker.java
index cf425d67cb..824d98c58a 100644
--- a/core/src/main/java/com/opensymphony/xwork2/security/DefaultExcludedPatternsChecker.java
+++ b/core/src/main/java/org/apache/struts2/security/DefaultExcludedPatternsChecker.java
@@ -16,10 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.security;
+package org.apache.struts2.security;
-import com.opensymphony.xwork2.inject.Inject;
-import com.opensymphony.xwork2.util.TextParseUtil;
+import org.apache.struts2.inject.Inject;
+import org.apache.struts2.util.TextParseUtil;
import org.apache.commons.lang3.BooleanUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
diff --git a/core/src/main/java/com/opensymphony/xwork2/security/DefaultNotExcludedAcceptedPatternsChecker.java b/core/src/main/java/org/apache/struts2/security/DefaultNotExcludedAcceptedPatternsChecker.java
similarity index 97%
rename from core/src/main/java/com/opensymphony/xwork2/security/DefaultNotExcludedAcceptedPatternsChecker.java
rename to core/src/main/java/org/apache/struts2/security/DefaultNotExcludedAcceptedPatternsChecker.java
index b475da1d06..f9e48237fe 100644
--- a/core/src/main/java/com/opensymphony/xwork2/security/DefaultNotExcludedAcceptedPatternsChecker.java
+++ b/core/src/main/java/org/apache/struts2/security/DefaultNotExcludedAcceptedPatternsChecker.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.security;
+package org.apache.struts2.security;
-import com.opensymphony.xwork2.inject.Inject;
+import org.apache.struts2.inject.Inject;
import java.util.Set;
import java.util.regex.Pattern;
diff --git a/core/src/main/java/com/opensymphony/xwork2/security/ExcludedPatternsChecker.java b/core/src/main/java/org/apache/struts2/security/ExcludedPatternsChecker.java
similarity index 98%
rename from core/src/main/java/com/opensymphony/xwork2/security/ExcludedPatternsChecker.java
rename to core/src/main/java/org/apache/struts2/security/ExcludedPatternsChecker.java
index 086c75d0b6..d44156c18a 100644
--- a/core/src/main/java/com/opensymphony/xwork2/security/ExcludedPatternsChecker.java
+++ b/core/src/main/java/org/apache/struts2/security/ExcludedPatternsChecker.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.security;
+package org.apache.struts2.security;
import java.util.Set;
import java.util.regex.Pattern;
diff --git a/core/src/main/java/com/opensymphony/xwork2/security/NotExcludedAcceptedPatternsChecker.java b/core/src/main/java/org/apache/struts2/security/NotExcludedAcceptedPatternsChecker.java
similarity index 98%
rename from core/src/main/java/com/opensymphony/xwork2/security/NotExcludedAcceptedPatternsChecker.java
rename to core/src/main/java/org/apache/struts2/security/NotExcludedAcceptedPatternsChecker.java
index 48cd22caea..e610484318 100644
--- a/core/src/main/java/com/opensymphony/xwork2/security/NotExcludedAcceptedPatternsChecker.java
+++ b/core/src/main/java/org/apache/struts2/security/NotExcludedAcceptedPatternsChecker.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.security;
+package org.apache.struts2.security;
/**
* Used across different places to check if given string is not excluded and is accepted
diff --git a/core/src/main/java/com/opensymphony/xwork2/test/StubConfigurationProvider.java b/core/src/main/java/org/apache/struts2/test/StubConfigurationProvider.java
similarity index 82%
rename from core/src/main/java/com/opensymphony/xwork2/test/StubConfigurationProvider.java
rename to core/src/main/java/org/apache/struts2/test/StubConfigurationProvider.java
index 73ef890dbe..47cd0c5b7c 100644
--- a/core/src/main/java/com/opensymphony/xwork2/test/StubConfigurationProvider.java
+++ b/core/src/main/java/org/apache/struts2/test/StubConfigurationProvider.java
@@ -16,13 +16,13 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.test;
+package org.apache.struts2.test;
-import com.opensymphony.xwork2.config.Configuration;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.config.ConfigurationProvider;
-import com.opensymphony.xwork2.inject.ContainerBuilder;
-import com.opensymphony.xwork2.util.location.LocatableProperties;
+import org.apache.struts2.config.Configuration;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.config.ConfigurationProvider;
+import org.apache.struts2.inject.ContainerBuilder;
+import org.apache.struts2.util.location.LocatableProperties;
public class StubConfigurationProvider implements ConfigurationProvider {
diff --git a/core/src/main/java/org/apache/struts2/url/StrutsQueryStringBuilder.java b/core/src/main/java/org/apache/struts2/url/StrutsQueryStringBuilder.java
index 72a0cb5207..8885ae1b9a 100644
--- a/core/src/main/java/org/apache/struts2/url/StrutsQueryStringBuilder.java
+++ b/core/src/main/java/org/apache/struts2/url/StrutsQueryStringBuilder.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.url;
-import com.opensymphony.xwork2.inject.Inject;
+import org.apache.struts2.inject.Inject;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
diff --git a/core/src/main/java/org/apache/struts2/url/StrutsQueryStringParser.java b/core/src/main/java/org/apache/struts2/url/StrutsQueryStringParser.java
index 792ddb0d56..9d697630af 100644
--- a/core/src/main/java/org/apache/struts2/url/StrutsQueryStringParser.java
+++ b/core/src/main/java/org/apache/struts2/url/StrutsQueryStringParser.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.url;
-import com.opensymphony.xwork2.inject.Inject;
+import org.apache.struts2.inject.Inject;
import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
diff --git a/core/src/main/java/org/apache/struts2/url/StrutsUrlDecoder.java b/core/src/main/java/org/apache/struts2/url/StrutsUrlDecoder.java
index 656a2b85fa..384cd63a62 100644
--- a/core/src/main/java/org/apache/struts2/url/StrutsUrlDecoder.java
+++ b/core/src/main/java/org/apache/struts2/url/StrutsUrlDecoder.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.url;
-import com.opensymphony.xwork2.inject.Inject;
+import org.apache.struts2.inject.Inject;
import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
diff --git a/core/src/main/java/org/apache/struts2/url/StrutsUrlEncoder.java b/core/src/main/java/org/apache/struts2/url/StrutsUrlEncoder.java
index 12b5a0104b..143daca627 100644
--- a/core/src/main/java/org/apache/struts2/url/StrutsUrlEncoder.java
+++ b/core/src/main/java/org/apache/struts2/url/StrutsUrlEncoder.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.url;
-import com.opensymphony.xwork2.inject.Inject;
+import org.apache.struts2.inject.Inject;
import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/AbstractLocalizedTextProvider.java b/core/src/main/java/org/apache/struts2/util/AbstractLocalizedTextProvider.java
similarity index 98%
rename from core/src/main/java/com/opensymphony/xwork2/util/AbstractLocalizedTextProvider.java
rename to core/src/main/java/org/apache/struts2/util/AbstractLocalizedTextProvider.java
index 9eb978a049..316cbb99ed 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/AbstractLocalizedTextProvider.java
+++ b/core/src/main/java/org/apache/struts2/util/AbstractLocalizedTextProvider.java
@@ -16,11 +16,11 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.LocalizedTextProvider;
-import com.opensymphony.xwork2.inject.Inject;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.LocalizedTextProvider;
+import org.apache.struts2.inject.Inject;
import org.apache.commons.lang3.ObjectUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@@ -47,14 +47,14 @@ abstract class AbstractLocalizedTextProvider implements LocalizedTextProvider {
private static final Logger LOG = LogManager.getLogger(AbstractLocalizedTextProvider.class);
- public static final String XWORK_MESSAGES_BUNDLE = "com/opensymphony/xwork2/xwork-messages";
+ public static final String XWORK_MESSAGES_BUNDLE = "org/apache/struts2/xwork-messages";
public static final String STRUTS_MESSAGES_BUNDLE = "org/apache/struts2/struts-messages";
private static final String TOMCAT_RESOURCE_ENTRIES_FIELD = "resourceEntries";
private static final String TOMCAT_PARALLEL_WEBAPP_CLASSLOADER = "org.apache.catalina.loader.ParallelWebappClassLoader";
private static final String TOMCAT_WEBAPP_CLASSLOADER = "org.apache.catalina.loader.WebappClassLoader";
private static final String TOMCAT_WEBAPP_CLASSLOADER_BASE = "org.apache.catalina.loader.WebappClassLoaderBase";
- private static final String RELOADED = "com.opensymphony.xwork2.util.LocalizedTextProvider.reloaded";
+ private static final String RELOADED = "org.apache.struts2.util.LocalizedTextProvider.reloaded";
protected final ConcurrentMap bundlesMap = new ConcurrentHashMap<>();
protected boolean devMode = false;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/AnnotationUtils.java b/core/src/main/java/org/apache/struts2/util/AnnotationUtils.java
similarity index 99%
rename from core/src/main/java/com/opensymphony/xwork2/util/AnnotationUtils.java
rename to core/src/main/java/org/apache/struts2/util/AnnotationUtils.java
index 2ab1f91922..0c607f2549 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/AnnotationUtils.java
+++ b/core/src/main/java/org/apache/struts2/util/AnnotationUtils.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
import org.apache.commons.lang3.ArrayUtils;
import org.apache.commons.lang3.ClassUtils;
diff --git a/core/src/main/java/org/apache/struts2/util/AppendIteratorFilter.java b/core/src/main/java/org/apache/struts2/util/AppendIteratorFilter.java
index c873d33986..8aea6c63e9 100644
--- a/core/src/main/java/org/apache/struts2/util/AppendIteratorFilter.java
+++ b/core/src/main/java/org/apache/struts2/util/AppendIteratorFilter.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.util;
-import com.opensymphony.xwork2.Action;
+import org.apache.struts2.Action;
import java.util.ArrayList;
import java.util.Iterator;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/ClassLoaderUtil.java b/core/src/main/java/org/apache/struts2/util/ClassLoaderUtil.java
similarity index 99%
rename from core/src/main/java/com/opensymphony/xwork2/util/ClassLoaderUtil.java
rename to core/src/main/java/org/apache/struts2/util/ClassLoaderUtil.java
index b1d132fa68..f18b0b6db7 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/ClassLoaderUtil.java
+++ b/core/src/main/java/org/apache/struts2/util/ClassLoaderUtil.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
import java.io.IOException;
import java.io.InputStream;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/ClassPathFinder.java b/core/src/main/java/org/apache/struts2/util/ClassPathFinder.java
similarity index 97%
rename from core/src/main/java/com/opensymphony/xwork2/util/ClassPathFinder.java
rename to core/src/main/java/org/apache/struts2/util/ClassPathFinder.java
index 1b97bf517c..3b5228ab23 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/ClassPathFinder.java
+++ b/core/src/main/java/org/apache/struts2/util/ClassPathFinder.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@@ -38,8 +38,8 @@
/**
* This class is an utility class that will search through the classpath
* for files whose names match the given pattern. The filename is tested
- * using the given implementation of {@link com.opensymphony.xwork2.util.PatternMatcher} by default it
- * uses {@link com.opensymphony.xwork2.util.WildcardHelper}
+ * using the given implementation of {@link PatternMatcher} by default it
+ * uses {@link WildcardHelper}
*/
public class ClassPathFinder {
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/ClearableValueStack.java b/core/src/main/java/org/apache/struts2/util/ClearableValueStack.java
similarity index 96%
rename from core/src/main/java/com/opensymphony/xwork2/util/ClearableValueStack.java
rename to core/src/main/java/org/apache/struts2/util/ClearableValueStack.java
index 7cb09ce13f..4cc13b8134 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/ClearableValueStack.java
+++ b/core/src/main/java/org/apache/struts2/util/ClearableValueStack.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
/**
* ValueStacks implementing this interface provide a way to remove values from
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/CompoundRoot.java b/core/src/main/java/org/apache/struts2/util/CompoundRoot.java
similarity index 97%
rename from core/src/main/java/com/opensymphony/xwork2/util/CompoundRoot.java
rename to core/src/main/java/org/apache/struts2/util/CompoundRoot.java
index dbfd71fce8..aba7ed3be2 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/CompoundRoot.java
+++ b/core/src/main/java/org/apache/struts2/util/CompoundRoot.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
import java.io.Serial;
import java.util.List;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/ConfigParseUtil.java b/core/src/main/java/org/apache/struts2/util/ConfigParseUtil.java
similarity index 95%
rename from core/src/main/java/com/opensymphony/xwork2/util/ConfigParseUtil.java
rename to core/src/main/java/org/apache/struts2/util/ConfigParseUtil.java
index 4617286a2d..d6cdafabf3 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/ConfigParseUtil.java
+++ b/core/src/main/java/org/apache/struts2/util/ConfigParseUtil.java
@@ -16,10 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.ognl.OgnlUtil;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.ognl.OgnlUtil;
import java.util.Collection;
import java.util.HashSet;
@@ -27,7 +27,7 @@
import java.util.regex.Pattern;
import java.util.regex.PatternSyntaxException;
-import static com.opensymphony.xwork2.util.TextParseUtil.commaDelimitedStringToSet;
+import static org.apache.struts2.util.TextParseUtil.commaDelimitedStringToSet;
import static java.util.Collections.unmodifiableSet;
import static java.util.stream.Collectors.toSet;
import static org.apache.commons.lang3.StringUtils.strip;
diff --git a/core/src/main/java/org/apache/struts2/util/ContentTypeMatcher.java b/core/src/main/java/org/apache/struts2/util/ContentTypeMatcher.java
index 15c4362d79..49ed1e844e 100644
--- a/core/src/main/java/org/apache/struts2/util/ContentTypeMatcher.java
+++ b/core/src/main/java/org/apache/struts2/util/ContentTypeMatcher.java
@@ -21,7 +21,7 @@
import java.util.Map;
/**
- * Matches content type of uploaded files, similar to {@link com.opensymphony.xwork2.util.PatternMatcher}
+ * Matches content type of uploaded files, similar to {@link org.apache.struts2.util.PatternMatcher}
*
* @since 2.3.22
*/
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/CreateIfNull.java b/core/src/main/java/org/apache/struts2/util/CreateIfNull.java
similarity index 98%
rename from core/src/main/java/com/opensymphony/xwork2/util/CreateIfNull.java
rename to core/src/main/java/org/apache/struts2/util/CreateIfNull.java
index 9d7d06d723..1913b4e927 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/CreateIfNull.java
+++ b/core/src/main/java/org/apache/struts2/util/CreateIfNull.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/DebugUtils.java b/core/src/main/java/org/apache/struts2/util/DebugUtils.java
similarity index 92%
rename from core/src/main/java/com/opensymphony/xwork2/util/DebugUtils.java
rename to core/src/main/java/org/apache/struts2/util/DebugUtils.java
index d0f35af051..099f701710 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/DebugUtils.java
+++ b/core/src/main/java/org/apache/struts2/util/DebugUtils.java
@@ -16,10 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
-import com.opensymphony.xwork2.TextProvider;
-import com.opensymphony.xwork2.interceptor.ValidationAware;
+import org.apache.struts2.TextProvider;
+import org.apache.struts2.interceptor.ValidationAware;
import org.apache.logging.log4j.Logger;
import java.util.Set;
diff --git a/core/src/main/java/org/apache/struts2/util/DefaultContentTypeMatcher.java b/core/src/main/java/org/apache/struts2/util/DefaultContentTypeMatcher.java
index 78e4e8b260..df2fedac9f 100644
--- a/core/src/main/java/org/apache/struts2/util/DefaultContentTypeMatcher.java
+++ b/core/src/main/java/org/apache/struts2/util/DefaultContentTypeMatcher.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts2.util;
-import com.opensymphony.xwork2.util.PatternMatcher;
-import com.opensymphony.xwork2.util.WildcardHelper;
+import org.apache.struts2.util.PatternMatcher;
+import org.apache.struts2.util.WildcardHelper;
import java.util.Map;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/DomHelper.java b/core/src/main/java/org/apache/struts2/util/DomHelper.java
similarity index 98%
rename from core/src/main/java/com/opensymphony/xwork2/util/DomHelper.java
rename to core/src/main/java/org/apache/struts2/util/DomHelper.java
index f2d809fae5..751da93c09 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/DomHelper.java
+++ b/core/src/main/java/org/apache/struts2/util/DomHelper.java
@@ -16,12 +16,12 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ObjectFactory;
-import com.opensymphony.xwork2.util.location.Location;
-import com.opensymphony.xwork2.util.location.LocationAttributes;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ObjectFactory;
+import org.apache.struts2.util.location.Location;
+import org.apache.struts2.util.location.LocationAttributes;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.struts2.StrutsException;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/Element.java b/core/src/main/java/org/apache/struts2/util/Element.java
similarity index 98%
rename from core/src/main/java/com/opensymphony/xwork2/util/Element.java
rename to core/src/main/java/org/apache/struts2/util/Element.java
index 50fd3a9acc..80ef7cb68a 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/Element.java
+++ b/core/src/main/java/org/apache/struts2/util/Element.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/Evaluated.java b/core/src/main/java/org/apache/struts2/util/Evaluated.java
similarity index 96%
rename from core/src/main/java/com/opensymphony/xwork2/util/Evaluated.java
rename to core/src/main/java/org/apache/struts2/util/Evaluated.java
index 8ecb657336..a8baaa8224 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/Evaluated.java
+++ b/core/src/main/java/org/apache/struts2/util/Evaluated.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
public class Evaluated {
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/GlobalLocalizedTextProvider.java b/core/src/main/java/org/apache/struts2/util/GlobalLocalizedTextProvider.java
similarity index 99%
rename from core/src/main/java/com/opensymphony/xwork2/util/GlobalLocalizedTextProvider.java
rename to core/src/main/java/org/apache/struts2/util/GlobalLocalizedTextProvider.java
index d86682fd12..620aa29120 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/GlobalLocalizedTextProvider.java
+++ b/core/src/main/java/org/apache/struts2/util/GlobalLocalizedTextProvider.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
-import com.opensymphony.xwork2.ActionContext;
+import org.apache.struts2.ActionContext;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@@ -27,7 +27,7 @@
/**
* Provides support for localization in the framework, it can be used to read only default bundles.
- *
+ *
* Note that unlike {@link StrutsLocalizedTextProvider}, this class {@link GlobalLocalizedTextProvider} will
* only search the default bundles for localized text.
*/
diff --git a/core/src/main/java/org/apache/struts2/util/InvocationSessionStore.java b/core/src/main/java/org/apache/struts2/util/InvocationSessionStore.java
index 4a1c36fbfb..62dd9e185e 100644
--- a/core/src/main/java/org/apache/struts2/util/InvocationSessionStore.java
+++ b/core/src/main/java/org/apache/struts2/util/InvocationSessionStore.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts2.util;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionInvocation;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
import java.io.Serial;
import java.io.Serializable;
diff --git a/core/src/main/java/org/apache/struts2/util/IteratorGenerator.java b/core/src/main/java/org/apache/struts2/util/IteratorGenerator.java
index 493980e64a..b193d6ad1b 100644
--- a/core/src/main/java/org/apache/struts2/util/IteratorGenerator.java
+++ b/core/src/main/java/org/apache/struts2/util/IteratorGenerator.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.util;
-import com.opensymphony.xwork2.Action;
+import org.apache.struts2.Action;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/Key.java b/core/src/main/java/org/apache/struts2/util/Key.java
similarity index 98%
rename from core/src/main/java/com/opensymphony/xwork2/util/Key.java
rename to core/src/main/java/org/apache/struts2/util/Key.java
index 23559ea5f3..e704038494 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/Key.java
+++ b/core/src/main/java/org/apache/struts2/util/Key.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/KeyProperty.java b/core/src/main/java/org/apache/struts2/util/KeyProperty.java
similarity index 98%
rename from core/src/main/java/com/opensymphony/xwork2/util/KeyProperty.java
rename to core/src/main/java/org/apache/struts2/util/KeyProperty.java
index 88fb006aed..62b24ee520 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/KeyProperty.java
+++ b/core/src/main/java/org/apache/struts2/util/KeyProperty.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/MemberAccessValueStack.java b/core/src/main/java/org/apache/struts2/util/MemberAccessValueStack.java
similarity index 96%
rename from core/src/main/java/com/opensymphony/xwork2/util/MemberAccessValueStack.java
rename to core/src/main/java/org/apache/struts2/util/MemberAccessValueStack.java
index 95606b1d52..d1de8dc765 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/MemberAccessValueStack.java
+++ b/core/src/main/java/org/apache/struts2/util/MemberAccessValueStack.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
import java.util.Set;
import java.util.regex.Pattern;
diff --git a/core/src/main/java/org/apache/struts2/util/MergeIteratorFilter.java b/core/src/main/java/org/apache/struts2/util/MergeIteratorFilter.java
index 0d8ea28f43..0f00ec56b3 100644
--- a/core/src/main/java/org/apache/struts2/util/MergeIteratorFilter.java
+++ b/core/src/main/java/org/apache/struts2/util/MergeIteratorFilter.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.util;
-import com.opensymphony.xwork2.Action;
+import org.apache.struts2.Action;
import java.util.ArrayList;
import java.util.Iterator;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/NamedVariablePatternMatcher.java b/core/src/main/java/org/apache/struts2/util/NamedVariablePatternMatcher.java
similarity index 99%
rename from core/src/main/java/com/opensymphony/xwork2/util/NamedVariablePatternMatcher.java
rename to core/src/main/java/org/apache/struts2/util/NamedVariablePatternMatcher.java
index 16ac9a2fbd..03a56ee3b7 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/NamedVariablePatternMatcher.java
+++ b/core/src/main/java/org/apache/struts2/util/NamedVariablePatternMatcher.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
import org.apache.commons.lang3.StringUtils;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/OgnlTextParser.java b/core/src/main/java/org/apache/struts2/util/OgnlTextParser.java
similarity index 99%
rename from core/src/main/java/com/opensymphony/xwork2/util/OgnlTextParser.java
rename to core/src/main/java/org/apache/struts2/util/OgnlTextParser.java
index e4708cddb6..9d83dddfac 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/OgnlTextParser.java
+++ b/core/src/main/java/org/apache/struts2/util/OgnlTextParser.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
import org.apache.commons.lang3.StringUtils;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/PatternMatcher.java b/core/src/main/java/org/apache/struts2/util/PatternMatcher.java
similarity index 98%
rename from core/src/main/java/com/opensymphony/xwork2/util/PatternMatcher.java
rename to core/src/main/java/org/apache/struts2/util/PatternMatcher.java
index e57a74b36f..788d40101f 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/PatternMatcher.java
+++ b/core/src/main/java/org/apache/struts2/util/PatternMatcher.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
import java.util.Map;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/PropertiesReader.java b/core/src/main/java/org/apache/struts2/util/PropertiesReader.java
similarity index 99%
rename from core/src/main/java/com/opensymphony/xwork2/util/PropertiesReader.java
rename to core/src/main/java/org/apache/struts2/util/PropertiesReader.java
index bc1ef413f9..d135bea62e 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/PropertiesReader.java
+++ b/core/src/main/java/org/apache/struts2/util/PropertiesReader.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/ProxyUtil.java b/core/src/main/java/org/apache/struts2/util/ProxyUtil.java
similarity index 98%
rename from core/src/main/java/com/opensymphony/xwork2/util/ProxyUtil.java
rename to core/src/main/java/org/apache/struts2/util/ProxyUtil.java
index 895cfb7eec..392bb9a0b2 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/ProxyUtil.java
+++ b/core/src/main/java/org/apache/struts2/util/ProxyUtil.java
@@ -16,11 +16,11 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
-import com.opensymphony.xwork2.ognl.DefaultOgnlCacheFactory;
-import com.opensymphony.xwork2.ognl.OgnlCache;
-import com.opensymphony.xwork2.ognl.OgnlCacheFactory;
+import org.apache.struts2.ognl.DefaultOgnlCacheFactory;
+import org.apache.struts2.ognl.OgnlCache;
+import org.apache.struts2.ognl.OgnlCacheFactory;
import org.apache.commons.lang3.reflect.ConstructorUtils;
import org.apache.commons.lang3.reflect.FieldUtils;
import org.apache.commons.lang3.reflect.MethodUtils;
diff --git a/core/src/main/java/org/apache/struts2/util/RegexPatternMatcher.java b/core/src/main/java/org/apache/struts2/util/RegexPatternMatcher.java
index cafb6dfca4..e1e9c2401b 100644
--- a/core/src/main/java/org/apache/struts2/util/RegexPatternMatcher.java
+++ b/core/src/main/java/org/apache/struts2/util/RegexPatternMatcher.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.util;
-import com.opensymphony.xwork2.util.PatternMatcher;
+import org.apache.struts2.util.PatternMatcher;
import org.apache.commons.lang3.StringUtils;
import java.util.HashMap;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/ResolverUtil.java b/core/src/main/java/org/apache/struts2/util/ResolverUtil.java
similarity index 99%
rename from core/src/main/java/com/opensymphony/xwork2/util/ResolverUtil.java
rename to core/src/main/java/org/apache/struts2/util/ResolverUtil.java
index 3b7e3716f0..bfe98ff6f9 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/ResolverUtil.java
+++ b/core/src/main/java/org/apache/struts2/util/ResolverUtil.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@@ -48,7 +48,7 @@
* methods.
*
* General searches are initiated by calling the
- * {@link #find(com.opensymphony.xwork2.util.ResolverUtil.Test, String...)} ()} method and supplying
+ * {@link #find(ResolverUtil.Test, String...)} ()} method and supplying
* a package name and a Test instance. This will cause the named package and all sub-packages
* to be scanned for classes that meet the test. There are also utility methods for the common
* use cases of scanning multiple packages for extensions of particular classes, or classes
diff --git a/core/src/main/java/org/apache/struts2/util/SortIteratorFilter.java b/core/src/main/java/org/apache/struts2/util/SortIteratorFilter.java
index b072afc525..e126c5c0d2 100644
--- a/core/src/main/java/org/apache/struts2/util/SortIteratorFilter.java
+++ b/core/src/main/java/org/apache/struts2/util/SortIteratorFilter.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.util;
-import com.opensymphony.xwork2.Action;
+import org.apache.struts2.Action;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/StrutsLocalizedTextProvider.java b/core/src/main/java/org/apache/struts2/util/StrutsLocalizedTextProvider.java
similarity index 97%
rename from core/src/main/java/com/opensymphony/xwork2/util/StrutsLocalizedTextProvider.java
rename to core/src/main/java/org/apache/struts2/util/StrutsLocalizedTextProvider.java
index abe407866c..ea37726b91 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/StrutsLocalizedTextProvider.java
+++ b/core/src/main/java/org/apache/struts2/util/StrutsLocalizedTextProvider.java
@@ -16,14 +16,14 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
-
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.ModelDriven;
-import com.opensymphony.xwork2.conversion.impl.XWorkConverter;
-import com.opensymphony.xwork2.inject.Inject;
-import com.opensymphony.xwork2.util.reflection.ReflectionProvider;
+package org.apache.struts2.util;
+
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.ModelDriven;
+import org.apache.struts2.conversion.impl.XWorkConverter;
+import org.apache.struts2.inject.Inject;
+import org.apache.struts2.util.reflection.ReflectionProvider;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
diff --git a/core/src/main/java/org/apache/struts2/util/StrutsTestCaseHelper.java b/core/src/main/java/org/apache/struts2/util/StrutsTestCaseHelper.java
index 582dabff7c..6ee1469fe1 100644
--- a/core/src/main/java/org/apache/struts2/util/StrutsTestCaseHelper.java
+++ b/core/src/main/java/org/apache/struts2/util/StrutsTestCaseHelper.java
@@ -18,10 +18,10 @@
*/
package org.apache.struts2.util;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.inject.Container;
-import com.opensymphony.xwork2.util.ValueStack;
-import com.opensymphony.xwork2.util.ValueStackFactory;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.inject.Container;
+import org.apache.struts2.util.ValueStack;
+import org.apache.struts2.util.ValueStackFactory;
import jakarta.servlet.ServletContext;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
diff --git a/core/src/main/java/org/apache/struts2/util/StrutsTypeConverter.java b/core/src/main/java/org/apache/struts2/util/StrutsTypeConverter.java
index 655eeab0e0..9ea59814b9 100644
--- a/core/src/main/java/org/apache/struts2/util/StrutsTypeConverter.java
+++ b/core/src/main/java/org/apache/struts2/util/StrutsTypeConverter.java
@@ -20,7 +20,7 @@
import java.util.Map;
-import com.opensymphony.xwork2.conversion.impl.DefaultTypeConverter;
+import org.apache.struts2.conversion.impl.DefaultTypeConverter;
/**
*
diff --git a/core/src/main/java/org/apache/struts2/util/StrutsUtil.java b/core/src/main/java/org/apache/struts2/util/StrutsUtil.java
index 234c492de8..532220582b 100644
--- a/core/src/main/java/org/apache/struts2/util/StrutsUtil.java
+++ b/core/src/main/java/org/apache/struts2/util/StrutsUtil.java
@@ -18,10 +18,10 @@
*/
package org.apache.struts2.util;
-import com.opensymphony.xwork2.ObjectFactory;
-import com.opensymphony.xwork2.util.ClassLoaderUtil;
-import com.opensymphony.xwork2.util.TextParseUtil;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.ObjectFactory;
+import org.apache.struts2.util.ClassLoaderUtil;
+import org.apache.struts2.util.TextParseUtil;
+import org.apache.struts2.util.ValueStack;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.struts2.StrutsException;
diff --git a/core/src/main/java/org/apache/struts2/util/SubsetIteratorFilter.java b/core/src/main/java/org/apache/struts2/util/SubsetIteratorFilter.java
index 6745a625d2..41564409ea 100644
--- a/core/src/main/java/org/apache/struts2/util/SubsetIteratorFilter.java
+++ b/core/src/main/java/org/apache/struts2/util/SubsetIteratorFilter.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.util;
-import com.opensymphony.xwork2.Action;
+import org.apache.struts2.Action;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/TextParseUtil.java b/core/src/main/java/org/apache/struts2/util/TextParseUtil.java
similarity index 98%
rename from core/src/main/java/com/opensymphony/xwork2/util/TextParseUtil.java
rename to core/src/main/java/org/apache/struts2/util/TextParseUtil.java
index ebe940e3f0..d332b14328 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/TextParseUtil.java
+++ b/core/src/main/java/org/apache/struts2/util/TextParseUtil.java
@@ -16,10 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.conversion.impl.XWorkConverter;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.conversion.impl.XWorkConverter;
import java.util.ArrayList;
import java.util.Arrays;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/TextParser.java b/core/src/main/java/org/apache/struts2/util/TextParser.java
similarity index 96%
rename from core/src/main/java/com/opensymphony/xwork2/util/TextParser.java
rename to core/src/main/java/org/apache/struts2/util/TextParser.java
index 767b67d577..7221fb4046 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/TextParser.java
+++ b/core/src/main/java/org/apache/struts2/util/TextParser.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
/**
* Used to parse expressions like ${foo.bar} or %{bar.foo} but it is up tp the TextParser's
diff --git a/core/src/main/java/org/apache/struts2/util/TextProviderHelper.java b/core/src/main/java/org/apache/struts2/util/TextProviderHelper.java
index d7ad706817..7cda5d490c 100644
--- a/core/src/main/java/org/apache/struts2/util/TextProviderHelper.java
+++ b/core/src/main/java/org/apache/struts2/util/TextProviderHelper.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts2.util;
-import com.opensymphony.xwork2.TextProvider;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.TextProvider;
+import org.apache.struts2.util.ValueStack;
import org.apache.commons.text.StringEscapeUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
diff --git a/core/src/main/java/org/apache/struts2/util/TokenHelper.java b/core/src/main/java/org/apache/struts2/util/TokenHelper.java
index c03a135141..985ad6580a 100644
--- a/core/src/main/java/org/apache/struts2/util/TokenHelper.java
+++ b/core/src/main/java/org/apache/struts2/util/TokenHelper.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts2.util;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.LocalizedTextProvider;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.LocalizedTextProvider;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.struts2.dispatcher.Parameter;
diff --git a/core/src/main/java/org/apache/struts2/util/URLBean.java b/core/src/main/java/org/apache/struts2/util/URLBean.java
index 7b0c21d76e..6802048070 100644
--- a/core/src/main/java/org/apache/struts2/util/URLBean.java
+++ b/core/src/main/java/org/apache/struts2/util/URLBean.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.util;
-import com.opensymphony.xwork2.ActionContext;
+import org.apache.struts2.ActionContext;
import org.apache.struts2.views.util.DefaultUrlHelper;
import org.apache.struts2.views.util.UrlHelper;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/ValueStack.java b/core/src/main/java/org/apache/struts2/util/ValueStack.java
similarity index 95%
rename from core/src/main/java/com/opensymphony/xwork2/util/ValueStack.java
rename to core/src/main/java/org/apache/struts2/util/ValueStack.java
index 4d02b235fe..acdb38cb2b 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/ValueStack.java
+++ b/core/src/main/java/org/apache/struts2/util/ValueStack.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
-import com.opensymphony.xwork2.ActionContext;
+import org.apache.struts2.ActionContext;
import java.util.Map;
@@ -30,9 +30,9 @@
*/
public interface ValueStack {
- String VALUE_STACK = "com.opensymphony.xwork2.util.ValueStack.ValueStack";
+ String VALUE_STACK = "org.apache.struts2.util.ValueStack.ValueStack";
- String REPORT_ERRORS_ON_NO_PROP = "com.opensymphony.xwork2.util.ValueStack.ReportErrorsOnNoProp";
+ String REPORT_ERRORS_ON_NO_PROP = "org.apache.struts2.util.ValueStack.ReportErrorsOnNoProp";
/**
* Gets the context for this value stack. The context holds all the information in the value stack and it's surroundings.
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/ValueStackFactory.java b/core/src/main/java/org/apache/struts2/util/ValueStackFactory.java
similarity index 76%
rename from core/src/main/java/com/opensymphony/xwork2/util/ValueStackFactory.java
rename to core/src/main/java/org/apache/struts2/util/ValueStackFactory.java
index 788c904534..6837007953 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/ValueStackFactory.java
+++ b/core/src/main/java/org/apache/struts2/util/ValueStackFactory.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
/**
* Factory that creates a value stack, defaulting to the OgnlValueStackFactory
@@ -24,18 +24,18 @@
public interface ValueStackFactory {
/**
- * Get a new instance of {@link com.opensymphony.xwork2.util.ValueStack}
+ * Get a new instance of {@link org.apache.struts2.util.ValueStack}
*
- * @return a new {@link com.opensymphony.xwork2.util.ValueStack}.
+ * @return a new {@link org.apache.struts2.util.ValueStack}.
*/
ValueStack createValueStack();
-
+
/**
- * Get a new instance of {@link com.opensymphony.xwork2.util.ValueStack}
+ * Get a new instance of {@link org.apache.struts2.util.ValueStack}
*
* @param stack an existing stack to include.
- * @return a new {@link com.opensymphony.xwork2.util.ValueStack}.
+ * @return a new {@link org.apache.struts2.util.ValueStack}.
*/
ValueStack createValueStack(ValueStack stack);
-
+
}
diff --git a/core/src/main/java/org/apache/struts2/util/ValueStackProvider.java b/core/src/main/java/org/apache/struts2/util/ValueStackProvider.java
index 2a6d1bf0af..b43a0ad992 100644
--- a/core/src/main/java/org/apache/struts2/util/ValueStackProvider.java
+++ b/core/src/main/java/org/apache/struts2/util/ValueStackProvider.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.util;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
/**
* @since 6.4.0
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/WildcardHelper.java b/core/src/main/java/org/apache/struts2/util/WildcardHelper.java
similarity index 99%
rename from core/src/main/java/com/opensymphony/xwork2/util/WildcardHelper.java
rename to core/src/main/java/org/apache/struts2/util/WildcardHelper.java
index 8a61c63e97..aeffc47274 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/WildcardHelper.java
+++ b/core/src/main/java/org/apache/struts2/util/WildcardHelper.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
import java.util.Map;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/WildcardUtil.java b/core/src/main/java/org/apache/struts2/util/WildcardUtil.java
similarity index 98%
rename from core/src/main/java/com/opensymphony/xwork2/util/WildcardUtil.java
rename to core/src/main/java/org/apache/struts2/util/WildcardUtil.java
index 77d4880f9d..ad4fe7c49b 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/WildcardUtil.java
+++ b/core/src/main/java/org/apache/struts2/util/WildcardUtil.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
import java.util.regex.Pattern;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/XWorkTestCaseHelper.java b/core/src/main/java/org/apache/struts2/util/XWorkTestCaseHelper.java
similarity index 87%
rename from core/src/main/java/com/opensymphony/xwork2/util/XWorkTestCaseHelper.java
rename to core/src/main/java/org/apache/struts2/util/XWorkTestCaseHelper.java
index e139f05356..0d2c390019 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/XWorkTestCaseHelper.java
+++ b/core/src/main/java/org/apache/struts2/util/XWorkTestCaseHelper.java
@@ -16,18 +16,18 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.config.*;
-import com.opensymphony.xwork2.config.providers.StrutsDefaultConfigurationProvider;
-import com.opensymphony.xwork2.config.providers.XmlConfigurationProvider;
-import com.opensymphony.xwork2.inject.Container;
-import com.opensymphony.xwork2.inject.ContainerBuilder;
-import com.opensymphony.xwork2.util.location.LocatableProperties;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.config.*;
+import org.apache.struts2.config.providers.StrutsDefaultConfigurationProvider;
+import org.apache.struts2.config.providers.XmlConfigurationProvider;
+import org.apache.struts2.inject.Container;
+import org.apache.struts2.inject.ContainerBuilder;
+import org.apache.struts2.util.location.LocatableProperties;
/**
- * Generic test setup methods to be used with any unit testing framework.
+ * Generic test setup methods to be used with any unit testing framework.
*/
public class XWorkTestCaseHelper {
@@ -36,7 +36,7 @@ public static ConfigurationManager setUp() throws Exception {
configurationManager.addContainerProvider(new StrutsDefaultConfigurationProvider());
Configuration config = configurationManager.getConfiguration();
Container container = config.getContainer();
-
+
// Reset the value stack
ValueStack stack = container.getInstance(ValueStackFactory.class).createValueStack();
stack.getActionContext().withContainer(container).withValueStack(stack).bind();
@@ -60,7 +60,7 @@ public void init(Configuration configuration) throws ConfigurationException {}
public void register(ContainerBuilder builder, LocatableProperties props) throws ConfigurationException {
builder.setAllowDuplicates(true);
}
-
+
});
configurationManager.addContainerProvider(new StrutsDefaultConfigurationProvider());
for (ConfigurationProvider prov : providers) {
@@ -70,7 +70,7 @@ public void register(ContainerBuilder builder, LocatableProperties props) throws
configurationManager.addContainerProvider(prov);
}
Container container = configurationManager.getConfiguration().getContainer();
-
+
// Reset the value stack
ValueStack stack = container.getInstance(ValueStackFactory.class).createValueStack();
stack.getActionContext().withContainer(container).withValueStack(stack).bind();
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/classloader/AbstractResourceStore.java b/core/src/main/java/org/apache/struts2/util/classloader/AbstractResourceStore.java
similarity index 97%
rename from core/src/main/java/com/opensymphony/xwork2/util/classloader/AbstractResourceStore.java
rename to core/src/main/java/org/apache/struts2/util/classloader/AbstractResourceStore.java
index 5fcdafd485..2415da361c 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/classloader/AbstractResourceStore.java
+++ b/core/src/main/java/org/apache/struts2/util/classloader/AbstractResourceStore.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.classloader;
+package org.apache.struts2.util.classloader;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/classloader/FileResourceStore.java b/core/src/main/java/org/apache/struts2/util/classloader/FileResourceStore.java
similarity index 97%
rename from core/src/main/java/com/opensymphony/xwork2/util/classloader/FileResourceStore.java
rename to core/src/main/java/org/apache/struts2/util/classloader/FileResourceStore.java
index 204ee54261..0fbb75182f 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/classloader/FileResourceStore.java
+++ b/core/src/main/java/org/apache/struts2/util/classloader/FileResourceStore.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.classloader;
+package org.apache.struts2.util.classloader;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/classloader/JarResourceStore.java b/core/src/main/java/org/apache/struts2/util/classloader/JarResourceStore.java
similarity index 97%
rename from core/src/main/java/com/opensymphony/xwork2/util/classloader/JarResourceStore.java
rename to core/src/main/java/org/apache/struts2/util/classloader/JarResourceStore.java
index fee136fad8..3b5c0c8f86 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/classloader/JarResourceStore.java
+++ b/core/src/main/java/org/apache/struts2/util/classloader/JarResourceStore.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.classloader;
+package org.apache.struts2.util.classloader;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/classloader/ReloadingClassLoader.java b/core/src/main/java/org/apache/struts2/util/classloader/ReloadingClassLoader.java
similarity index 97%
rename from core/src/main/java/com/opensymphony/xwork2/util/classloader/ReloadingClassLoader.java
rename to core/src/main/java/org/apache/struts2/util/classloader/ReloadingClassLoader.java
index 14003ed4af..da75b88a55 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/classloader/ReloadingClassLoader.java
+++ b/core/src/main/java/org/apache/struts2/util/classloader/ReloadingClassLoader.java
@@ -16,11 +16,11 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.classloader;
+package org.apache.struts2.util.classloader;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.FileManager;
-import com.opensymphony.xwork2.FileManagerFactory;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.FileManager;
+import org.apache.struts2.FileManagerFactory;
import org.apache.commons.lang3.ObjectUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/classloader/ResourceStore.java b/core/src/main/java/org/apache/struts2/util/classloader/ResourceStore.java
similarity index 95%
rename from core/src/main/java/com/opensymphony/xwork2/util/classloader/ResourceStore.java
rename to core/src/main/java/org/apache/struts2/util/classloader/ResourceStore.java
index c415b098db..d8035ee8be 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/classloader/ResourceStore.java
+++ b/core/src/main/java/org/apache/struts2/util/classloader/ResourceStore.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.classloader;
+package org.apache.struts2.util.classloader;
/**
* *interface taken from Apache JCI
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/classloader/ResourceStoreClassLoader.java b/core/src/main/java/org/apache/struts2/util/classloader/ResourceStoreClassLoader.java
similarity index 98%
rename from core/src/main/java/com/opensymphony/xwork2/util/classloader/ResourceStoreClassLoader.java
rename to core/src/main/java/org/apache/struts2/util/classloader/ResourceStoreClassLoader.java
index 8a9301eed2..afe8146888 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/classloader/ResourceStoreClassLoader.java
+++ b/core/src/main/java/org/apache/struts2/util/classloader/ResourceStoreClassLoader.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.classloader;
+package org.apache.struts2.util.classloader;
/**
* class taken from Apache JCI
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/finder/ClassFinder.java b/core/src/main/java/org/apache/struts2/util/finder/ClassFinder.java
similarity index 99%
rename from core/src/main/java/com/opensymphony/xwork2/util/finder/ClassFinder.java
rename to core/src/main/java/org/apache/struts2/util/finder/ClassFinder.java
index 92e2136557..3d43996903 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/finder/ClassFinder.java
+++ b/core/src/main/java/org/apache/struts2/util/finder/ClassFinder.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.finder;
+package org.apache.struts2.util.finder;
import java.lang.annotation.Annotation;
import java.lang.reflect.AnnotatedElement;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/finder/ClassFinderFactory.java b/core/src/main/java/org/apache/struts2/util/finder/ClassFinderFactory.java
similarity index 96%
rename from core/src/main/java/com/opensymphony/xwork2/util/finder/ClassFinderFactory.java
rename to core/src/main/java/org/apache/struts2/util/finder/ClassFinderFactory.java
index ed71d9c7a4..b0658c34ec 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/finder/ClassFinderFactory.java
+++ b/core/src/main/java/org/apache/struts2/util/finder/ClassFinderFactory.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.finder;
+package org.apache.struts2.util.finder;
import java.net.URL;
import java.util.Collection;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/finder/ClassLoaderInterface.java b/core/src/main/java/org/apache/struts2/util/finder/ClassLoaderInterface.java
similarity index 97%
rename from core/src/main/java/com/opensymphony/xwork2/util/finder/ClassLoaderInterface.java
rename to core/src/main/java/org/apache/struts2/util/finder/ClassLoaderInterface.java
index b213e389b5..2d60676e28 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/finder/ClassLoaderInterface.java
+++ b/core/src/main/java/org/apache/struts2/util/finder/ClassLoaderInterface.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.finder;
+package org.apache.struts2.util.finder;
import java.io.IOException;
import java.io.InputStream;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/finder/ClassLoaderInterfaceDelegate.java b/core/src/main/java/org/apache/struts2/util/finder/ClassLoaderInterfaceDelegate.java
similarity index 97%
rename from core/src/main/java/com/opensymphony/xwork2/util/finder/ClassLoaderInterfaceDelegate.java
rename to core/src/main/java/org/apache/struts2/util/finder/ClassLoaderInterfaceDelegate.java
index 74ab894f31..50283593f2 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/finder/ClassLoaderInterfaceDelegate.java
+++ b/core/src/main/java/org/apache/struts2/util/finder/ClassLoaderInterfaceDelegate.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.finder;
+package org.apache.struts2.util.finder;
import java.io.IOException;
import java.io.InputStream;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/finder/ResourceFinder.java b/core/src/main/java/org/apache/struts2/util/finder/ResourceFinder.java
similarity index 99%
rename from core/src/main/java/com/opensymphony/xwork2/util/finder/ResourceFinder.java
rename to core/src/main/java/org/apache/struts2/util/finder/ResourceFinder.java
index a950f7411c..a7f9a0ab00 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/finder/ResourceFinder.java
+++ b/core/src/main/java/org/apache/struts2/util/finder/ResourceFinder.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.finder;
+package org.apache.struts2.util.finder;
import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.LogManager;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/finder/Test.java b/core/src/main/java/org/apache/struts2/util/finder/Test.java
similarity index 96%
rename from core/src/main/java/com/opensymphony/xwork2/util/finder/Test.java
rename to core/src/main/java/org/apache/struts2/util/finder/Test.java
index 70476f97a6..51b828afb9 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/finder/Test.java
+++ b/core/src/main/java/org/apache/struts2/util/finder/Test.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.finder;
+package org.apache.struts2.util.finder;
/**
* This is the testing interface that is used to accept or reject resources.
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/finder/UrlSet.java b/core/src/main/java/org/apache/struts2/util/finder/UrlSet.java
similarity index 99%
rename from core/src/main/java/com/opensymphony/xwork2/util/finder/UrlSet.java
rename to core/src/main/java/org/apache/struts2/util/finder/UrlSet.java
index 9d32415e77..16a8f7ef34 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/finder/UrlSet.java
+++ b/core/src/main/java/org/apache/struts2/util/finder/UrlSet.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.finder;
+package org.apache.struts2.util.finder;
import org.apache.commons.lang3.ObjectUtils;
import org.apache.commons.lang3.StringUtils;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/fs/DefaultFileManager.java b/core/src/main/java/org/apache/struts2/util/fs/DefaultFileManager.java
similarity index 98%
rename from core/src/main/java/com/opensymphony/xwork2/util/fs/DefaultFileManager.java
rename to core/src/main/java/org/apache/struts2/util/fs/DefaultFileManager.java
index 0cc42cbeaf..82bf06348a 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/fs/DefaultFileManager.java
+++ b/core/src/main/java/org/apache/struts2/util/fs/DefaultFileManager.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.fs;
+package org.apache.struts2.util.fs;
-import com.opensymphony.xwork2.FileManager;
+import org.apache.struts2.FileManager;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/fs/DefaultFileManagerFactory.java b/core/src/main/java/org/apache/struts2/util/fs/DefaultFileManagerFactory.java
similarity index 94%
rename from core/src/main/java/com/opensymphony/xwork2/util/fs/DefaultFileManagerFactory.java
rename to core/src/main/java/org/apache/struts2/util/fs/DefaultFileManagerFactory.java
index d5cf1b06c2..1b3b8cd7b5 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/fs/DefaultFileManagerFactory.java
+++ b/core/src/main/java/org/apache/struts2/util/fs/DefaultFileManagerFactory.java
@@ -16,12 +16,12 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.fs;
+package org.apache.struts2.util.fs;
-import com.opensymphony.xwork2.FileManager;
-import com.opensymphony.xwork2.FileManagerFactory;
-import com.opensymphony.xwork2.inject.Container;
-import com.opensymphony.xwork2.inject.Inject;
+import org.apache.struts2.FileManager;
+import org.apache.struts2.FileManagerFactory;
+import org.apache.struts2.inject.Container;
+import org.apache.struts2.inject.Inject;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.struts2.StrutsConstants;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/fs/FileRevision.java b/core/src/main/java/org/apache/struts2/util/fs/FileRevision.java
similarity index 98%
rename from core/src/main/java/com/opensymphony/xwork2/util/fs/FileRevision.java
rename to core/src/main/java/org/apache/struts2/util/fs/FileRevision.java
index 0c93724e9d..c20394c8f9 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/fs/FileRevision.java
+++ b/core/src/main/java/org/apache/struts2/util/fs/FileRevision.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.fs;
+package org.apache.struts2.util.fs;
import java.io.File;
import java.net.URISyntaxException;
diff --git a/core/src/main/java/org/apache/struts2/util/fs/JBossFileManager.java b/core/src/main/java/org/apache/struts2/util/fs/JBossFileManager.java
index b8e4b1f6d0..365dd6988f 100644
--- a/core/src/main/java/org/apache/struts2/util/fs/JBossFileManager.java
+++ b/core/src/main/java/org/apache/struts2/util/fs/JBossFileManager.java
@@ -18,10 +18,6 @@
*/
package org.apache.struts2.util.fs;
-import com.opensymphony.xwork2.util.fs.DefaultFileManager;
-import com.opensymphony.xwork2.util.fs.FileRevision;
-import com.opensymphony.xwork2.util.fs.JarEntryRevision;
-import com.opensymphony.xwork2.util.fs.Revision;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/fs/JarEntryRevision.java b/core/src/main/java/org/apache/struts2/util/fs/JarEntryRevision.java
similarity index 96%
rename from core/src/main/java/com/opensymphony/xwork2/util/fs/JarEntryRevision.java
rename to core/src/main/java/org/apache/struts2/util/fs/JarEntryRevision.java
index 130068ec57..f8953c01af 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/fs/JarEntryRevision.java
+++ b/core/src/main/java/org/apache/struts2/util/fs/JarEntryRevision.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.fs;
+package org.apache.struts2.util.fs;
-import com.opensymphony.xwork2.FileManager;
+import org.apache.struts2.FileManager;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/fs/Revision.java b/core/src/main/java/org/apache/struts2/util/fs/Revision.java
similarity index 96%
rename from core/src/main/java/com/opensymphony/xwork2/util/fs/Revision.java
rename to core/src/main/java/org/apache/struts2/util/fs/Revision.java
index 95d579402d..becb71e7a9 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/fs/Revision.java
+++ b/core/src/main/java/org/apache/struts2/util/fs/Revision.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.fs;
+package org.apache.struts2.util.fs;
import java.net.URL;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/fs/StrutsJarURLConnection.java b/core/src/main/java/org/apache/struts2/util/fs/StrutsJarURLConnection.java
similarity index 99%
rename from core/src/main/java/com/opensymphony/xwork2/util/fs/StrutsJarURLConnection.java
rename to core/src/main/java/org/apache/struts2/util/fs/StrutsJarURLConnection.java
index 52ad48b05d..a98944086b 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/fs/StrutsJarURLConnection.java
+++ b/core/src/main/java/org/apache/struts2/util/fs/StrutsJarURLConnection.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.fs;
+package org.apache.struts2.util.fs;
import java.io.IOException;
import java.io.InputStream;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/location/Locatable.java b/core/src/main/java/org/apache/struts2/util/location/Locatable.java
similarity index 95%
rename from core/src/main/java/com/opensymphony/xwork2/util/location/Locatable.java
rename to core/src/main/java/org/apache/struts2/util/location/Locatable.java
index 8d08b11a7a..ec088a4fdb 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/location/Locatable.java
+++ b/core/src/main/java/org/apache/struts2/util/location/Locatable.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.location;
+package org.apache.struts2.util.location;
/**
* A interface that should be implemented by objects knowning their location (i.e. where they
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/location/LocatableProperties.java b/core/src/main/java/org/apache/struts2/util/location/LocatableProperties.java
similarity index 96%
rename from core/src/main/java/com/opensymphony/xwork2/util/location/LocatableProperties.java
rename to core/src/main/java/org/apache/struts2/util/location/LocatableProperties.java
index 008451fa7b..4b9ea22a38 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/location/LocatableProperties.java
+++ b/core/src/main/java/org/apache/struts2/util/location/LocatableProperties.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.location;
+package org.apache.struts2.util.location;
-import com.opensymphony.xwork2.util.PropertiesReader;
+import org.apache.struts2.util.PropertiesReader;
import java.io.IOException;
import java.io.InputStream;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/location/Located.java b/core/src/main/java/org/apache/struts2/util/location/Located.java
similarity index 96%
rename from core/src/main/java/com/opensymphony/xwork2/util/location/Located.java
rename to core/src/main/java/org/apache/struts2/util/location/Located.java
index 8e268f71e0..4c4f125054 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/location/Located.java
+++ b/core/src/main/java/org/apache/struts2/util/location/Located.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.location;
+package org.apache.struts2.util.location;
/**
* Base class for location aware objects
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/location/Location.java b/core/src/main/java/org/apache/struts2/util/location/Location.java
similarity index 97%
rename from core/src/main/java/com/opensymphony/xwork2/util/location/Location.java
rename to core/src/main/java/org/apache/struts2/util/location/Location.java
index 84f100f36f..131cab1a68 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/location/Location.java
+++ b/core/src/main/java/org/apache/struts2/util/location/Location.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.location;
+package org.apache.struts2.util.location;
import java.util.List;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/location/LocationAttributes.java b/core/src/main/java/org/apache/struts2/util/location/LocationAttributes.java
similarity index 96%
rename from core/src/main/java/com/opensymphony/xwork2/util/location/LocationAttributes.java
rename to core/src/main/java/org/apache/struts2/util/location/LocationAttributes.java
index 3bceb97368..2ef4a65b7c 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/location/LocationAttributes.java
+++ b/core/src/main/java/org/apache/struts2/util/location/LocationAttributes.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.location;
+package org.apache.struts2.util.location;
import org.w3c.dom.Attr;
import org.w3c.dom.Element;
@@ -31,7 +31,7 @@
/**
*
* A class to handle location information stored in attributes.
- * These attributes are typically setup using {@link com.opensymphony.xwork2.util.location.LocationAttributes.Pipe}
+ * These attributes are typically setup using {@link org.apache.struts2.util.location.LocationAttributes.Pipe}
* which augments the SAX stream with additional attributes, e.g.:
*
*
@@ -42,8 +42,8 @@
* <foo loc:src="file://path/to/file.xml" loc:line="2" loc:column="3"/>
* </root>
*
- *
- * @see com.opensymphony.xwork2.util.location.LocationAttributes.Pipe
+ *
+ * @see org.apache.struts2.util.location.LocationAttributes.Pipe
* @since 2.1.8
*/
public class LocationAttributes {
@@ -65,15 +65,15 @@ public class LocationAttributes {
public static final String Q_LINE_ATTR = "loc:line";
/** Attribute qualified name for the column number */
public static final String Q_COL_ATTR = "loc:column";
-
+
// Private constructor, we only have static methods
private LocationAttributes() {
// Nothing
}
-
+
/**
* Add location attributes to a set of SAX attributes.
- *
+ *
* @param locator the Locator
(can be null)
* @param attrs the Attributes
where locator information should be added
* @return Location enabled Attributes.
@@ -83,7 +83,7 @@ public static Attributes addLocationAttributes(Locator locator, Attributes attrs
// No location information known, or already has it
return attrs;
}
-
+
// Get an AttributeImpl so that we can add new attributes.
AttributesImpl newAttrs = attrs instanceof AttributesImpl ?
(AttributesImpl)attrs : new AttributesImpl(attrs);
@@ -91,13 +91,13 @@ public static Attributes addLocationAttributes(Locator locator, Attributes attrs
newAttrs.addAttribute(URI, SRC_ATTR, Q_SRC_ATTR, "CDATA", locator.getSystemId());
newAttrs.addAttribute(URI, LINE_ATTR, Q_LINE_ATTR, "CDATA", Integer.toString(locator.getLineNumber()));
newAttrs.addAttribute(URI, COL_ATTR, Q_COL_ATTR, "CDATA", Integer.toString(locator.getColumnNumber()));
-
+
return newAttrs;
}
-
+
/**
* Returns the {@link Location} of an element (SAX flavor).
- *
+ *
* @param attrs the element's attributes that hold the location information
* @param description a description for the location (can be null)
* @return a {@link Location} object
@@ -107,7 +107,7 @@ public static Location getLocation(Attributes attrs, String description) {
if (src == null) {
return Location.UNKNOWN;
}
-
+
return new LocationImpl(description, src, getLine(attrs), getColumn(attrs));
}
@@ -115,7 +115,7 @@ public static Location getLocation(Attributes attrs, String description) {
* Returns the location of an element (SAX flavor). If the location is to be kept
* into an object built from this element, consider using {@link #getLocation(Attributes, String)}
* and the {@link Locatable} interface.
- *
+ *
* @param attrs the element's attributes that hold the location information
* @return a location string as defined by {@link Location}.
*/
@@ -124,13 +124,13 @@ public static String getLocationString(Attributes attrs) {
if (src == null) {
return LocationUtils.UNKNOWN_STRING;
}
-
+
return src + ":" + attrs.getValue(URI, LINE_ATTR) + ":" + attrs.getValue(URI, COL_ATTR);
}
-
+
/**
* Returns the URI of an element (SAX flavor)
- *
+ *
* @param attrs the element's attributes that hold the location information
* @return the element's URI or "[unknown location]
" if attrs
* has no location information.
@@ -139,10 +139,10 @@ public static String getURI(Attributes attrs) {
String src = attrs.getValue(URI, SRC_ATTR);
return src != null ? src : LocationUtils.UNKNOWN_STRING;
}
-
+
/**
* Returns the line number of an element (SAX flavor)
- *
+ *
* @param attrs the element's attributes that hold the location information
* @return the element's line number or -1
if attrs
* has no location information.
@@ -151,10 +151,10 @@ public static int getLine(Attributes attrs) {
String line = attrs.getValue(URI, LINE_ATTR);
return line != null ? Integer.parseInt(line) : -1;
}
-
+
/**
* Returns the column number of an element (SAX flavor)
- *
+ *
* @param attrs the element's attributes that hold the location information
* @return the element's column number or -1
if attrs
* has no location information.
@@ -163,10 +163,10 @@ public static int getColumn(Attributes attrs) {
String col = attrs.getValue(URI, COL_ATTR);
return col != null ? Integer.parseInt(col) : -1;
}
-
+
/**
* Returns the {@link Location} of an element (DOM flavor).
- *
+ *
* @param elem the element that holds the location information
* @param description a description for the location (if null
, the element's name is used)
* @return a {@link Location} object
@@ -180,7 +180,7 @@ public static Location getLocation(Element elem, String description) {
return new LocationImpl(description == null ? elem.getNodeName() : description,
srcAttr.getValue(), getLine(elem), getColumn(elem));
}
-
+
/**
* Same as getLocation(elem, null)
.
*
@@ -190,13 +190,13 @@ public static Location getLocation(Element elem, String description) {
public static Location getLocation(Element elem) {
return getLocation(elem, null);
}
-
+
/**
* Returns the location of an element that has been processed by this pipe (DOM flavor).
* If the location is to be kept into an object built from this element, consider using
* {@link #getLocation(Element)} and the {@link Locatable} interface.
- *
+ *
* @param elem the element that holds the location information
* @return a location string as defined by {@link Location}.
*/
@@ -205,13 +205,13 @@ public static String getLocationString(Element elem) {
if (srcAttr == null) {
return LocationUtils.UNKNOWN_STRING;
}
-
+
return srcAttr.getValue() + ":" + elem.getAttributeNS(URI, LINE_ATTR) + ":" + elem.getAttributeNS(URI, COL_ATTR);
}
-
+
/**
* Returns the URI of an element (DOM flavor)
- *
+ *
* @param elem the element that holds the location information
* @return the element's URI or "[unknown location]
" if elem
* has no location information.
@@ -223,7 +223,7 @@ public static String getURI(Element elem) {
/**
* Returns the line number of an element (DOM flavor)
- *
+ *
* @param elem the element that holds the location information
* @return the element's line number or -1
if elem
* has no location information.
@@ -235,7 +235,7 @@ public static int getLine(Element elem) {
/**
* Returns the column number of an element (DOM flavor)
- *
+ *
* @param elem the element that holds the location information
* @return the element's column number or -1
if elem
* has no location information.
@@ -244,10 +244,10 @@ public static int getColumn(Element elem) {
Attr attr = elem.getAttributeNodeNS(URI, COL_ATTR);
return attr != null ? Integer.parseInt(attr.getValue()) : -1;
}
-
+
/**
* Remove the location attributes from a DOM element.
- *
+ *
* @param elem the element to remove the location attributes from.
* @param recurse if true
, also remove location attributes on descendant elements.
*/
@@ -282,15 +282,15 @@ public static void remove(Element elem, boolean recurse) {
* Note: Although this adds a lot of information to the serialized form of the document,
* the overhead in SAX events is not that big, as attribute names are interned, and all src
* attributes point to the same string.
- *
- * @see com.opensymphony.xwork2.util.location.LocationAttributes
+ *
+ * @see org.apache.struts2.util.location.LocationAttributes
*/
public static class Pipe implements ContentHandler {
-
+
private Locator locator;
-
+
private ContentHandler nextHandler;
-
+
/**
* Create a filter. It has to be chained to another handler to be really useful.
*/
@@ -309,12 +309,12 @@ public void setDocumentLocator(Locator locator) {
this.locator = locator;
nextHandler.setDocumentLocator(locator);
}
-
+
public void startDocument() throws SAXException {
nextHandler.startDocument();
nextHandler.startPrefixMapping(LocationAttributes.PREFIX, LocationAttributes.URI);
}
-
+
public void endDocument() throws SAXException {
endPrefixMapping(LocationAttributes.PREFIX);
nextHandler.endDocument();
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/location/LocationImpl.java b/core/src/main/java/org/apache/struts2/util/location/LocationImpl.java
similarity index 99%
rename from core/src/main/java/com/opensymphony/xwork2/util/location/LocationImpl.java
rename to core/src/main/java/org/apache/struts2/util/location/LocationImpl.java
index 3f3fc63f1d..02c0987b86 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/location/LocationImpl.java
+++ b/core/src/main/java/org/apache/struts2/util/location/LocationImpl.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.location;
+package org.apache.struts2.util.location;
import org.apache.commons.lang3.StringUtils;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/location/LocationUtils.java b/core/src/main/java/org/apache/struts2/util/location/LocationUtils.java
similarity index 99%
rename from core/src/main/java/com/opensymphony/xwork2/util/location/LocationUtils.java
rename to core/src/main/java/org/apache/struts2/util/location/LocationUtils.java
index 28a677f632..e2da199612 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/location/LocationUtils.java
+++ b/core/src/main/java/org/apache/struts2/util/location/LocationUtils.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.location;
+package org.apache.struts2.util.location;
-import com.opensymphony.xwork2.util.ClassLoaderUtil;
+import org.apache.struts2.util.ClassLoaderUtil;
import org.apache.struts2.config.StrutsJavaConfiguration;
import org.w3c.dom.Element;
import org.xml.sax.Locator;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/location/package.html b/core/src/main/java/org/apache/struts2/util/location/package.html
similarity index 100%
rename from core/src/main/java/com/opensymphony/xwork2/util/location/package.html
rename to core/src/main/java/org/apache/struts2/util/location/package.html
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/package.html b/core/src/main/java/org/apache/struts2/util/package.html
similarity index 100%
rename from core/src/main/java/com/opensymphony/xwork2/util/package.html
rename to core/src/main/java/org/apache/struts2/util/package.html
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/reflection/ReflectionContextFactory.java b/core/src/main/java/org/apache/struts2/util/reflection/ReflectionContextFactory.java
similarity index 96%
rename from core/src/main/java/com/opensymphony/xwork2/util/reflection/ReflectionContextFactory.java
rename to core/src/main/java/org/apache/struts2/util/reflection/ReflectionContextFactory.java
index b8792537b3..5b0075f3bf 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/reflection/ReflectionContextFactory.java
+++ b/core/src/main/java/org/apache/struts2/util/reflection/ReflectionContextFactory.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.reflection;
+package org.apache.struts2.util.reflection;
import java.util.Map;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/reflection/ReflectionContextState.java b/core/src/main/java/org/apache/struts2/util/reflection/ReflectionContextState.java
similarity index 98%
rename from core/src/main/java/com/opensymphony/xwork2/util/reflection/ReflectionContextState.java
rename to core/src/main/java/org/apache/struts2/util/reflection/ReflectionContextState.java
index c3556cfee2..cc2f457c3e 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/reflection/ReflectionContextState.java
+++ b/core/src/main/java/org/apache/struts2/util/reflection/ReflectionContextState.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.reflection;
+package org.apache.struts2.util.reflection;
-import com.opensymphony.xwork2.conversion.impl.XWorkConverter;
+import org.apache.struts2.conversion.impl.XWorkConverter;
import java.util.HashMap;
import java.util.Map;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/reflection/ReflectionException.java b/core/src/main/java/org/apache/struts2/util/reflection/ReflectionException.java
similarity index 97%
rename from core/src/main/java/com/opensymphony/xwork2/util/reflection/ReflectionException.java
rename to core/src/main/java/org/apache/struts2/util/reflection/ReflectionException.java
index 9809d80170..a0272aea4d 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/reflection/ReflectionException.java
+++ b/core/src/main/java/org/apache/struts2/util/reflection/ReflectionException.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.reflection;
+package org.apache.struts2.util.reflection;
import org.apache.struts2.StrutsException;
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/reflection/ReflectionExceptionHandler.java b/core/src/main/java/org/apache/struts2/util/reflection/ReflectionExceptionHandler.java
similarity index 94%
rename from core/src/main/java/com/opensymphony/xwork2/util/reflection/ReflectionExceptionHandler.java
rename to core/src/main/java/org/apache/struts2/util/reflection/ReflectionExceptionHandler.java
index bc66de8e3b..ecdd60b147 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/reflection/ReflectionExceptionHandler.java
+++ b/core/src/main/java/org/apache/struts2/util/reflection/ReflectionExceptionHandler.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.reflection;
+package org.apache.struts2.util.reflection;
/**
* Declares a class that wants to handle its own reflection exceptions
@@ -25,7 +25,7 @@ public interface ReflectionExceptionHandler {
/**
* Handles a reflection exception
- *
+ *
* @param ex The reflection exception
*/
void handle(ReflectionException ex);
diff --git a/core/src/main/java/com/opensymphony/xwork2/util/reflection/ReflectionProvider.java b/core/src/main/java/org/apache/struts2/util/reflection/ReflectionProvider.java
similarity index 96%
rename from core/src/main/java/com/opensymphony/xwork2/util/reflection/ReflectionProvider.java
rename to core/src/main/java/org/apache/struts2/util/reflection/ReflectionProvider.java
index 85945aa791..7ffc19a713 100644
--- a/core/src/main/java/com/opensymphony/xwork2/util/reflection/ReflectionProvider.java
+++ b/core/src/main/java/org/apache/struts2/util/reflection/ReflectionProvider.java
@@ -16,7 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.reflection;
+package org.apache.struts2.util.reflection;
+
+import org.apache.struts2.conversion.impl.XWorkConverter;
import java.beans.IntrospectionException;
import java.beans.PropertyDescriptor;
@@ -26,13 +28,13 @@
import java.util.Map;
public interface ReflectionProvider {
-
+
Method getGetMethod(Class targetClass, String propertyName) throws IntrospectionException, ReflectionException;
-
+
Method getSetMethod(Class targetClass, String propertyName) throws IntrospectionException, ReflectionException;
-
+
Field getField(Class inClass, String name);
-
+
/**
* Sets the object's properties using the default type converter, defaulting to not throw
* exceptions for problems setting the properties.
@@ -53,7 +55,7 @@ public interface ReflectionProvider {
* problems setting the properties
*/
void setProperties(Map props, Object o, Map context, boolean throwPropertyExceptions) throws ReflectionException;
-
+
/**
* Sets the properties on the object using the default context, defaulting to not throwing
* exceptions for problems setting the properties.
@@ -62,7 +64,7 @@ public interface ReflectionProvider {
* @param o object
*/
void setProperties(Map properties, Object o);
-
+
/**
* This method returns a PropertyDescriptor for the given class and property name using
* a Map lookup (using getPropertyDescriptorsMap()).
@@ -79,7 +81,7 @@ public interface ReflectionProvider {
/**
* Copies the properties in the object "from" and sets them in the object "to"
- * using specified type converter, or {@link com.opensymphony.xwork2.conversion.impl.XWorkConverter} if none
+ * using specified type converter, or {@link XWorkConverter} if none
* is specified.
*
* @param from the source object
@@ -94,7 +96,7 @@ public interface ReflectionProvider {
/**
* Copies the properties in the object "from" and sets them in the object "to"
* only setting properties defined in the given "editable" class (or interface)
- * using specified type converter, or {@link com.opensymphony.xwork2.conversion.impl.XWorkConverter} if none
+ * using specified type converter, or {@link XWorkConverter} if none
* is specified.
*
* @param from the source object
@@ -118,7 +120,7 @@ public interface ReflectionProvider {
* @throws ReflectionException in case of reflection problems
*/
Object getRealTarget(String property, Map context, Object root) throws ReflectionException;
-
+
/**
* Sets the named property to the supplied value on the Object,
*
@@ -141,7 +143,7 @@ public interface ReflectionProvider {
* @param context the context which may include the TypeConverter
*/
void setProperty(String name, Object value, Object o, Map context);
-
+
/**
* Creates a Map with read properties for the given source object.
*
@@ -154,7 +156,7 @@ public interface ReflectionProvider {
* @throws IntrospectionException is thrown if an exception occurs during introspection.
*/
Map getBeanMap(Object source) throws IntrospectionException, ReflectionException;
-
+
/**
* Evaluates the given OGNL expression to extract a value from the given root
* object in a given context
@@ -165,7 +167,7 @@ public interface ReflectionProvider {
* @return the result of evaluating the expression
*/
Object getValue( String expression, Map context, Object root ) throws ReflectionException;
-
+
/**
* Evaluates the given OGNL expression to insert a value into the object graph
* rooted at the given root object given the context.
@@ -176,10 +178,10 @@ public interface ReflectionProvider {
* @param value the value to insert into the object graph
*/
void setValue( String expression, Map context, Object root, Object value ) throws ReflectionException;
-
+
/**
* Get's the java beans property descriptors for the given source.
- *
+ *
* @param source the source object.
* @return property descriptors.
* @throws IntrospectionException is thrown if an exception occurs during introspection.
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/ActionValidatorManager.java b/core/src/main/java/org/apache/struts2/validator/ActionValidatorManager.java
similarity index 98%
rename from core/src/main/java/com/opensymphony/xwork2/validator/ActionValidatorManager.java
rename to core/src/main/java/org/apache/struts2/validator/ActionValidatorManager.java
index ea0de3a724..99356a6b3c 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/ActionValidatorManager.java
+++ b/core/src/main/java/org/apache/struts2/validator/ActionValidatorManager.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
+package org.apache.struts2.validator;
import java.util.List;
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/AnnotationActionValidatorManager.java b/core/src/main/java/org/apache/struts2/validator/AnnotationActionValidatorManager.java
similarity index 93%
rename from core/src/main/java/com/opensymphony/xwork2/validator/AnnotationActionValidatorManager.java
rename to core/src/main/java/org/apache/struts2/validator/AnnotationActionValidatorManager.java
index 260c0c5e24..c2d5ca1e11 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/AnnotationActionValidatorManager.java
+++ b/core/src/main/java/org/apache/struts2/validator/AnnotationActionValidatorManager.java
@@ -16,12 +16,12 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
+package org.apache.struts2.validator;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.ActionProxy;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.config.entities.ActionConfig;
import org.apache.commons.lang3.StringUtils;
import java.util.ArrayList;
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/AnnotationValidationConfigurationBuilder.java b/core/src/main/java/org/apache/struts2/validator/AnnotationValidationConfigurationBuilder.java
similarity index 95%
rename from core/src/main/java/com/opensymphony/xwork2/validator/AnnotationValidationConfigurationBuilder.java
rename to core/src/main/java/org/apache/struts2/validator/AnnotationValidationConfigurationBuilder.java
index f1de89269b..fa0a23a07e 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/AnnotationValidationConfigurationBuilder.java
+++ b/core/src/main/java/org/apache/struts2/validator/AnnotationValidationConfigurationBuilder.java
@@ -16,29 +16,29 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
-
-import com.opensymphony.xwork2.util.AnnotationUtils;
-import com.opensymphony.xwork2.validator.annotations.ConditionalVisitorFieldValidator;
-import com.opensymphony.xwork2.validator.annotations.ConversionErrorFieldValidator;
-import com.opensymphony.xwork2.validator.annotations.CreditCardValidator;
-import com.opensymphony.xwork2.validator.annotations.CustomValidator;
-import com.opensymphony.xwork2.validator.annotations.DateRangeFieldValidator;
-import com.opensymphony.xwork2.validator.annotations.DoubleRangeFieldValidator;
-import com.opensymphony.xwork2.validator.annotations.EmailValidator;
-import com.opensymphony.xwork2.validator.annotations.ExpressionValidator;
-import com.opensymphony.xwork2.validator.annotations.FieldExpressionValidator;
-import com.opensymphony.xwork2.validator.annotations.IntRangeFieldValidator;
-import com.opensymphony.xwork2.validator.annotations.LongRangeFieldValidator;
-import com.opensymphony.xwork2.validator.annotations.RegexFieldValidator;
-import com.opensymphony.xwork2.validator.annotations.RequiredFieldValidator;
-import com.opensymphony.xwork2.validator.annotations.RequiredStringValidator;
-import com.opensymphony.xwork2.validator.annotations.ShortRangeFieldValidator;
-import com.opensymphony.xwork2.validator.annotations.StringLengthFieldValidator;
-import com.opensymphony.xwork2.validator.annotations.UrlValidator;
-import com.opensymphony.xwork2.validator.annotations.ValidationParameter;
-import com.opensymphony.xwork2.validator.annotations.Validations;
-import com.opensymphony.xwork2.validator.annotations.VisitorFieldValidator;
+package org.apache.struts2.validator;
+
+import org.apache.struts2.util.AnnotationUtils;
+import org.apache.struts2.validator.annotations.ConditionalVisitorFieldValidator;
+import org.apache.struts2.validator.annotations.ConversionErrorFieldValidator;
+import org.apache.struts2.validator.annotations.CreditCardValidator;
+import org.apache.struts2.validator.annotations.CustomValidator;
+import org.apache.struts2.validator.annotations.DateRangeFieldValidator;
+import org.apache.struts2.validator.annotations.DoubleRangeFieldValidator;
+import org.apache.struts2.validator.annotations.EmailValidator;
+import org.apache.struts2.validator.annotations.ExpressionValidator;
+import org.apache.struts2.validator.annotations.FieldExpressionValidator;
+import org.apache.struts2.validator.annotations.IntRangeFieldValidator;
+import org.apache.struts2.validator.annotations.LongRangeFieldValidator;
+import org.apache.struts2.validator.annotations.RegexFieldValidator;
+import org.apache.struts2.validator.annotations.RequiredFieldValidator;
+import org.apache.struts2.validator.annotations.RequiredStringValidator;
+import org.apache.struts2.validator.annotations.ShortRangeFieldValidator;
+import org.apache.struts2.validator.annotations.StringLengthFieldValidator;
+import org.apache.struts2.validator.annotations.UrlValidator;
+import org.apache.struts2.validator.annotations.ValidationParameter;
+import org.apache.struts2.validator.annotations.Validations;
+import org.apache.struts2.validator.annotations.VisitorFieldValidator;
import org.apache.commons.lang3.StringUtils;
import java.lang.annotation.Annotation;
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/DefaultActionValidatorManager.java b/core/src/main/java/org/apache/struts2/validator/DefaultActionValidatorManager.java
similarity index 97%
rename from core/src/main/java/com/opensymphony/xwork2/validator/DefaultActionValidatorManager.java
rename to core/src/main/java/org/apache/struts2/validator/DefaultActionValidatorManager.java
index f05b804860..275aaf1696 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/DefaultActionValidatorManager.java
+++ b/core/src/main/java/org/apache/struts2/validator/DefaultActionValidatorManager.java
@@ -16,15 +16,15 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
-
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.FileManager;
-import com.opensymphony.xwork2.FileManagerFactory;
-import com.opensymphony.xwork2.TextProviderFactory;
-import com.opensymphony.xwork2.inject.Inject;
-import com.opensymphony.xwork2.util.ClassLoaderUtil;
-import com.opensymphony.xwork2.util.ValueStack;
+package org.apache.struts2.validator;
+
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.FileManager;
+import org.apache.struts2.FileManagerFactory;
+import org.apache.struts2.TextProviderFactory;
+import org.apache.struts2.inject.Inject;
+import org.apache.struts2.util.ClassLoaderUtil;
+import org.apache.struts2.util.ValueStack;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.struts2.StrutsConstants;
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/DefaultValidatorFactory.java b/core/src/main/java/org/apache/struts2/validator/DefaultValidatorFactory.java
similarity index 94%
rename from core/src/main/java/com/opensymphony/xwork2/validator/DefaultValidatorFactory.java
rename to core/src/main/java/org/apache/struts2/validator/DefaultValidatorFactory.java
index 5ae3ee8c07..4e8a233088 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/DefaultValidatorFactory.java
+++ b/core/src/main/java/org/apache/struts2/validator/DefaultValidatorFactory.java
@@ -16,14 +16,14 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
-
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ObjectFactory;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.inject.Initializable;
-import com.opensymphony.xwork2.inject.Inject;
-import com.opensymphony.xwork2.util.ClassLoaderUtil;
+package org.apache.struts2.validator;
+
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ObjectFactory;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.inject.Initializable;
+import org.apache.struts2.inject.Inject;
+import org.apache.struts2.util.ClassLoaderUtil;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.struts2.StrutsException;
@@ -180,7 +180,7 @@ private void parseValidators() {
}
// Parse default validator configurations
- String resourceName = "com/opensymphony/xwork2/validator/validators/default.xml";
+ String resourceName = "org/apache/struts2/validator/validators/default.xml";
retrieveValidatorConfiguration(resourceName);
// Overwrite and extend defaults with application specific validator configurations
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/DefaultValidatorFileParser.java b/core/src/main/java/org/apache/struts2/validator/DefaultValidatorFileParser.java
similarity index 96%
rename from core/src/main/java/com/opensymphony/xwork2/validator/DefaultValidatorFileParser.java
rename to core/src/main/java/org/apache/struts2/validator/DefaultValidatorFileParser.java
index a576439db3..d61ff4595b 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/DefaultValidatorFileParser.java
+++ b/core/src/main/java/org/apache/struts2/validator/DefaultValidatorFileParser.java
@@ -16,14 +16,14 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
-
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ObjectFactory;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.config.providers.XmlHelper;
-import com.opensymphony.xwork2.inject.Inject;
-import com.opensymphony.xwork2.util.DomHelper;
+package org.apache.struts2.validator;
+
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ObjectFactory;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.config.providers.XmlHelper;
+import org.apache.struts2.inject.Inject;
+import org.apache.struts2.util.DomHelper;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.w3c.dom.CharacterData;
@@ -53,7 +53,7 @@
* @author Rene Gielen
* @author Martin Gilday
*
- * @see com.opensymphony.xwork2.validator.ValidatorConfig
+ * @see ValidatorConfig
*/
public class DefaultValidatorFileParser implements ValidatorFileParser {
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/DelegatingValidatorContext.java b/core/src/main/java/org/apache/struts2/validator/DelegatingValidatorContext.java
similarity index 96%
rename from core/src/main/java/com/opensymphony/xwork2/validator/DelegatingValidatorContext.java
rename to core/src/main/java/org/apache/struts2/validator/DelegatingValidatorContext.java
index 63e8c1d191..fd8b5cb2e1 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/DelegatingValidatorContext.java
+++ b/core/src/main/java/org/apache/struts2/validator/DelegatingValidatorContext.java
@@ -16,16 +16,16 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
-
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.CompositeTextProvider;
-import com.opensymphony.xwork2.LocaleProvider;
-import com.opensymphony.xwork2.LocaleProviderFactory;
-import com.opensymphony.xwork2.TextProvider;
-import com.opensymphony.xwork2.TextProviderFactory;
-import com.opensymphony.xwork2.interceptor.ValidationAware;
-import com.opensymphony.xwork2.util.ValueStack;
+package org.apache.struts2.validator;
+
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.CompositeTextProvider;
+import org.apache.struts2.LocaleProvider;
+import org.apache.struts2.LocaleProviderFactory;
+import org.apache.struts2.TextProvider;
+import org.apache.struts2.TextProviderFactory;
+import org.apache.struts2.interceptor.ValidationAware;
+import org.apache.struts2.util.ValueStack;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/FieldValidator.java b/core/src/main/java/org/apache/struts2/validator/FieldValidator.java
similarity index 96%
rename from core/src/main/java/com/opensymphony/xwork2/validator/FieldValidator.java
rename to core/src/main/java/org/apache/struts2/validator/FieldValidator.java
index 1536ded13a..c3af5c225f 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/FieldValidator.java
+++ b/core/src/main/java/org/apache/struts2/validator/FieldValidator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
+package org.apache.struts2.validator;
/**
* The FieldValidator interface defines the methods to be implemented by FieldValidators.
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/ShortCircuitableValidator.java b/core/src/main/java/org/apache/struts2/validator/ShortCircuitableValidator.java
similarity index 97%
rename from core/src/main/java/com/opensymphony/xwork2/validator/ShortCircuitableValidator.java
rename to core/src/main/java/org/apache/struts2/validator/ShortCircuitableValidator.java
index 9e6372dba6..05d4faeb03 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/ShortCircuitableValidator.java
+++ b/core/src/main/java/org/apache/struts2/validator/ShortCircuitableValidator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
+package org.apache.struts2.validator;
/**
* This interface should be implemented by validators that can short-circuit the validator queue
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/ValidationException.java b/core/src/main/java/org/apache/struts2/validator/ValidationException.java
similarity index 96%
rename from core/src/main/java/com/opensymphony/xwork2/validator/ValidationException.java
rename to core/src/main/java/org/apache/struts2/validator/ValidationException.java
index ec0e516a82..b0a7df359f 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/ValidationException.java
+++ b/core/src/main/java/org/apache/struts2/validator/ValidationException.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
+package org.apache.struts2.validator;
/**
* ValidationException.
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/ValidationInterceptor.java b/core/src/main/java/org/apache/struts2/validator/ValidationInterceptor.java
similarity index 92%
rename from core/src/main/java/com/opensymphony/xwork2/validator/ValidationInterceptor.java
rename to core/src/main/java/org/apache/struts2/validator/ValidationInterceptor.java
index b0852ed035..0b7d49f97d 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/ValidationInterceptor.java
+++ b/core/src/main/java/org/apache/struts2/validator/ValidationInterceptor.java
@@ -16,15 +16,15 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
+package org.apache.struts2.validator;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.ActionProxy;
-import com.opensymphony.xwork2.Validateable;
-import com.opensymphony.xwork2.inject.Inject;
-import com.opensymphony.xwork2.interceptor.MethodFilterInterceptor;
-import com.opensymphony.xwork2.interceptor.PrefixMethodInvocationUtil;
-import com.opensymphony.xwork2.interceptor.ValidationAware;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.Validateable;
+import org.apache.struts2.inject.Inject;
+import org.apache.struts2.interceptor.MethodFilterInterceptor;
+import org.apache.struts2.interceptor.PrefixMethodInvocationUtil;
+import org.apache.struts2.interceptor.ValidationAware;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@@ -71,9 +71,9 @@
* - programmatic - Defaults to true. If true and the action is Validateable call validate(),
* and any method that starts with "validate".
*
- *
+ *
* - declarative - Defaults to true. Perform validation based on xml or annotations.
- *
+ *
*
*
*
@@ -90,14 +90,14 @@
*
*
*
- *
+ *
* <action name="someAction" class="com.examples.SomeAction">
* <interceptor-ref name="params"/>
* <interceptor-ref name="validation"/>
* <interceptor-ref name="workflow"/>
* <result name="success">good_result.ftl</result>
* </action>
- *
+ *
* <-- in the following case myMethod of the action class will not
* get validated -->
* <action name="someAction" class="com.examples.SomeAction">
@@ -108,7 +108,7 @@
* <interceptor-ref name="workflow"/>
* <result name="success">good_result.ftl</result>
* </action>
- *
+ *
* <-- in the following case only annotated methods of the action class will
* be validated -->
* <action name="someAction" class="com.examples.SomeAction">
@@ -128,7 +128,7 @@
* @author Rainer Hermanns
* @author Alexandru Popescu
* @see ActionValidatorManager
- * @see com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor
+ * @see org.apache.struts2.interceptor.DefaultWorkflowInterceptor
*/
public class ValidationInterceptor extends MethodFilterInterceptor {
@@ -138,9 +138,9 @@ public class ValidationInterceptor extends MethodFilterInterceptor {
private final static String ALT_VALIDATE_PREFIX = "validateDo";
private boolean validateAnnotatedMethodOnly;
-
+
private ActionValidatorManager actionValidatorManager;
-
+
private boolean alwaysInvokeValidate = true;
private boolean programmatic = true;
private boolean declarative = true;
@@ -149,11 +149,11 @@ public class ValidationInterceptor extends MethodFilterInterceptor {
public void setActionValidatorManager(ActionValidatorManager mgr) {
this.actionValidatorManager = mgr;
}
-
+
/**
* Determines if {@link Validateable}'s validate()
should be called,
* as well as methods whose name that start with "validate". Defaults to "true".
- *
+ *
* @param programmatic true then validate()
is invoked.
*/
public void setProgrammatic(boolean programmatic) {
@@ -161,9 +161,9 @@ public void setProgrammatic(boolean programmatic) {
}
/**
- * Determines if validation based on annotations or xml should be performed. Defaults
+ * Determines if validation based on annotations or xml should be performed. Defaults
* to "true".
- *
+ *
* @param declarative true then perform validation based on annotations or xml.
*/
public void setDeclarative(boolean declarative) {
@@ -171,9 +171,9 @@ public void setDeclarative(boolean declarative) {
}
/**
- * Determines if {@link Validateable}'s validate()
should always
+ * Determines if {@link Validateable}'s validate()
should always
* be invoked. Default to "true".
- *
+ *
* @param alwaysInvokeValidate true then validate()
is always invoked.
*/
public void setAlwaysInvokeValidate(String alwaysInvokeValidate) {
@@ -218,7 +218,7 @@ protected void doBeforeInvocation(ActionInvocation invocation) throws Exception
if (LOG.isDebugEnabled()) {
LOG.debug("Validating {}/{} with method {}.", invocation.getProxy().getNamespace(), invocation.getProxy().getActionName(), method);
}
-
+
if (declarative) {
if (validateAnnotatedMethodOnly) {
@@ -226,12 +226,12 @@ protected void doBeforeInvocation(ActionInvocation invocation) throws Exception
} else {
actionValidatorManager.validate(action, context);
}
- }
-
+ }
+
if (action instanceof Validateable && programmatic) {
// keep exception that might occured in validateXXX or validateDoXXX
- Exception exception = null;
-
+ Exception exception = null;
+
Validateable validateable = (Validateable) action;
LOG.debug("Invoking validate() on action {}", validateable);
@@ -239,19 +239,19 @@ protected void doBeforeInvocation(ActionInvocation invocation) throws Exception
PrefixMethodInvocationUtil.invokePrefixMethod(invocation, new String[]{VALIDATE_PREFIX, ALT_VALIDATE_PREFIX});
}
catch(Exception e) {
- // If any exception occurred while doing reflection, we want
+ // If any exception occurred while doing reflection, we want
// validate() to be executed
LOG.warn("an exception occured while executing the prefix method", e);
exception = e;
}
-
-
+
+
if (alwaysInvokeValidate) {
validateable.validate();
}
-
- if (exception != null) {
- // rethrow if something is wrong while doing validateXXX / validateDoXXX
+
+ if (exception != null) {
+ // rethrow if something is wrong while doing validateXXX / validateDoXXX
throw exception;
}
}
@@ -262,7 +262,7 @@ protected String doIntercept(ActionInvocation invocation) throws Exception {
doBeforeInvocation(invocation);
return invocation.invoke();
}
-
+
/**
*
* Returns the context that will be used by the
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/Validator.java b/core/src/main/java/org/apache/struts2/validator/Validator.java
similarity index 99%
rename from core/src/main/java/com/opensymphony/xwork2/validator/Validator.java
rename to core/src/main/java/org/apache/struts2/validator/Validator.java
index 6550e513a0..02244818fe 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/Validator.java
+++ b/core/src/main/java/org/apache/struts2/validator/Validator.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
+package org.apache.struts2.validator;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
/**
*
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/ValidatorConfig.java b/core/src/main/java/org/apache/struts2/validator/ValidatorConfig.java
similarity index 96%
rename from core/src/main/java/com/opensymphony/xwork2/validator/ValidatorConfig.java
rename to core/src/main/java/org/apache/struts2/validator/ValidatorConfig.java
index 4fb4933286..d291c25e91 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/ValidatorConfig.java
+++ b/core/src/main/java/org/apache/struts2/validator/ValidatorConfig.java
@@ -16,10 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
+package org.apache.struts2.validator;
-import com.opensymphony.xwork2.util.location.Located;
-import com.opensymphony.xwork2.util.location.Location;
+import org.apache.struts2.util.location.Located;
+import org.apache.struts2.util.location.Location;
import java.util.Collections;
import java.util.LinkedHashMap;
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/ValidatorContext.java b/core/src/main/java/org/apache/struts2/validator/ValidatorContext.java
similarity index 87%
rename from core/src/main/java/com/opensymphony/xwork2/validator/ValidatorContext.java
rename to core/src/main/java/org/apache/struts2/validator/ValidatorContext.java
index dd5f6f8b6f..f5401b7ce7 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/ValidatorContext.java
+++ b/core/src/main/java/org/apache/struts2/validator/ValidatorContext.java
@@ -16,11 +16,11 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
+package org.apache.struts2.validator;
-import com.opensymphony.xwork2.LocaleProvider;
-import com.opensymphony.xwork2.TextProvider;
-import com.opensymphony.xwork2.interceptor.ValidationAware;
+import org.apache.struts2.LocaleProvider;
+import org.apache.struts2.TextProvider;
+import org.apache.struts2.interceptor.ValidationAware;
/**
* The context for validation. This interface extends others to provide methods for reporting
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/ValidatorFactory.java b/core/src/main/java/org/apache/struts2/validator/ValidatorFactory.java
similarity index 97%
rename from core/src/main/java/com/opensymphony/xwork2/validator/ValidatorFactory.java
rename to core/src/main/java/org/apache/struts2/validator/ValidatorFactory.java
index f085d1b127..9b172ecffe 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/ValidatorFactory.java
+++ b/core/src/main/java/org/apache/struts2/validator/ValidatorFactory.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
+package org.apache.struts2.validator;
/**
* ValidatorFactory
@@ -37,7 +37,7 @@
* validators.xml if being defined should be available in the classpath. However
* this is not necessary, if no custom validator is needed. Predefined sets of validators
* will automatically be picked up when defined in
- * com/opensymphony/xwork2/validator/validators/default.xml packaged in
+ * org/apache/struts2/validator/validators/default.xml packaged in
* in the xwork jar file. See ValidatorFactory static block for details.
*
*
@@ -49,7 +49,7 @@
* place in the classpath, do remember to copy all the other pre-defined validators
* that is needed into the validators.xml as if not they will not be registered.
* Once a validators.xml is detected in the classpath, the default one
- * (com/opensymphony/xwork2/validator/validators/default.xml) will not be loaded.
+ * (org/apache/struts2/validator/validators/default.xml) will not be loaded.
* It is only loaded when a custom validators.xml cannot be found in the classpath.
* Be careful.
*
@@ -65,7 +65,7 @@
*
*
*
- * <interceptor name="validator" class="com.opensymphony.xwork2.validator.ValidationInterceptor"/>
+ * <interceptor name="validator" class="org.apache.struts2.validator.ValidationInterceptor"/>
*
*
*
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/ValidatorFileParser.java b/core/src/main/java/org/apache/struts2/validator/ValidatorFileParser.java
similarity index 95%
rename from core/src/main/java/com/opensymphony/xwork2/validator/ValidatorFileParser.java
rename to core/src/main/java/org/apache/struts2/validator/ValidatorFileParser.java
index 1927ced83c..5fbb1d1508 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/ValidatorFileParser.java
+++ b/core/src/main/java/org/apache/struts2/validator/ValidatorFileParser.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
+package org.apache.struts2.validator;
import java.io.InputStream;
import java.util.List;
@@ -41,7 +41,7 @@
* @author Rob Harrop
* @author Rene Gielen
*
- * @see com.opensymphony.xwork2.validator.ValidatorConfig
+ * @see org.apache.struts2.validator.ValidatorConfig
*/
public interface ValidatorFileParser {
/**
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/annotations/ConditionalVisitorFieldValidator.java b/core/src/main/java/org/apache/struts2/validator/annotations/ConditionalVisitorFieldValidator.java
similarity index 99%
rename from core/src/main/java/com/opensymphony/xwork2/validator/annotations/ConditionalVisitorFieldValidator.java
rename to core/src/main/java/org/apache/struts2/validator/annotations/ConditionalVisitorFieldValidator.java
index 693fb8faf4..8915837df7 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/annotations/ConditionalVisitorFieldValidator.java
+++ b/core/src/main/java/org/apache/struts2/validator/annotations/ConditionalVisitorFieldValidator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.annotations;
+package org.apache.struts2.validator.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/annotations/ConversionErrorFieldValidator.java b/core/src/main/java/org/apache/struts2/validator/annotations/ConversionErrorFieldValidator.java
similarity index 98%
rename from core/src/main/java/com/opensymphony/xwork2/validator/annotations/ConversionErrorFieldValidator.java
rename to core/src/main/java/org/apache/struts2/validator/annotations/ConversionErrorFieldValidator.java
index b76cea8fcb..97b9943d44 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/annotations/ConversionErrorFieldValidator.java
+++ b/core/src/main/java/org/apache/struts2/validator/annotations/ConversionErrorFieldValidator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.annotations;
+package org.apache.struts2.validator.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/annotations/CreditCardValidator.java b/core/src/main/java/org/apache/struts2/validator/annotations/CreditCardValidator.java
similarity index 97%
rename from core/src/main/java/com/opensymphony/xwork2/validator/annotations/CreditCardValidator.java
rename to core/src/main/java/org/apache/struts2/validator/annotations/CreditCardValidator.java
index 1a0bc7529f..c7eb204f0c 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/annotations/CreditCardValidator.java
+++ b/core/src/main/java/org/apache/struts2/validator/annotations/CreditCardValidator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.annotations;
+package org.apache.struts2.validator.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/annotations/CustomValidator.java b/core/src/main/java/org/apache/struts2/validator/annotations/CustomValidator.java
similarity index 98%
rename from core/src/main/java/com/opensymphony/xwork2/validator/annotations/CustomValidator.java
rename to core/src/main/java/org/apache/struts2/validator/annotations/CustomValidator.java
index f4ca87b48c..0b95ffc53d 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/annotations/CustomValidator.java
+++ b/core/src/main/java/org/apache/struts2/validator/annotations/CustomValidator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.annotations;
+package org.apache.struts2.validator.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/annotations/DateRangeFieldValidator.java b/core/src/main/java/org/apache/struts2/validator/annotations/DateRangeFieldValidator.java
similarity index 99%
rename from core/src/main/java/com/opensymphony/xwork2/validator/annotations/DateRangeFieldValidator.java
rename to core/src/main/java/org/apache/struts2/validator/annotations/DateRangeFieldValidator.java
index 69c9291dee..d3fa0bb7ef 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/annotations/DateRangeFieldValidator.java
+++ b/core/src/main/java/org/apache/struts2/validator/annotations/DateRangeFieldValidator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.annotations;
+package org.apache.struts2.validator.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/annotations/DoubleRangeFieldValidator.java b/core/src/main/java/org/apache/struts2/validator/annotations/DoubleRangeFieldValidator.java
similarity index 99%
rename from core/src/main/java/com/opensymphony/xwork2/validator/annotations/DoubleRangeFieldValidator.java
rename to core/src/main/java/org/apache/struts2/validator/annotations/DoubleRangeFieldValidator.java
index c617fbecf9..08c7857dd5 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/annotations/DoubleRangeFieldValidator.java
+++ b/core/src/main/java/org/apache/struts2/validator/annotations/DoubleRangeFieldValidator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.annotations;
+package org.apache.struts2.validator.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/annotations/EmailValidator.java b/core/src/main/java/org/apache/struts2/validator/annotations/EmailValidator.java
similarity index 98%
rename from core/src/main/java/com/opensymphony/xwork2/validator/annotations/EmailValidator.java
rename to core/src/main/java/org/apache/struts2/validator/annotations/EmailValidator.java
index d42c343161..ad194e682b 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/annotations/EmailValidator.java
+++ b/core/src/main/java/org/apache/struts2/validator/annotations/EmailValidator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.annotations;
+package org.apache.struts2.validator.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/annotations/ExpressionValidator.java b/core/src/main/java/org/apache/struts2/validator/annotations/ExpressionValidator.java
similarity index 98%
rename from core/src/main/java/com/opensymphony/xwork2/validator/annotations/ExpressionValidator.java
rename to core/src/main/java/org/apache/struts2/validator/annotations/ExpressionValidator.java
index 51a641343a..4dfda8a950 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/annotations/ExpressionValidator.java
+++ b/core/src/main/java/org/apache/struts2/validator/annotations/ExpressionValidator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.annotations;
+package org.apache.struts2.validator.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/annotations/FieldExpressionValidator.java b/core/src/main/java/org/apache/struts2/validator/annotations/FieldExpressionValidator.java
similarity index 98%
rename from core/src/main/java/com/opensymphony/xwork2/validator/annotations/FieldExpressionValidator.java
rename to core/src/main/java/org/apache/struts2/validator/annotations/FieldExpressionValidator.java
index 51c28be6ba..12b4f9c091 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/annotations/FieldExpressionValidator.java
+++ b/core/src/main/java/org/apache/struts2/validator/annotations/FieldExpressionValidator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.annotations;
+package org.apache.struts2.validator.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/annotations/IntRangeFieldValidator.java b/core/src/main/java/org/apache/struts2/validator/annotations/IntRangeFieldValidator.java
similarity index 99%
rename from core/src/main/java/com/opensymphony/xwork2/validator/annotations/IntRangeFieldValidator.java
rename to core/src/main/java/org/apache/struts2/validator/annotations/IntRangeFieldValidator.java
index bcf438a742..f7c7b80197 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/annotations/IntRangeFieldValidator.java
+++ b/core/src/main/java/org/apache/struts2/validator/annotations/IntRangeFieldValidator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.annotations;
+package org.apache.struts2.validator.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/annotations/LongRangeFieldValidator.java b/core/src/main/java/org/apache/struts2/validator/annotations/LongRangeFieldValidator.java
similarity index 99%
rename from core/src/main/java/com/opensymphony/xwork2/validator/annotations/LongRangeFieldValidator.java
rename to core/src/main/java/org/apache/struts2/validator/annotations/LongRangeFieldValidator.java
index 1234da5b2f..17240f3d5b 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/annotations/LongRangeFieldValidator.java
+++ b/core/src/main/java/org/apache/struts2/validator/annotations/LongRangeFieldValidator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.annotations;
+package org.apache.struts2.validator.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/annotations/RegexFieldValidator.java b/core/src/main/java/org/apache/struts2/validator/annotations/RegexFieldValidator.java
similarity index 99%
rename from core/src/main/java/com/opensymphony/xwork2/validator/annotations/RegexFieldValidator.java
rename to core/src/main/java/org/apache/struts2/validator/annotations/RegexFieldValidator.java
index 186f39f4d1..a415738d66 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/annotations/RegexFieldValidator.java
+++ b/core/src/main/java/org/apache/struts2/validator/annotations/RegexFieldValidator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.annotations;
+package org.apache.struts2.validator.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/annotations/RequiredFieldValidator.java b/core/src/main/java/org/apache/struts2/validator/annotations/RequiredFieldValidator.java
similarity index 98%
rename from core/src/main/java/com/opensymphony/xwork2/validator/annotations/RequiredFieldValidator.java
rename to core/src/main/java/org/apache/struts2/validator/annotations/RequiredFieldValidator.java
index 55548cf5b4..9770266106 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/annotations/RequiredFieldValidator.java
+++ b/core/src/main/java/org/apache/struts2/validator/annotations/RequiredFieldValidator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.annotations;
+package org.apache.struts2.validator.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/annotations/RequiredStringValidator.java b/core/src/main/java/org/apache/struts2/validator/annotations/RequiredStringValidator.java
similarity index 98%
rename from core/src/main/java/com/opensymphony/xwork2/validator/annotations/RequiredStringValidator.java
rename to core/src/main/java/org/apache/struts2/validator/annotations/RequiredStringValidator.java
index 9636a4ce48..9ce425a7b3 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/annotations/RequiredStringValidator.java
+++ b/core/src/main/java/org/apache/struts2/validator/annotations/RequiredStringValidator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.annotations;
+package org.apache.struts2.validator.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/annotations/ShortRangeFieldValidator.java b/core/src/main/java/org/apache/struts2/validator/annotations/ShortRangeFieldValidator.java
similarity index 99%
rename from core/src/main/java/com/opensymphony/xwork2/validator/annotations/ShortRangeFieldValidator.java
rename to core/src/main/java/org/apache/struts2/validator/annotations/ShortRangeFieldValidator.java
index 66143530ca..0d419ab8a8 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/annotations/ShortRangeFieldValidator.java
+++ b/core/src/main/java/org/apache/struts2/validator/annotations/ShortRangeFieldValidator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.annotations;
+package org.apache.struts2.validator.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/annotations/StringLengthFieldValidator.java b/core/src/main/java/org/apache/struts2/validator/annotations/StringLengthFieldValidator.java
similarity index 99%
rename from core/src/main/java/com/opensymphony/xwork2/validator/annotations/StringLengthFieldValidator.java
rename to core/src/main/java/org/apache/struts2/validator/annotations/StringLengthFieldValidator.java
index e9e9833f8b..1f596a94d8 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/annotations/StringLengthFieldValidator.java
+++ b/core/src/main/java/org/apache/struts2/validator/annotations/StringLengthFieldValidator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.annotations;
+package org.apache.struts2.validator.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/annotations/UrlValidator.java b/core/src/main/java/org/apache/struts2/validator/annotations/UrlValidator.java
similarity index 97%
rename from core/src/main/java/com/opensymphony/xwork2/validator/annotations/UrlValidator.java
rename to core/src/main/java/org/apache/struts2/validator/annotations/UrlValidator.java
index 9bac722ecc..5b144a9ab0 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/annotations/UrlValidator.java
+++ b/core/src/main/java/org/apache/struts2/validator/annotations/UrlValidator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.annotations;
+package org.apache.struts2.validator.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/annotations/ValidationParameter.java b/core/src/main/java/org/apache/struts2/validator/annotations/ValidationParameter.java
similarity index 97%
rename from core/src/main/java/com/opensymphony/xwork2/validator/annotations/ValidationParameter.java
rename to core/src/main/java/org/apache/struts2/validator/annotations/ValidationParameter.java
index 04b80d30e4..7a8cdeee61 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/annotations/ValidationParameter.java
+++ b/core/src/main/java/org/apache/struts2/validator/annotations/ValidationParameter.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.annotations;
+package org.apache.struts2.validator.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/annotations/Validations.java b/core/src/main/java/org/apache/struts2/validator/annotations/Validations.java
similarity index 99%
rename from core/src/main/java/com/opensymphony/xwork2/validator/annotations/Validations.java
rename to core/src/main/java/org/apache/struts2/validator/annotations/Validations.java
index e4925ae1aa..87c89d2fbb 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/annotations/Validations.java
+++ b/core/src/main/java/org/apache/struts2/validator/annotations/Validations.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.annotations;
+package org.apache.struts2.validator.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/annotations/ValidatorType.java b/core/src/main/java/org/apache/struts2/validator/annotations/ValidatorType.java
similarity index 95%
rename from core/src/main/java/com/opensymphony/xwork2/validator/annotations/ValidatorType.java
rename to core/src/main/java/org/apache/struts2/validator/annotations/ValidatorType.java
index 9d9c5e80f8..96d7c6d29b 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/annotations/ValidatorType.java
+++ b/core/src/main/java/org/apache/struts2/validator/annotations/ValidatorType.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.annotations;
+package org.apache.struts2.validator.annotations;
/**
* ValidatorType
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/annotations/VisitorFieldValidator.java b/core/src/main/java/org/apache/struts2/validator/annotations/VisitorFieldValidator.java
similarity index 99%
rename from core/src/main/java/com/opensymphony/xwork2/validator/annotations/VisitorFieldValidator.java
rename to core/src/main/java/org/apache/struts2/validator/annotations/VisitorFieldValidator.java
index c8e7146b26..d9ed17bd0b 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/annotations/VisitorFieldValidator.java
+++ b/core/src/main/java/org/apache/struts2/validator/annotations/VisitorFieldValidator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.annotations;
+package org.apache.struts2.validator.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/annotations/package.html b/core/src/main/java/org/apache/struts2/validator/annotations/package.html
similarity index 100%
rename from core/src/main/java/com/opensymphony/xwork2/validator/annotations/package.html
rename to core/src/main/java/org/apache/struts2/validator/annotations/package.html
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/package.html b/core/src/main/java/org/apache/struts2/validator/package.html
similarity index 100%
rename from core/src/main/java/com/opensymphony/xwork2/validator/package.html
rename to core/src/main/java/org/apache/struts2/validator/package.html
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/validators/ConditionalVisitorFieldValidator.java b/core/src/main/java/org/apache/struts2/validator/validators/ConditionalVisitorFieldValidator.java
similarity index 96%
rename from core/src/main/java/com/opensymphony/xwork2/validator/validators/ConditionalVisitorFieldValidator.java
rename to core/src/main/java/org/apache/struts2/validator/validators/ConditionalVisitorFieldValidator.java
index f0ef9dbc73..242ea7ea7c 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/validators/ConditionalVisitorFieldValidator.java
+++ b/core/src/main/java/org/apache/struts2/validator/validators/ConditionalVisitorFieldValidator.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.validators;
+package org.apache.struts2.validator.validators;
-import com.opensymphony.xwork2.validator.ValidationException;
+import org.apache.struts2.validator.ValidationException;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/validators/ConversionErrorFieldValidator.java b/core/src/main/java/org/apache/struts2/validator/validators/ConversionErrorFieldValidator.java
similarity index 91%
rename from core/src/main/java/com/opensymphony/xwork2/validator/validators/ConversionErrorFieldValidator.java
rename to core/src/main/java/org/apache/struts2/validator/validators/ConversionErrorFieldValidator.java
index 94e0d7eade..03ea36a9dd 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/validators/ConversionErrorFieldValidator.java
+++ b/core/src/main/java/org/apache/struts2/validator/validators/ConversionErrorFieldValidator.java
@@ -16,12 +16,12 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.validators;
+package org.apache.struts2.validator.validators;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.conversion.impl.ConversionData;
-import com.opensymphony.xwork2.conversion.impl.XWorkConverter;
-import com.opensymphony.xwork2.validator.ValidationException;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.conversion.impl.ConversionData;
+import org.apache.struts2.conversion.impl.XWorkConverter;
+import org.apache.struts2.validator.ValidationException;
import org.apache.commons.lang3.StringUtils;
import java.util.Map;
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/validators/CreditCardValidator.java b/core/src/main/java/org/apache/struts2/validator/validators/CreditCardValidator.java
similarity index 97%
rename from core/src/main/java/com/opensymphony/xwork2/validator/validators/CreditCardValidator.java
rename to core/src/main/java/org/apache/struts2/validator/validators/CreditCardValidator.java
index 4f8d3e239f..084fed23ff 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/validators/CreditCardValidator.java
+++ b/core/src/main/java/org/apache/struts2/validator/validators/CreditCardValidator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.validators;
+package org.apache.struts2.validator.validators;
import org.apache.commons.lang3.StringUtils;
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/validators/DateRangeFieldValidator.java b/core/src/main/java/org/apache/struts2/validator/validators/DateRangeFieldValidator.java
similarity index 98%
rename from core/src/main/java/com/opensymphony/xwork2/validator/validators/DateRangeFieldValidator.java
rename to core/src/main/java/org/apache/struts2/validator/validators/DateRangeFieldValidator.java
index 2159bf7c0c..e84744815b 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/validators/DateRangeFieldValidator.java
+++ b/core/src/main/java/org/apache/struts2/validator/validators/DateRangeFieldValidator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.validators;
+package org.apache.struts2.validator.validators;
import java.util.Date;
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/validators/DoubleRangeFieldValidator.java b/core/src/main/java/org/apache/struts2/validator/validators/DoubleRangeFieldValidator.java
similarity index 98%
rename from core/src/main/java/com/opensymphony/xwork2/validator/validators/DoubleRangeFieldValidator.java
rename to core/src/main/java/org/apache/struts2/validator/validators/DoubleRangeFieldValidator.java
index 214e4ed186..cc571cebf1 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/validators/DoubleRangeFieldValidator.java
+++ b/core/src/main/java/org/apache/struts2/validator/validators/DoubleRangeFieldValidator.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.validators;
+package org.apache.struts2.validator.validators;
-import com.opensymphony.xwork2.validator.ValidationException;
+import org.apache.struts2.validator.ValidationException;
import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/validators/EmailValidator.java b/core/src/main/java/org/apache/struts2/validator/validators/EmailValidator.java
similarity index 98%
rename from core/src/main/java/com/opensymphony/xwork2/validator/validators/EmailValidator.java
rename to core/src/main/java/org/apache/struts2/validator/validators/EmailValidator.java
index 92c779152d..636b5f8d87 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/validators/EmailValidator.java
+++ b/core/src/main/java/org/apache/struts2/validator/validators/EmailValidator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.validators;
+package org.apache.struts2.validator.validators;
/**
*
@@ -30,8 +30,8 @@
*
* You can also specify expression, caseSensitive and trim params as a OGNL expression, see the example below.
*
- *
- *
+ *
+ *
*
*
* - fieldName - The field name this validator is validating. Required if using Plain-Validator Syntax otherwise not required
@@ -42,7 +42,7 @@
*
* Do not use ${regexExpression}, ${caseSensitiveExpression} and ${trimExpression} as an expression as this will turn into infinitive loop!
*
- *
+ *
*
*
* <!-- Plain Validator Syntax -->
@@ -52,7 +52,7 @@
* <message>Must provide a valid email</message>
* </validator>
* </validators>
- *
+ *
* <!-- Field Validator Syntax -->
* <field name="myEmail">
* <field-validator type="email">
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/validators/ExpressionValidator.java b/core/src/main/java/org/apache/struts2/validator/validators/ExpressionValidator.java
similarity index 95%
rename from core/src/main/java/com/opensymphony/xwork2/validator/validators/ExpressionValidator.java
rename to core/src/main/java/org/apache/struts2/validator/validators/ExpressionValidator.java
index 88753fb0fc..ab1c740c1d 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/validators/ExpressionValidator.java
+++ b/core/src/main/java/org/apache/struts2/validator/validators/ExpressionValidator.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.validators;
+package org.apache.struts2.validator.validators;
-import com.opensymphony.xwork2.validator.ValidationException;
+import org.apache.struts2.validator.ValidationException;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/validators/FieldExpressionValidator.java b/core/src/main/java/org/apache/struts2/validator/validators/FieldExpressionValidator.java
similarity index 96%
rename from core/src/main/java/com/opensymphony/xwork2/validator/validators/FieldExpressionValidator.java
rename to core/src/main/java/org/apache/struts2/validator/validators/FieldExpressionValidator.java
index 68f875ebef..0a9a739d04 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/validators/FieldExpressionValidator.java
+++ b/core/src/main/java/org/apache/struts2/validator/validators/FieldExpressionValidator.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.validators;
+package org.apache.struts2.validator.validators;
-import com.opensymphony.xwork2.validator.ValidationException;
+import org.apache.struts2.validator.ValidationException;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/validators/FieldValidatorSupport.java b/core/src/main/java/org/apache/struts2/validator/validators/FieldValidatorSupport.java
similarity index 93%
rename from core/src/main/java/com/opensymphony/xwork2/validator/validators/FieldValidatorSupport.java
rename to core/src/main/java/org/apache/struts2/validator/validators/FieldValidatorSupport.java
index 61d0ea7633..70bb07808e 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/validators/FieldValidatorSupport.java
+++ b/core/src/main/java/org/apache/struts2/validator/validators/FieldValidatorSupport.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.validators;
+package org.apache.struts2.validator.validators;
-import com.opensymphony.xwork2.validator.FieldValidator;
+import org.apache.struts2.validator.FieldValidator;
/**
* Base class for field validators.
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/validators/IntRangeFieldValidator.java b/core/src/main/java/org/apache/struts2/validator/validators/IntRangeFieldValidator.java
similarity index 98%
rename from core/src/main/java/com/opensymphony/xwork2/validator/validators/IntRangeFieldValidator.java
rename to core/src/main/java/org/apache/struts2/validator/validators/IntRangeFieldValidator.java
index 25b98a1383..e3ec01944c 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/validators/IntRangeFieldValidator.java
+++ b/core/src/main/java/org/apache/struts2/validator/validators/IntRangeFieldValidator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.validators;
+package org.apache.struts2.validator.validators;
/**
*
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/validators/LongRangeFieldValidator.java b/core/src/main/java/org/apache/struts2/validator/validators/LongRangeFieldValidator.java
similarity index 98%
rename from core/src/main/java/com/opensymphony/xwork2/validator/validators/LongRangeFieldValidator.java
rename to core/src/main/java/org/apache/struts2/validator/validators/LongRangeFieldValidator.java
index 028b4c2f85..ce1f7bf1e4 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/validators/LongRangeFieldValidator.java
+++ b/core/src/main/java/org/apache/struts2/validator/validators/LongRangeFieldValidator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.validators;
+package org.apache.struts2.validator.validators;
/**
*
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/validators/RangeValidatorSupport.java b/core/src/main/java/org/apache/struts2/validator/validators/RangeValidatorSupport.java
similarity index 97%
rename from core/src/main/java/com/opensymphony/xwork2/validator/validators/RangeValidatorSupport.java
rename to core/src/main/java/org/apache/struts2/validator/validators/RangeValidatorSupport.java
index b713262c56..f9a9db82bf 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/validators/RangeValidatorSupport.java
+++ b/core/src/main/java/org/apache/struts2/validator/validators/RangeValidatorSupport.java
@@ -16,11 +16,11 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.validators;
+package org.apache.struts2.validator.validators;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.LogManager;
-import com.opensymphony.xwork2.validator.ValidationException;
+import org.apache.struts2.validator.ValidationException;
import org.apache.commons.lang3.StringUtils;
import java.util.Collection;
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/validators/RegexFieldValidator.java b/core/src/main/java/org/apache/struts2/validator/validators/RegexFieldValidator.java
similarity index 98%
rename from core/src/main/java/com/opensymphony/xwork2/validator/validators/RegexFieldValidator.java
rename to core/src/main/java/org/apache/struts2/validator/validators/RegexFieldValidator.java
index c05dd8a024..79db732aa2 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/validators/RegexFieldValidator.java
+++ b/core/src/main/java/org/apache/struts2/validator/validators/RegexFieldValidator.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.validators;
+package org.apache.struts2.validator.validators;
-import com.opensymphony.xwork2.validator.ValidationException;
+import org.apache.struts2.validator.ValidationException;
import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/validators/RepopulateConversionErrorFieldValidatorSupport.java b/core/src/main/java/org/apache/struts2/validator/validators/RepopulateConversionErrorFieldValidatorSupport.java
similarity index 95%
rename from core/src/main/java/com/opensymphony/xwork2/validator/validators/RepopulateConversionErrorFieldValidatorSupport.java
rename to core/src/main/java/org/apache/struts2/validator/validators/RepopulateConversionErrorFieldValidatorSupport.java
index 2e3b35d15f..7987b84f6c 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/validators/RepopulateConversionErrorFieldValidatorSupport.java
+++ b/core/src/main/java/org/apache/struts2/validator/validators/RepopulateConversionErrorFieldValidatorSupport.java
@@ -16,13 +16,13 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.validators;
+package org.apache.struts2.validator.validators;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.conversion.impl.ConversionData;
-import com.opensymphony.xwork2.util.ValueStack;
-import com.opensymphony.xwork2.validator.ValidationException;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.conversion.impl.ConversionData;
+import org.apache.struts2.util.ValueStack;
+import org.apache.struts2.validator.ValidationException;
import org.apache.commons.text.StringEscapeUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/validators/RequiredFieldValidator.java b/core/src/main/java/org/apache/struts2/validator/validators/RequiredFieldValidator.java
similarity index 95%
rename from core/src/main/java/com/opensymphony/xwork2/validator/validators/RequiredFieldValidator.java
rename to core/src/main/java/org/apache/struts2/validator/validators/RequiredFieldValidator.java
index b6492a9ee6..9bc94e3901 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/validators/RequiredFieldValidator.java
+++ b/core/src/main/java/org/apache/struts2/validator/validators/RequiredFieldValidator.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.validators;
+package org.apache.struts2.validator.validators;
-import com.opensymphony.xwork2.validator.ValidationException;
+import org.apache.struts2.validator.ValidationException;
import java.lang.reflect.Array;
import java.util.Collection;
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/validators/RequiredStringValidator.java b/core/src/main/java/org/apache/struts2/validator/validators/RequiredStringValidator.java
similarity index 97%
rename from core/src/main/java/com/opensymphony/xwork2/validator/validators/RequiredStringValidator.java
rename to core/src/main/java/org/apache/struts2/validator/validators/RequiredStringValidator.java
index 9c1869932a..a8a7be1363 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/validators/RequiredStringValidator.java
+++ b/core/src/main/java/org/apache/struts2/validator/validators/RequiredStringValidator.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.validators;
+package org.apache.struts2.validator.validators;
-import com.opensymphony.xwork2.validator.ValidationException;
+import org.apache.struts2.validator.ValidationException;
import java.util.Collection;
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/validators/ShortRangeFieldValidator.java b/core/src/main/java/org/apache/struts2/validator/validators/ShortRangeFieldValidator.java
similarity index 98%
rename from core/src/main/java/com/opensymphony/xwork2/validator/validators/ShortRangeFieldValidator.java
rename to core/src/main/java/org/apache/struts2/validator/validators/ShortRangeFieldValidator.java
index b7e3cb8435..02d3244519 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/validators/ShortRangeFieldValidator.java
+++ b/core/src/main/java/org/apache/struts2/validator/validators/ShortRangeFieldValidator.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.validators;
+package org.apache.struts2.validator.validators;
/**
*
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/validators/StringLengthFieldValidator.java b/core/src/main/java/org/apache/struts2/validator/validators/StringLengthFieldValidator.java
similarity index 98%
rename from core/src/main/java/com/opensymphony/xwork2/validator/validators/StringLengthFieldValidator.java
rename to core/src/main/java/org/apache/struts2/validator/validators/StringLengthFieldValidator.java
index 335d675476..88bb1020a2 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/validators/StringLengthFieldValidator.java
+++ b/core/src/main/java/org/apache/struts2/validator/validators/StringLengthFieldValidator.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.validators;
+package org.apache.struts2.validator.validators;
-import com.opensymphony.xwork2.validator.ValidationException;
+import org.apache.struts2.validator.ValidationException;
import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/validators/URLValidator.java b/core/src/main/java/org/apache/struts2/validator/validators/URLValidator.java
similarity index 97%
rename from core/src/main/java/com/opensymphony/xwork2/validator/validators/URLValidator.java
rename to core/src/main/java/org/apache/struts2/validator/validators/URLValidator.java
index 7093ab7128..be09cfb91c 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/validators/URLValidator.java
+++ b/core/src/main/java/org/apache/struts2/validator/validators/URLValidator.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.validators;
+package org.apache.struts2.validator.validators;
-import com.opensymphony.xwork2.validator.ValidationException;
+import org.apache.struts2.validator.ValidationException;
import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/validators/ValidatorSupport.java b/core/src/main/java/org/apache/struts2/validator/validators/ValidatorSupport.java
similarity index 91%
rename from core/src/main/java/com/opensymphony/xwork2/validator/validators/ValidatorSupport.java
rename to core/src/main/java/org/apache/struts2/validator/validators/ValidatorSupport.java
index e1a79f6b16..4362884e37 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/validators/ValidatorSupport.java
+++ b/core/src/main/java/org/apache/struts2/validator/validators/ValidatorSupport.java
@@ -16,17 +16,17 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.validators;
-
-import com.opensymphony.xwork2.TextProviderFactory;
-import com.opensymphony.xwork2.inject.Inject;
-import com.opensymphony.xwork2.util.TextParseUtil;
-import com.opensymphony.xwork2.util.ValueStack;
-import com.opensymphony.xwork2.validator.DelegatingValidatorContext;
-import com.opensymphony.xwork2.validator.ShortCircuitableValidator;
-import com.opensymphony.xwork2.validator.ValidationException;
-import com.opensymphony.xwork2.validator.Validator;
-import com.opensymphony.xwork2.validator.ValidatorContext;
+package org.apache.struts2.validator.validators;
+
+import org.apache.struts2.TextProviderFactory;
+import org.apache.struts2.inject.Inject;
+import org.apache.struts2.util.TextParseUtil;
+import org.apache.struts2.util.ValueStack;
+import org.apache.struts2.validator.DelegatingValidatorContext;
+import org.apache.struts2.validator.ShortCircuitableValidator;
+import org.apache.struts2.validator.ValidationException;
+import org.apache.struts2.validator.Validator;
+import org.apache.struts2.validator.ValidatorContext;
import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/validators/VisitorFieldValidator.java b/core/src/main/java/org/apache/struts2/validator/validators/VisitorFieldValidator.java
similarity index 93%
rename from core/src/main/java/com/opensymphony/xwork2/validator/validators/VisitorFieldValidator.java
rename to core/src/main/java/org/apache/struts2/validator/validators/VisitorFieldValidator.java
index eb07a233c6..3b4d87805e 100644
--- a/core/src/main/java/com/opensymphony/xwork2/validator/validators/VisitorFieldValidator.java
+++ b/core/src/main/java/org/apache/struts2/validator/validators/VisitorFieldValidator.java
@@ -16,17 +16,17 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.validators;
-
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.CompositeTextProvider;
-import com.opensymphony.xwork2.TextProvider;
-import com.opensymphony.xwork2.inject.Inject;
-import com.opensymphony.xwork2.util.ValueStack;
-import com.opensymphony.xwork2.validator.ActionValidatorManager;
-import com.opensymphony.xwork2.validator.DelegatingValidatorContext;
-import com.opensymphony.xwork2.validator.ValidationException;
-import com.opensymphony.xwork2.validator.ValidatorContext;
+package org.apache.struts2.validator.validators;
+
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.CompositeTextProvider;
+import org.apache.struts2.TextProvider;
+import org.apache.struts2.inject.Inject;
+import org.apache.struts2.util.ValueStack;
+import org.apache.struts2.validator.ActionValidatorManager;
+import org.apache.struts2.validator.DelegatingValidatorContext;
+import org.apache.struts2.validator.ValidationException;
+import org.apache.struts2.validator.ValidatorContext;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
diff --git a/core/src/main/java/com/opensymphony/xwork2/validator/validators/package.html b/core/src/main/java/org/apache/struts2/validator/validators/package.html
similarity index 100%
rename from core/src/main/java/com/opensymphony/xwork2/validator/validators/package.html
rename to core/src/main/java/org/apache/struts2/validator/validators/package.html
diff --git a/core/src/main/java/org/apache/struts2/views/DefaultTagLibrary.java b/core/src/main/java/org/apache/struts2/views/DefaultTagLibrary.java
index f047b09d51..3b20eec265 100644
--- a/core/src/main/java/org/apache/struts2/views/DefaultTagLibrary.java
+++ b/core/src/main/java/org/apache/struts2/views/DefaultTagLibrary.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import org.apache.struts2.views.freemarker.tags.StrutsModels;
import jakarta.servlet.http.HttpServletRequest;
@@ -31,7 +31,7 @@ public class DefaultTagLibrary implements TagLibraryModelProvider {
public Object getModels(ValueStack stack, HttpServletRequest req,
HttpServletResponse res) {
-
+
return new StrutsModels(stack, req, res);
}
diff --git a/core/src/main/java/org/apache/struts2/views/TagLibraryModelProvider.java b/core/src/main/java/org/apache/struts2/views/TagLibraryModelProvider.java
index bf97e9486f..d208aa4686 100644
--- a/core/src/main/java/org/apache/struts2/views/TagLibraryModelProvider.java
+++ b/core/src/main/java/org/apache/struts2/views/TagLibraryModelProvider.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/FreemarkerManager.java b/core/src/main/java/org/apache/struts2/views/freemarker/FreemarkerManager.java
index 6f0594769b..9ba168ab4d 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/FreemarkerManager.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/FreemarkerManager.java
@@ -18,12 +18,12 @@
*/
package org.apache.struts2.views.freemarker;
-import com.opensymphony.xwork2.FileManager;
-import com.opensymphony.xwork2.FileManagerFactory;
-import com.opensymphony.xwork2.inject.Container;
-import com.opensymphony.xwork2.inject.Inject;
-import com.opensymphony.xwork2.util.ClassLoaderUtil;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.FileManager;
+import org.apache.struts2.FileManagerFactory;
+import org.apache.struts2.inject.Container;
+import org.apache.struts2.inject.Inject;
+import org.apache.struts2.util.ClassLoaderUtil;
+import org.apache.struts2.util.ValueStack;
import freemarker.cache.ClassTemplateLoader;
import freemarker.cache.FileTemplateLoader;
import freemarker.cache.MultiTemplateLoader;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/FreemarkerResult.java b/core/src/main/java/org/apache/struts2/views/freemarker/FreemarkerResult.java
index d09d542925..aa81626966 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/FreemarkerResult.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/FreemarkerResult.java
@@ -18,11 +18,11 @@
*/
package org.apache.struts2.views.freemarker;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.LocaleProvider;
-import com.opensymphony.xwork2.inject.Inject;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.LocaleProvider;
+import org.apache.struts2.inject.Inject;
+import org.apache.struts2.util.ValueStack;
import freemarker.template.Configuration;
import freemarker.template.ObjectWrapper;
import freemarker.template.Template;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/FreemarkerThemeTemplateLoader.java b/core/src/main/java/org/apache/struts2/views/freemarker/FreemarkerThemeTemplateLoader.java
index e25143d63b..8ed44de698 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/FreemarkerThemeTemplateLoader.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/FreemarkerThemeTemplateLoader.java
@@ -26,7 +26,7 @@
import org.apache.struts2.components.template.Template;
import org.apache.struts2.components.template.TemplateEngine;
-import com.opensymphony.xwork2.inject.Inject;
+import org.apache.struts2.inject.Inject;
import freemarker.cache.TemplateLoader;
@@ -63,10 +63,10 @@ public Object findTemplateSource(String name) throws IOException {
}
Template template = new Template(
- name.substring(0, tokenIndex - 1),
- name.substring(tokenIndex + themeExpansionToken.length(), themeEndIndex),
+ name.substring(0, tokenIndex - 1),
+ name.substring(tokenIndex + themeExpansionToken.length(), themeEndIndex),
name.substring(themeEndIndex + 1));
-
+
List possibleTemplates = template.getPossibleTemplates(templateEngine);
for (Template possibleTemplate : possibleTemplates) {
Object templateSource = parentTemplateLoader.findTemplateSource(
@@ -83,7 +83,7 @@ public Object findTemplateSource(String name) throws IOException {
String parentName = "/" + template.getDir() + "/" + themeExpansionToken + parentTheme + "/" + template.getName();
return this.findTemplateSource(parentName);
}
-
+
/** {@inheritDoc} */
public long getLastModified(Object templateSource) {
return parentTemplateLoader.getLastModified(templateSource);
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/ScopesHashModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/ScopesHashModel.java
index fd112e6b67..6b04d21ca3 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/ScopesHashModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/ScopesHashModel.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.freemarker;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import freemarker.template.ObjectWrapper;
import freemarker.template.SimpleHash;
import freemarker.template.TemplateModel;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/StrutsClassTemplateLoader.java b/core/src/main/java/org/apache/struts2/views/freemarker/StrutsClassTemplateLoader.java
index 559ba798b1..edc1352114 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/StrutsClassTemplateLoader.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/StrutsClassTemplateLoader.java
@@ -20,7 +20,7 @@
import java.net.URL;
-import com.opensymphony.xwork2.util.ClassLoaderUtil;
+import org.apache.struts2.util.ClassLoaderUtil;
import freemarker.cache.URLTemplateLoader;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/ActionErrorModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/ActionErrorModel.java
index 6068ae2b63..b10ef1888a 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/ActionErrorModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/ActionErrorModel.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.freemarker.tags;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.ActionError;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/ActionMessageModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/ActionMessageModel.java
index 029c994b77..34284e95e9 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/ActionMessageModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/ActionMessageModel.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.freemarker.tags;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.ActionMessage;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/ActionModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/ActionModel.java
index 3b397b1b8a..5eeb90597a 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/ActionModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/ActionModel.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.freemarker.tags;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.ActionComponent;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/AnchorModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/AnchorModel.java
index 2e5c61310d..c2b2b7add3 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/AnchorModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/AnchorModel.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.freemarker.tags;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Anchor;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/BeanModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/BeanModel.java
index 9c4cb97243..978ef04954 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/BeanModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/BeanModel.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.freemarker.tags;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Bean;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/CheckboxListModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/CheckboxListModel.java
index 7ae74b276a..9884c122ed 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/CheckboxListModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/CheckboxListModel.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.freemarker.tags;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.CheckboxList;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/CheckboxModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/CheckboxModel.java
index 0a9ba54d76..a1550e004a 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/CheckboxModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/CheckboxModel.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.freemarker.tags;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Checkbox;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/ComboBoxModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/ComboBoxModel.java
index f1d710e9ea..7b62b761bc 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/ComboBoxModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/ComboBoxModel.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.freemarker.tags;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.ComboBox;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/ComponentModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/ComponentModel.java
index 6d2ea3a866..fdf892932e 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/ComponentModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/ComponentModel.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.freemarker.tags;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/DateModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/DateModel.java
index 695c1142cb..78ffff3bce 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/DateModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/DateModel.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.freemarker.tags;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/DoubleSelectModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/DoubleSelectModel.java
index 2c0bf89de8..30b10d42f3 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/DoubleSelectModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/DoubleSelectModel.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.freemarker.tags;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/ElseIfModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/ElseIfModel.java
index 11aca9590c..84dae2a0c9 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/ElseIfModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/ElseIfModel.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.freemarker.tags;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/ElseModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/ElseModel.java
index 16c7405b5c..d3ab71841d 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/ElseModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/ElseModel.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.freemarker.tags;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/FieldErrorModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/FieldErrorModel.java
index 07bd44a5c7..adadd9bfb9 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/FieldErrorModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/FieldErrorModel.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.freemarker.tags;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/FileModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/FileModel.java
index f7fd4a0dfd..5bcadeb462 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/FileModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/FileModel.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.freemarker.tags;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/FormModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/FormModel.java
index 86ed0c881c..c7a89d46b4 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/FormModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/FormModel.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.freemarker.tags;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/HeadModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/HeadModel.java
index dae772436b..5895bb6a72 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/HeadModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/HeadModel.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.freemarker.tags;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/HiddenModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/HiddenModel.java
index 7c48c45082..a8c7141e5d 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/HiddenModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/HiddenModel.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.freemarker.tags;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/I18nModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/I18nModel.java
index 76b320284c..874f4f0c24 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/I18nModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/I18nModel.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.freemarker.tags;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/IfModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/IfModel.java
index 6ca7196cc2..0f5527a64e 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/IfModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/IfModel.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.freemarker.tags;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/IncludeModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/IncludeModel.java
index 07ddc0586f..cfbfa918a0 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/IncludeModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/IncludeModel.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.freemarker.tags;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/InputTransferSelectModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/InputTransferSelectModel.java
index 7913119953..412934c412 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/InputTransferSelectModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/InputTransferSelectModel.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.freemarker.tags;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/IteratorModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/IteratorModel.java
index 6231f0584e..ad4de58544 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/IteratorModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/IteratorModel.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.freemarker.tags;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/LabelModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/LabelModel.java
index 989574cb89..1046da99f0 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/LabelModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/LabelModel.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.freemarker.tags;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/LinkModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/LinkModel.java
index 6fd768b882..25d0e244f2 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/LinkModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/LinkModel.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.freemarker.tags;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/OptGroupModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/OptGroupModel.java
index 46f4e51adc..c20d07ffc7 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/OptGroupModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/OptGroupModel.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.freemarker.tags;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/OptionTransferSelectModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/OptionTransferSelectModel.java
index 3d1f8dfceb..9336810dcb 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/OptionTransferSelectModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/OptionTransferSelectModel.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.freemarker.tags;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/ParamModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/ParamModel.java
index aaef13c4af..0324ce55ec 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/ParamModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/ParamModel.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.freemarker.tags;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/PasswordModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/PasswordModel.java
index 04815a2aa5..d96fd9be63 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/PasswordModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/PasswordModel.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.freemarker.tags;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/PropertyModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/PropertyModel.java
index b9fd6905c8..026dbc8594 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/PropertyModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/PropertyModel.java
@@ -24,7 +24,7 @@
import org.apache.struts2.components.Component;
import org.apache.struts2.components.Property;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
/**
* @see Property
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/PushModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/PushModel.java
index d1616174c7..acafc788d3 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/PushModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/PushModel.java
@@ -24,7 +24,7 @@
import org.apache.struts2.components.Component;
import org.apache.struts2.components.Push;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
/**
* @see Push
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/RadioModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/RadioModel.java
index 847e8b6ee5..ace78e0bba 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/RadioModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/RadioModel.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.freemarker.tags;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/ResetModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/ResetModel.java
index 07ba98489d..5cfd5f32cf 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/ResetModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/ResetModel.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.freemarker.tags;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/ScriptModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/ScriptModel.java
index 2cc526a2b7..f5a1e43943 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/ScriptModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/ScriptModel.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.freemarker.tags;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/SelectModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/SelectModel.java
index dcba5d3af5..864c13461e 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/SelectModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/SelectModel.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.freemarker.tags;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/SetModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/SetModel.java
index 93755e04e4..d8d2aa7f73 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/SetModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/SetModel.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.freemarker.tags;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/StrutsModels.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/StrutsModels.java
index f6e16c9c3c..28c6e39263 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/StrutsModels.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/StrutsModels.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.freemarker.tags;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/SubmitModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/SubmitModel.java
index 0c53887860..32d6f930c4 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/SubmitModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/SubmitModel.java
@@ -24,7 +24,7 @@
import org.apache.struts2.components.Component;
import org.apache.struts2.components.Submit;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
/**
* @see Submit
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/TagModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/TagModel.java
index 2ba8f090f8..ff5f28f235 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/TagModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/TagModel.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts2.views.freemarker.tags;
-import com.opensymphony.xwork2.inject.Container;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.inject.Container;
+import org.apache.struts2.util.ValueStack;
import freemarker.ext.beans.BeansWrapper;
import freemarker.template.SimpleNumber;
import freemarker.template.SimpleSequence;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/TextAreaModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/TextAreaModel.java
index 7816190379..e2ea498fe3 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/TextAreaModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/TextAreaModel.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.freemarker.tags;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/TextFieldModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/TextFieldModel.java
index f6bb7131e9..4465f91dc7 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/TextFieldModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/TextFieldModel.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.freemarker.tags;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/TextModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/TextModel.java
index ac987bcfee..5d35f233a6 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/TextModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/TextModel.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.freemarker.tags;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/TokenModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/TokenModel.java
index 5c8298d026..839bc2f881 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/TokenModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/TokenModel.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.freemarker.tags;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/URLModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/URLModel.java
index 160e91ff5e..e154d016e4 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/URLModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/URLModel.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.freemarker.tags;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/UpDownSelectModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/UpDownSelectModel.java
index 7e1b232519..c9a1ffac96 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/UpDownSelectModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/UpDownSelectModel.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.freemarker.tags;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/ActionTag.java b/core/src/main/java/org/apache/struts2/views/jsp/ActionTag.java
index ccdb01a6bb..90c23cb0c1 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/ActionTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/ActionTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.ActionComponent;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/BeanTag.java b/core/src/main/java/org/apache/struts2/views/jsp/BeanTag.java
index 4ff69f76eb..bacc743c64 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/BeanTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/BeanTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.logging.log4j.LogManager;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/ComponentTagSupport.java b/core/src/main/java/org/apache/struts2/views/jsp/ComponentTagSupport.java
index f7ce06f8cb..09b06c9175 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/ComponentTagSupport.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/ComponentTagSupport.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts2.views.jsp;
-import com.opensymphony.xwork2.inject.Container;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.inject.Container;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.servlet.jsp.JspException;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/DateTag.java b/core/src/main/java/org/apache/struts2/views/jsp/DateTag.java
index 46be9f8625..132f152ca7 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/DateTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/DateTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/ElseIfTag.java b/core/src/main/java/org/apache/struts2/views/jsp/ElseIfTag.java
index 1b57da169e..7f34d179ee 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/ElseIfTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/ElseIfTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/ElseTag.java b/core/src/main/java/org/apache/struts2/views/jsp/ElseTag.java
index 2c8887060c..866c60faa7 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/ElseTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/ElseTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/I18nTag.java b/core/src/main/java/org/apache/struts2/views/jsp/I18nTag.java
index 5533e48f03..d981b6b20d 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/I18nTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/I18nTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/IfTag.java b/core/src/main/java/org/apache/struts2/views/jsp/IfTag.java
index a93c61c011..27235602ff 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/IfTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/IfTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/IncludeTag.java b/core/src/main/java/org/apache/struts2/views/jsp/IncludeTag.java
index 101eff9dcf..5ada1fd9b4 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/IncludeTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/IncludeTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/IteratorTag.java b/core/src/main/java/org/apache/struts2/views/jsp/IteratorTag.java
index 65795f3923..d0527b6bfa 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/IteratorTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/IteratorTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.servlet.jsp.JspException;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/NumberTag.java b/core/src/main/java/org/apache/struts2/views/jsp/NumberTag.java
index d0bf1a34b1..9dc576f12b 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/NumberTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/NumberTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/ParamTag.java b/core/src/main/java/org/apache/struts2/views/jsp/ParamTag.java
index 582e41a4d7..b23fdfe0b6 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/ParamTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/ParamTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/PropertyTag.java b/core/src/main/java/org/apache/struts2/views/jsp/PropertyTag.java
index d0ad373616..e33d7d977c 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/PropertyTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/PropertyTag.java
@@ -24,7 +24,7 @@
import org.apache.struts2.components.Component;
import org.apache.struts2.components.Property;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import java.io.Serial;
@@ -54,7 +54,7 @@ protected void populateParams() {
Property tag = (Property) component;
tag.setDefault(defaultValue);
- tag.setValue(value);
+ tag.setValue(value);
tag.setEscapeHtml(escapeHtml);
tag.setEscapeJavaScript(escapeJavaScript);
tag.setEscapeXml(escapeXml);
@@ -72,7 +72,7 @@ public void setEscapeHtml(boolean escapeHtml) {
public void setEscapeJavaScript(boolean escapeJavaScript) {
this.escapeJavaScript = escapeJavaScript;
}
-
+
public void setValue(String value) {
this.value = value;
}
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/PushTag.java b/core/src/main/java/org/apache/struts2/views/jsp/PushTag.java
index ed318af52f..1776845f8a 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/PushTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/PushTag.java
@@ -24,7 +24,7 @@
import org.apache.struts2.components.Component;
import org.apache.struts2.components.Push;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import java.io.Serial;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/SetTag.java b/core/src/main/java/org/apache/struts2/views/jsp/SetTag.java
index 39787a3e4a..1a18960afe 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/SetTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/SetTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/StrutsBodyTagSupport.java b/core/src/main/java/org/apache/struts2/views/jsp/StrutsBodyTagSupport.java
index 85ab173727..6316eae3b4 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/StrutsBodyTagSupport.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/StrutsBodyTagSupport.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts2.views.jsp;
-import com.opensymphony.xwork2.util.TextParseUtil;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.TextParseUtil;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.jsp.JspException;
import jakarta.servlet.jsp.tagext.BodyTagSupport;
import org.apache.struts2.util.ComponentUtils;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/TagUtils.java b/core/src/main/java/org/apache/struts2/views/jsp/TagUtils.java
index 50fdad1936..68f6707620 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/TagUtils.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/TagUtils.java
@@ -18,9 +18,9 @@
*/
package org.apache.struts2.views.jsp;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.util.ValueStack;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.struts2.ServletActionContext;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/TextTag.java b/core/src/main/java/org/apache/struts2/views/jsp/TextTag.java
index 147d4cda4c..88ddddfaa9 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/TextTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/TextTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/URLTag.java b/core/src/main/java/org/apache/struts2/views/jsp/URLTag.java
index 10eebd9ca2..0b0177e557 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/URLTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/URLTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/iterator/AppendIteratorTag.java b/core/src/main/java/org/apache/struts2/views/jsp/iterator/AppendIteratorTag.java
index c9b3dd5868..a1d701e3b3 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/iterator/AppendIteratorTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/iterator/AppendIteratorTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp.iterator;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.AppendIterator;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/iterator/MergeIteratorTag.java b/core/src/main/java/org/apache/struts2/views/jsp/iterator/MergeIteratorTag.java
index b49a1d051d..cb578590ad 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/iterator/MergeIteratorTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/iterator/MergeIteratorTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp.iterator;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/ui/ActionErrorTag.java b/core/src/main/java/org/apache/struts2/views/jsp/ui/ActionErrorTag.java
index 309d43e7bf..da05ad8bbc 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/ui/ActionErrorTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/ui/ActionErrorTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp.ui;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.ActionError;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/ui/ActionMessageTag.java b/core/src/main/java/org/apache/struts2/views/jsp/ui/ActionMessageTag.java
index 1babd7c4fe..cb0b29a6e5 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/ui/ActionMessageTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/ui/ActionMessageTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp.ui;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.ActionMessage;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/ui/AnchorTag.java b/core/src/main/java/org/apache/struts2/views/jsp/ui/AnchorTag.java
index 7c42bab98d..97fccaaa62 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/ui/AnchorTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/ui/AnchorTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp.ui;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.commons.lang3.BooleanUtils;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/ui/CheckboxListTag.java b/core/src/main/java/org/apache/struts2/views/jsp/ui/CheckboxListTag.java
index 353479b7e0..585b8aa6b8 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/ui/CheckboxListTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/ui/CheckboxListTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp.ui;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.CheckboxList;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/ui/CheckboxTag.java b/core/src/main/java/org/apache/struts2/views/jsp/ui/CheckboxTag.java
index cc1503b9f4..4c38444d93 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/ui/CheckboxTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/ui/CheckboxTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp.ui;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Checkbox;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/ui/ComboBoxTag.java b/core/src/main/java/org/apache/struts2/views/jsp/ui/ComboBoxTag.java
index 2063722775..ea4b381932 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/ui/ComboBoxTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/ui/ComboBoxTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp.ui;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.ComboBox;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/ui/ComponentTag.java b/core/src/main/java/org/apache/struts2/views/jsp/ui/ComponentTag.java
index 852b814caf..dbeab6dfe5 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/ui/ComponentTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/ui/ComponentTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp.ui;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/ui/DateTextFieldTag.java b/core/src/main/java/org/apache/struts2/views/jsp/ui/DateTextFieldTag.java
index 83f4be79f5..f6961d46de 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/ui/DateTextFieldTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/ui/DateTextFieldTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp.ui;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/ui/DebugTag.java b/core/src/main/java/org/apache/struts2/views/jsp/ui/DebugTag.java
index 69b5350200..1e459781d9 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/ui/DebugTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/ui/DebugTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp.ui;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/ui/DoubleSelectTag.java b/core/src/main/java/org/apache/struts2/views/jsp/ui/DoubleSelectTag.java
index 962cc0c1fb..b5d72abfd8 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/ui/DoubleSelectTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/ui/DoubleSelectTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp.ui;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/ui/FieldErrorTag.java b/core/src/main/java/org/apache/struts2/views/jsp/ui/FieldErrorTag.java
index e223af0f73..0de0ba953c 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/ui/FieldErrorTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/ui/FieldErrorTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp.ui;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/ui/FileTag.java b/core/src/main/java/org/apache/struts2/views/jsp/ui/FileTag.java
index 356c5b679c..b10f792640 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/ui/FileTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/ui/FileTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp.ui;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/ui/FormTag.java b/core/src/main/java/org/apache/struts2/views/jsp/ui/FormTag.java
index c9187ca59a..3bdb483798 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/ui/FormTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/ui/FormTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp.ui;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/ui/HeadTag.java b/core/src/main/java/org/apache/struts2/views/jsp/ui/HeadTag.java
index 30ca8f71a5..bec7bc71bf 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/ui/HeadTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/ui/HeadTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp.ui;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/ui/HiddenTag.java b/core/src/main/java/org/apache/struts2/views/jsp/ui/HiddenTag.java
index 579fee7514..9f0e00531f 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/ui/HiddenTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/ui/HiddenTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp.ui;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/ui/InputTransferSelectTag.java b/core/src/main/java/org/apache/struts2/views/jsp/ui/InputTransferSelectTag.java
index aee73f5f94..9d88df2dca 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/ui/InputTransferSelectTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/ui/InputTransferSelectTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp.ui;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/ui/LabelTag.java b/core/src/main/java/org/apache/struts2/views/jsp/ui/LabelTag.java
index b8664b9a07..aa1910616f 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/ui/LabelTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/ui/LabelTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp.ui;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/ui/LinkTag.java b/core/src/main/java/org/apache/struts2/views/jsp/ui/LinkTag.java
index 144a6d1e1e..e5d522476e 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/ui/LinkTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/ui/LinkTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp.ui;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import org.apache.struts2.components.Component;
import org.apache.struts2.components.Link;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/ui/OptGroupTag.java b/core/src/main/java/org/apache/struts2/views/jsp/ui/OptGroupTag.java
index 8db7c5f3f7..f9c272d19f 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/ui/OptGroupTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/ui/OptGroupTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp.ui;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/ui/OptionTransferSelectTag.java b/core/src/main/java/org/apache/struts2/views/jsp/ui/OptionTransferSelectTag.java
index 99650f8f21..238365be8b 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/ui/OptionTransferSelectTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/ui/OptionTransferSelectTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp.ui;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/ui/PasswordTag.java b/core/src/main/java/org/apache/struts2/views/jsp/ui/PasswordTag.java
index 9081f62511..25882e2c30 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/ui/PasswordTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/ui/PasswordTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp.ui;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/ui/RadioTag.java b/core/src/main/java/org/apache/struts2/views/jsp/ui/RadioTag.java
index 2c0167b9f7..c7885ff283 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/ui/RadioTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/ui/RadioTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp.ui;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/ui/ResetTag.java b/core/src/main/java/org/apache/struts2/views/jsp/ui/ResetTag.java
index 65034f2829..d8ecd53e3f 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/ui/ResetTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/ui/ResetTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp.ui;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/ui/ScriptTag.java b/core/src/main/java/org/apache/struts2/views/jsp/ui/ScriptTag.java
index 25809a143a..0729de0fbe 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/ui/ScriptTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/ui/ScriptTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp.ui;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/ui/SelectTag.java b/core/src/main/java/org/apache/struts2/views/jsp/ui/SelectTag.java
index fbabc929b1..5017698678 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/ui/SelectTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/ui/SelectTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp.ui;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/ui/SubmitTag.java b/core/src/main/java/org/apache/struts2/views/jsp/ui/SubmitTag.java
index 4e5b0f1fe6..e738a00ce8 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/ui/SubmitTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/ui/SubmitTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp.ui;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/ui/TextFieldTag.java b/core/src/main/java/org/apache/struts2/views/jsp/ui/TextFieldTag.java
index fa0e590708..db21c1bb95 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/ui/TextFieldTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/ui/TextFieldTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp.ui;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/ui/TextareaTag.java b/core/src/main/java/org/apache/struts2/views/jsp/ui/TextareaTag.java
index 068072604c..132e09a99e 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/ui/TextareaTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/ui/TextareaTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp.ui;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/ui/TokenTag.java b/core/src/main/java/org/apache/struts2/views/jsp/ui/TokenTag.java
index 7b4457b661..10b0d2ab97 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/ui/TokenTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/ui/TokenTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp.ui;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/ui/UpDownSelectTag.java b/core/src/main/java/org/apache/struts2/views/jsp/ui/UpDownSelectTag.java
index 15838f76d1..b91cf1ccfc 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/ui/UpDownSelectTag.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/ui/UpDownSelectTag.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp.ui;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
diff --git a/core/src/main/java/org/apache/struts2/views/util/ContextUtil.java b/core/src/main/java/org/apache/struts2/views/util/ContextUtil.java
index 1468703aa5..7a81435232 100644
--- a/core/src/main/java/org/apache/struts2/views/util/ContextUtil.java
+++ b/core/src/main/java/org/apache/struts2/views/util/ContextUtil.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts2.views.util;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.util.ValueStack;
import org.apache.struts2.dispatcher.DispatcherConstants;
import org.apache.struts2.util.StrutsUtil;
diff --git a/core/src/main/java/org/apache/struts2/views/util/DefaultUrlHelper.java b/core/src/main/java/org/apache/struts2/views/util/DefaultUrlHelper.java
index 37f013b11f..661d41e849 100644
--- a/core/src/main/java/org/apache/struts2/views/util/DefaultUrlHelper.java
+++ b/core/src/main/java/org/apache/struts2/views/util/DefaultUrlHelper.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.util;
-import com.opensymphony.xwork2.inject.Inject;
+import org.apache.struts2.inject.Inject;
import jakarta.servlet.RequestDispatcher;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.text.StringEscapeUtils;
diff --git a/core/src/main/resources/com/opensymphony/xwork2/validator/validators/default.xml b/core/src/main/resources/com/opensymphony/xwork2/validator/validators/default.xml
deleted file mode 100644
index b0e6ed4f83..0000000000
--- a/core/src/main/resources/com/opensymphony/xwork2/validator/validators/default.xml
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/core/src/main/resources/org/apache/struts2/default.properties b/core/src/main/resources/org/apache/struts2/default.properties
index 42ffb8de56..ecda0efb6c 100644
--- a/core/src/main/resources/org/apache/struts2/default.properties
+++ b/core/src/main/resources/org/apache/struts2/default.properties
@@ -28,7 +28,7 @@ struts.i18n.encoding=UTF-8
### if specified, the default object factory can be overridden here
### Note: short-hand notation is supported in some cases, such as "spring"
-### Alternatively, you can provide a com.opensymphony.xwork2.ObjectFactory subclass name here
+### Alternatively, you can provide a org.apache.struts2.ObjectFactory subclass name here
# struts.objectFactory = spring
### specifies the autoWiring logic when using the SpringObjectFactory.
@@ -52,9 +52,9 @@ struts.objectFactory.spring.enableAopSupport = false
### if specified, the default object type determiner can be overridden here
### Note: short-hand notation is supported in some cases, such as "tiger" or "notiger"
-### Alternatively, you can provide a com.opensymphony.xwork2.util.ObjectTypeDeterminer implementation name here
-### Note: By default, com.opensymphony.xwork2.util.DefaultObjectTypeDeterminer is used which handles type detection
-### using generics. com.opensymphony.xwork2.util.GenericsObjectTypeDeterminer was deprecated since XWork 2, it's
+### Alternatively, you can provide a org.apache.struts2.util.ObjectTypeDeterminer implementation name here
+### Note: By default, org.apache.struts2.util.DefaultObjectTypeDeterminer is used which handles type detection
+### using generics. org.apache.struts2.util.GenericsObjectTypeDeterminer was deprecated since XWork 2, it's
### functions are integrated in DefaultObjectTypeDeterminer now.
### To disable tiger support use the "notiger" property value here.
# struts.objectTypeDeterminer = tiger
diff --git a/core/src/main/resources/org/apache/struts2/validator/validators/default.xml b/core/src/main/resources/org/apache/struts2/validator/validators/default.xml
new file mode 100644
index 0000000000..a3e6f93659
--- /dev/null
+++ b/core/src/main/resources/org/apache/struts2/validator/validators/default.xml
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/core/src/main/resources/com/opensymphony/xwork2/xwork-messages.properties b/core/src/main/resources/org/apache/struts2/xwork-messages.properties
similarity index 100%
rename from core/src/main/resources/com/opensymphony/xwork2/xwork-messages.properties
rename to core/src/main/resources/org/apache/struts2/xwork-messages.properties
diff --git a/core/src/main/resources/struts-beans.xml b/core/src/main/resources/struts-beans.xml
index a51cb4854c..d3f8c879a6 100644
--- a/core/src/main/resources/struts-beans.xml
+++ b/core/src/main/resources/struts-beans.xml
@@ -27,8 +27,8 @@
it is then the default bean's name and {@link org.apache.struts2.config.StrutsBeanSelectionProvider} links name "struts"
with "default" (aliasing it)
- If name won't be defined then the "default" value will be used {@link com.opensymphony.xwork2.inject.Container#DEFAULT_NAME}
- and {@link com.opensymphony.xwork2.inject.Inject}
+ If name won't be defined then the "default" value will be used {@link org.apache.struts2.inject.Container#DEFAULT_NAME}
+ and {@link org.apache.struts2.inject.Inject}
-->
-
-
+
-
-
-
-
-
-
-
+
+
+
+
+
+
-
+
-
-
-
+
-
-
-
+
+
-
+
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
-
-
-
+
+
+
-
+
-
-
+
+
-
-
+
+
-
-
+
+
-
+
-
+
+ class="org.apache.struts2.ognl.accessor.ObjectAccessor"/>
+ class="org.apache.struts2.ognl.accessor.XWorkIteratorPropertyAccessor"/>
+ class="org.apache.struts2.ognl.accessor.XWorkEnumerationAccessor"/>
+ class="org.apache.struts2.ognl.accessor.XWorkListPropertyAccessor"/>
+ class="org.apache.struts2.ognl.accessor.XWorkCollectionPropertyAccessor"/>
+ class="org.apache.struts2.ognl.accessor.XWorkMapPropertyAccessor"/>
-
+ class="org.apache.struts2.ognl.accessor.XWorkCollectionPropertyAccessor"/>
+
+ class="org.apache.struts2.ognl.accessor.HttpParametersPropertyAccessor"/>
+ class="org.apache.struts2.ognl.accessor.ParameterPropertyAccessor"/>
+ class="org.apache.struts2.ognl.accessor.XWorkMethodAccessor"/>
-
+
+ class="org.apache.struts2.ognl.accessor.XWorkListPropertyAccessor"/>
+ class="org.apache.struts2.ognl.accessor.XWorkCollectionPropertyAccessor"/>
+ class="org.apache.struts2.ognl.accessor.XWorkMapPropertyAccessor"/>
-
-
-
+
+
+
-
+
-
-
+
+
diff --git a/core/src/main/resources/struts-default.xml b/core/src/main/resources/struts-default.xml
index 9365e83480..4f2ccb18d2 100644
--- a/core/src/main/resources/struts-default.xml
+++ b/core/src/main/resources/struts-default.xml
@@ -31,7 +31,7 @@
-
+
@@ -43,8 +43,8 @@
-
-
+
+
@@ -56,32 +56,32 @@
-
+
-
-
+
+
+ class="org.apache.struts2.interceptor.ScopedModelDrivenInterceptor"/>
-
+
-
-
+
+
-
+
+ class="org.apache.struts2.interceptor.annotations.AnnotationWorkflowInterceptor"/>
@@ -253,7 +253,7 @@
-
+
execute,input,back,cancel,browse,save,delete,list,index
diff --git a/core/src/main/resources/struts-excluded-classes.xml b/core/src/main/resources/struts-excluded-classes.xml
index 58b89aae47..16fa3f4a61 100644
--- a/core/src/main/resources/struts-excluded-classes.xml
+++ b/core/src/main/resources/struts-excluded-classes.xml
@@ -28,7 +28,7 @@
-
-
+
-
-
-
-
-
-
-
-
+
+
+
-
-
+
+
-
-
-
-
-
-
+ class="org.apache.struts2.interceptor.ScopedModelDrivenInterceptor"/>
+
+
+
+
+
+
-
-
-
-
-
+ class="org.apache.struts2.interceptor.ScopedModelDrivenInterceptor"/-->
@@ -74,11 +64,9 @@
-
-
-
+
diff --git a/core/src/test/java/PackagelessAction.java b/core/src/test/java/PackagelessAction.java
index 42e302266a..455562693c 100644
--- a/core/src/test/java/PackagelessAction.java
+++ b/core/src/test/java/PackagelessAction.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-import com.opensymphony.xwork2.ActionSupport;
+import org.apache.struts2.ActionSupport;
/**
diff --git a/core/src/test/java/com/opensymphony/xwork2/config/providers/ConfigurationProviderOgnlAllowlistTest.java b/core/src/test/java/com/opensymphony/xwork2/config/providers/ConfigurationProviderOgnlAllowlistTest.java
deleted file mode 100644
index d2c8bc3fe2..0000000000
--- a/core/src/test/java/com/opensymphony/xwork2/config/providers/ConfigurationProviderOgnlAllowlistTest.java
+++ /dev/null
@@ -1,114 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package com.opensymphony.xwork2.config.providers;
-
-import com.opensymphony.xwork2.XWorkJUnit4TestCase;
-import com.opensymphony.xwork2.config.ConfigurationProvider;
-import org.apache.struts2.config.StrutsXmlConfigurationProvider;
-import org.apache.struts2.ognl.ProviderAllowlist;
-import org.junit.Before;
-import org.junit.Test;
-
-import static org.assertj.core.api.Assertions.assertThat;
-
-public class ConfigurationProviderOgnlAllowlistTest extends XWorkJUnit4TestCase {
-
- private final ConfigurationProvider testXml1 = new StrutsXmlConfigurationProvider("com/opensymphony/xwork2/config/providers/xwork-test-allowlist.xml");
- private final ConfigurationProvider testXml2 = new StrutsXmlConfigurationProvider("com/opensymphony/xwork2/config/providers/xwork-test-allowlist-2.xml");
- private ProviderAllowlist providerAllowlist;
-
- @Before
- public void setUp() throws Exception {
- loadConfigurationProviders(testXml1, testXml2);
- providerAllowlist = container.getInstance(ProviderAllowlist.class);
- }
-
- @Test
- public void allowList() throws Exception {
- loadConfigurationProviders(testXml1, testXml2);
- providerAllowlist = container.getInstance(ProviderAllowlist.class);
-
- assertThat(providerAllowlist.getProviderAllowlist()).containsExactlyInAnyOrder(
- Class.forName("com.opensymphony.xwork2.interceptor.ValidationAware"),
- Class.forName("com.opensymphony.xwork2.LocaleProvider"),
- Class.forName("java.io.Serializable"),
- Class.forName("com.opensymphony.xwork2.mock.MockResult"),
- Class.forName("com.opensymphony.xwork2.interceptor.ConditionalInterceptor"),
- Class.forName("com.opensymphony.xwork2.ActionSupport"),
- Class.forName("com.opensymphony.xwork2.ActionChainResult"),
- Class.forName("com.opensymphony.xwork2.TextProvider"),
- Class.forName("org.apache.struts2.interceptor.NoOpInterceptor"),
- Class.forName("com.opensymphony.xwork2.interceptor.Interceptor"),
- Class.forName("java.lang.Object"),
- Class.forName("com.opensymphony.xwork2.Validateable"),
- Class.forName("com.opensymphony.xwork2.mock.MockInterceptor"),
- Class.forName("com.opensymphony.xwork2.Action"),
- Class.forName("com.opensymphony.xwork2.interceptor.AbstractInterceptor"),
- Class.forName("com.opensymphony.xwork2.Result"),
- Class.forName("com.opensymphony.xwork2.SimpleAction")
- );
- }
-
- @Test
- public void allowlist_1only() throws Exception {
- loadConfigurationProviders(testXml1);
- providerAllowlist = container.getInstance(ProviderAllowlist.class);
-
- assertThat(providerAllowlist.getProviderAllowlist()).containsExactlyInAnyOrder(
- Class.forName("com.opensymphony.xwork2.interceptor.ValidationAware"),
- Class.forName("com.opensymphony.xwork2.LocaleProvider"),
- Class.forName("java.io.Serializable"),
- Class.forName("com.opensymphony.xwork2.mock.MockResult"),
- Class.forName("com.opensymphony.xwork2.interceptor.ConditionalInterceptor"),
- Class.forName("com.opensymphony.xwork2.ActionSupport"),
- Class.forName("com.opensymphony.xwork2.TextProvider"),
- Class.forName("com.opensymphony.xwork2.interceptor.Interceptor"),
- Class.forName("java.lang.Object"),
- Class.forName("com.opensymphony.xwork2.Validateable"),
- Class.forName("com.opensymphony.xwork2.mock.MockInterceptor"),
- Class.forName("com.opensymphony.xwork2.Action"),
- Class.forName("com.opensymphony.xwork2.interceptor.AbstractInterceptor"),
- Class.forName("com.opensymphony.xwork2.Result"),
- Class.forName("com.opensymphony.xwork2.SimpleAction")
- );
- }
-
- @Test
- public void allowlist_2only() throws Exception {
- loadConfigurationProviders(testXml2);
- providerAllowlist = container.getInstance(ProviderAllowlist.class);
-
- assertThat(providerAllowlist.getProviderAllowlist()).containsExactlyInAnyOrder(
- Class.forName("com.opensymphony.xwork2.interceptor.ValidationAware"),
- Class.forName("com.opensymphony.xwork2.LocaleProvider"),
- Class.forName("java.io.Serializable"),
- Class.forName("com.opensymphony.xwork2.interceptor.ConditionalInterceptor"),
- Class.forName("com.opensymphony.xwork2.ActionSupport"),
- Class.forName("com.opensymphony.xwork2.ActionChainResult"),
- Class.forName("com.opensymphony.xwork2.TextProvider"),
- Class.forName("org.apache.struts2.interceptor.NoOpInterceptor"),
- Class.forName("com.opensymphony.xwork2.interceptor.Interceptor"),
- Class.forName("java.lang.Object"),
- Class.forName("com.opensymphony.xwork2.Validateable"),
- Class.forName("com.opensymphony.xwork2.Action"),
- Class.forName("com.opensymphony.xwork2.interceptor.AbstractInterceptor"),
- Class.forName("com.opensymphony.xwork2.Result")
- );
- }
-}
diff --git a/core/src/test/java/com/opensymphony/xwork2/ActionChainResultTest.java b/core/src/test/java/org/apache/struts2/ActionChainResultTest.java
similarity index 97%
rename from core/src/test/java/com/opensymphony/xwork2/ActionChainResultTest.java
rename to core/src/test/java/org/apache/struts2/ActionChainResultTest.java
index 61fd3633af..12b04e8aa6 100644
--- a/core/src/test/java/com/opensymphony/xwork2/ActionChainResultTest.java
+++ b/core/src/test/java/org/apache/struts2/ActionChainResultTest.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2;
+package org.apache.struts2;
import org.junit.Test;
diff --git a/core/src/test/java/com/opensymphony/xwork2/ActionContextTest.java b/core/src/test/java/org/apache/struts2/ActionContextTest.java
similarity index 95%
rename from core/src/test/java/com/opensymphony/xwork2/ActionContextTest.java
rename to core/src/test/java/org/apache/struts2/ActionContextTest.java
index bf86971374..ddaff7fb2e 100644
--- a/core/src/test/java/com/opensymphony/xwork2/ActionContextTest.java
+++ b/core/src/test/java/org/apache/struts2/ActionContextTest.java
@@ -16,11 +16,11 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2;
+package org.apache.struts2;
-import com.opensymphony.xwork2.conversion.impl.ConversionData;
-import com.opensymphony.xwork2.util.ValueStack;
-import com.opensymphony.xwork2.util.ValueStackFactory;
+import org.apache.struts2.conversion.impl.ConversionData;
+import org.apache.struts2.util.ValueStack;
+import org.apache.struts2.util.ValueStackFactory;
import org.apache.struts2.dispatcher.HttpParameters;
import java.util.HashMap;
diff --git a/core/src/test/java/com/opensymphony/xwork2/ActionContextThreadLocalTest.java b/core/src/test/java/org/apache/struts2/ActionContextThreadLocalTest.java
similarity index 97%
rename from core/src/test/java/com/opensymphony/xwork2/ActionContextThreadLocalTest.java
rename to core/src/test/java/org/apache/struts2/ActionContextThreadLocalTest.java
index 454e02df4e..86794932b1 100644
--- a/core/src/test/java/com/opensymphony/xwork2/ActionContextThreadLocalTest.java
+++ b/core/src/test/java/org/apache/struts2/ActionContextThreadLocalTest.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2;
+package org.apache.struts2;
import junit.framework.TestCase;
diff --git a/core/src/test/java/com/opensymphony/xwork2/ActionInvocationTest.java b/core/src/test/java/org/apache/struts2/ActionInvocationTest.java
similarity index 95%
rename from core/src/test/java/com/opensymphony/xwork2/ActionInvocationTest.java
rename to core/src/test/java/org/apache/struts2/ActionInvocationTest.java
index 9b8ac87c77..861facf040 100644
--- a/core/src/test/java/com/opensymphony/xwork2/ActionInvocationTest.java
+++ b/core/src/test/java/org/apache/struts2/ActionInvocationTest.java
@@ -16,11 +16,11 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2;
+package org.apache.struts2;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.config.providers.XmlConfigurationProvider;
-import com.opensymphony.xwork2.mock.MockResult;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.config.providers.XmlConfigurationProvider;
+import org.apache.struts2.mock.MockResult;
import org.apache.struts2.StrutsException;
import org.apache.struts2.config.StrutsXmlConfigurationProvider;
import org.apache.struts2.dispatcher.HttpParameters;
diff --git a/core/src/test/java/com/opensymphony/xwork2/ActionNestingTest.java b/core/src/test/java/org/apache/struts2/ActionNestingTest.java
similarity index 90%
rename from core/src/test/java/com/opensymphony/xwork2/ActionNestingTest.java
rename to core/src/test/java/org/apache/struts2/ActionNestingTest.java
index 4ef2ad8ae1..f925eed35a 100644
--- a/core/src/test/java/com/opensymphony/xwork2/ActionNestingTest.java
+++ b/core/src/test/java/org/apache/struts2/ActionNestingTest.java
@@ -16,19 +16,18 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2;
-
-import com.opensymphony.xwork2.config.Configuration;
-import com.opensymphony.xwork2.config.ConfigurationProvider;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.config.entities.PackageConfig;
-import com.opensymphony.xwork2.config.entities.ResultConfig;
-import com.opensymphony.xwork2.inject.ContainerBuilder;
-import com.opensymphony.xwork2.mock.MockResult;
-import com.opensymphony.xwork2.util.ValueStack;
-import com.opensymphony.xwork2.util.location.LocatableProperties;
-
-import java.util.HashMap;
+package org.apache.struts2;
+
+import org.apache.struts2.config.Configuration;
+import org.apache.struts2.config.ConfigurationProvider;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.config.entities.PackageConfig;
+import org.apache.struts2.config.entities.ResultConfig;
+import org.apache.struts2.inject.ContainerBuilder;
+import org.apache.struts2.mock.MockResult;
+import org.apache.struts2.util.ValueStack;
+import org.apache.struts2.util.location.LocatableProperties;
+
import java.util.Map;
diff --git a/core/src/test/java/com/opensymphony/xwork2/ActionSupportTest.java b/core/src/test/java/org/apache/struts2/ActionSupportTest.java
similarity index 98%
rename from core/src/test/java/com/opensymphony/xwork2/ActionSupportTest.java
rename to core/src/test/java/org/apache/struts2/ActionSupportTest.java
index b917aaed43..79420172cd 100644
--- a/core/src/test/java/com/opensymphony/xwork2/ActionSupportTest.java
+++ b/core/src/test/java/org/apache/struts2/ActionSupportTest.java
@@ -16,10 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2;
+package org.apache.struts2;
-import com.opensymphony.xwork2.conversion.impl.ConversionData;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.conversion.impl.ConversionData;
+import org.apache.struts2.util.ValueStack;
import org.apache.struts2.interceptor.parameter.StrutsParameter;
import java.util.ArrayList;
diff --git a/core/src/test/java/com/opensymphony/xwork2/AnnotatedTestBean.java b/core/src/test/java/org/apache/struts2/AnnotatedTestBean.java
similarity index 81%
rename from core/src/test/java/com/opensymphony/xwork2/AnnotatedTestBean.java
rename to core/src/test/java/org/apache/struts2/AnnotatedTestBean.java
index cf4cec6fb5..1c9abe26a0 100644
--- a/core/src/test/java/com/opensymphony/xwork2/AnnotatedTestBean.java
+++ b/core/src/test/java/org/apache/struts2/AnnotatedTestBean.java
@@ -16,14 +16,13 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2;
+package org.apache.struts2;
-import com.opensymphony.xwork2.conversion.annotations.TypeConversion;
-import com.opensymphony.xwork2.conversion.impl.FooBarConverter;
-import com.opensymphony.xwork2.util.Bar;
-import com.opensymphony.xwork2.validator.annotations.IntRangeFieldValidator;
-import com.opensymphony.xwork2.validator.annotations.RequiredStringValidator;
-import com.opensymphony.xwork2.validator.annotations.Validations;
+import org.apache.struts2.conversion.annotations.TypeConversion;
+import org.apache.struts2.util.Bar;
+import org.apache.struts2.validator.annotations.IntRangeFieldValidator;
+import org.apache.struts2.validator.annotations.RequiredStringValidator;
+import org.apache.struts2.validator.annotations.Validations;
import java.util.Date;
@@ -85,7 +84,7 @@ public Bar getSupperBarObj() {
return bar;
}
- @TypeConversion(converter = "com.opensymphony.xwork2.conversion.impl.FooBarConverter")
+ @TypeConversion(converter = "org.apache.struts2.conversion.impl.FooBarConverter")
public void setSupperBarObj(Bar b) {
bar = b;
}
diff --git a/core/src/test/java/com/opensymphony/xwork2/ChainResultTest.java b/core/src/test/java/org/apache/struts2/ChainResultTest.java
similarity index 97%
rename from core/src/test/java/com/opensymphony/xwork2/ChainResultTest.java
rename to core/src/test/java/org/apache/struts2/ChainResultTest.java
index 2806de198c..dbdecf2c89 100644
--- a/core/src/test/java/com/opensymphony/xwork2/ChainResultTest.java
+++ b/core/src/test/java/org/apache/struts2/ChainResultTest.java
@@ -16,12 +16,12 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2;
+package org.apache.struts2;
import com.mockobjects.dynamic.Mock;
-import com.opensymphony.xwork2.config.providers.XmlConfigurationProvider;
-import com.opensymphony.xwork2.mock.MockResult;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.config.providers.XmlConfigurationProvider;
+import org.apache.struts2.mock.MockResult;
+import org.apache.struts2.util.ValueStack;
import junit.framework.TestCase;
import org.apache.struts2.StrutsException;
import org.apache.struts2.config.StrutsXmlConfigurationProvider;
diff --git a/core/src/test/java/com/opensymphony/xwork2/CompositeTextProviderTest.java b/core/src/test/java/org/apache/struts2/CompositeTextProviderTest.java
similarity index 87%
rename from core/src/test/java/com/opensymphony/xwork2/CompositeTextProviderTest.java
rename to core/src/test/java/org/apache/struts2/CompositeTextProviderTest.java
index 0237b65c1c..822cf20663 100644
--- a/core/src/test/java/com/opensymphony/xwork2/CompositeTextProviderTest.java
+++ b/core/src/test/java/org/apache/struts2/CompositeTextProviderTest.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2;
+package org.apache.struts2;
import java.util.ArrayList;
import java.util.Locale;
@@ -78,9 +78,9 @@ public void testHasKey() throws Exception {
}
public void testGetResourceBundleByName() throws Exception {
- assertNotNull(textProvider.getTexts("com.opensymphony.xwork2.validator.CompositeTextProviderTestResourceBundle1"));
- assertNotNull(textProvider.getTexts("com.opensymphony.xwork2.validator.CompositeTextProviderTestResourceBundle2"));
- assertNull(textProvider.getTexts("com.opensymphony.xwork2.validator.CompositeTextProviderTestResourceBundle3"));
+ assertNotNull(textProvider.getTexts("org.apache.struts2.validator.CompositeTextProviderTestResourceBundle1"));
+ assertNotNull(textProvider.getTexts("org.apache.struts2.validator.CompositeTextProviderTestResourceBundle2"));
+ assertNull(textProvider.getTexts("org.apache.struts2.validator.CompositeTextProviderTestResourceBundle3"));
}
public void testGetResourceBundle() throws Exception {
@@ -100,8 +100,8 @@ protected void setUp() throws Exception {
ActionContext.getContext().withLocale(Locale.ENGLISH);
textProvider = new CompositeTextProvider(new TextProvider[]{
- tpf.createInstance(ResourceBundle.getBundle("com.opensymphony.xwork2.validator.CompositeTextProviderTestResourceBundle1")),
- tpf.createInstance(ResourceBundle.getBundle("com.opensymphony.xwork2.validator.CompositeTextProviderTestResourceBundle2"))
+ tpf.createInstance(ResourceBundle.getBundle("org.apache.struts2.validator.CompositeTextProviderTestResourceBundle1")),
+ tpf.createInstance(ResourceBundle.getBundle("org.apache.struts2.validator.CompositeTextProviderTestResourceBundle2"))
});
}
diff --git a/core/src/test/java/com/opensymphony/xwork2/DefaultActionInvocationTest.java b/core/src/test/java/org/apache/struts2/DefaultActionInvocationTest.java
similarity index 96%
rename from core/src/test/java/com/opensymphony/xwork2/DefaultActionInvocationTest.java
rename to core/src/test/java/org/apache/struts2/DefaultActionInvocationTest.java
index bc5eb14f9f..f7e3f2aa64 100644
--- a/core/src/test/java/com/opensymphony/xwork2/DefaultActionInvocationTest.java
+++ b/core/src/test/java/org/apache/struts2/DefaultActionInvocationTest.java
@@ -16,18 +16,18 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2;
-
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.config.entities.InterceptorMapping;
-import com.opensymphony.xwork2.config.entities.ResultConfig;
-import com.opensymphony.xwork2.config.providers.XmlConfigurationProvider;
-import com.opensymphony.xwork2.interceptor.Interceptor;
-import com.opensymphony.xwork2.mock.MockActionProxy;
-import com.opensymphony.xwork2.mock.MockInterceptor;
-import com.opensymphony.xwork2.mock.MockResult;
-import com.opensymphony.xwork2.util.ValueStack;
-import com.opensymphony.xwork2.util.ValueStackFactory;
+package org.apache.struts2;
+
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.config.entities.InterceptorMapping;
+import org.apache.struts2.config.entities.ResultConfig;
+import org.apache.struts2.config.providers.XmlConfigurationProvider;
+import org.apache.struts2.interceptor.Interceptor;
+import org.apache.struts2.mock.MockActionProxy;
+import org.apache.struts2.mock.MockInterceptor;
+import org.apache.struts2.mock.MockResult;
+import org.apache.struts2.util.ValueStack;
+import org.apache.struts2.util.ValueStackFactory;
import org.apache.struts2.config.StrutsXmlConfigurationProvider;
import org.apache.struts2.dispatcher.HttpParameters;
@@ -38,7 +38,7 @@
import java.util.concurrent.Semaphore;
import java.util.concurrent.TimeUnit;
-import static com.opensymphony.xwork2.ognl.OgnlUtilTest.createOgnlUtil;
+import static org.apache.struts2.ognl.OgnlUtilTest.createOgnlUtil;
/**
diff --git a/core/src/test/java/com/opensymphony/xwork2/DefaultActionProxyTest.java b/core/src/test/java/org/apache/struts2/DefaultActionProxyTest.java
similarity index 88%
rename from core/src/test/java/com/opensymphony/xwork2/DefaultActionProxyTest.java
rename to core/src/test/java/org/apache/struts2/DefaultActionProxyTest.java
index 125c5b4bd6..8484fac5a9 100644
--- a/core/src/test/java/com/opensymphony/xwork2/DefaultActionProxyTest.java
+++ b/core/src/test/java/org/apache/struts2/DefaultActionProxyTest.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2;
+package org.apache.struts2;
-import com.opensymphony.xwork2.mock.MockActionInvocation;
+import org.apache.struts2.mock.MockActionInvocation;
import org.apache.struts2.StrutsInternalTestCase;
import org.apache.struts2.config.StrutsXmlConfigurationProvider;
import org.junit.Test;
@@ -27,7 +27,7 @@ public class DefaultActionProxyTest extends StrutsInternalTestCase {
@Test
public void testThorwExceptionOnNotAllowedMethod() throws Exception {
- final String filename = "com/opensymphony/xwork2/config/providers/xwork-test-allowed-methods.xml";
+ final String filename = "org/apache/struts2/config/providers/xwork-test-allowed-methods.xml";
loadConfigurationProviders(new StrutsXmlConfigurationProvider(filename));
DefaultActionProxy dap = new DefaultActionProxy(new MockActionInvocation(), "strict", "Default", "notAllowed", true, true);
container.inject(dap);
diff --git a/core/src/test/java/com/opensymphony/xwork2/DefaultClasstTest.java b/core/src/test/java/org/apache/struts2/DefaultClasstTest.java
similarity index 76%
rename from core/src/test/java/com/opensymphony/xwork2/DefaultClasstTest.java
rename to core/src/test/java/org/apache/struts2/DefaultClasstTest.java
index a8d6e7324e..23d1dd065f 100644
--- a/core/src/test/java/com/opensymphony/xwork2/DefaultClasstTest.java
+++ b/core/src/test/java/org/apache/struts2/DefaultClasstTest.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2;
+package org.apache.struts2;
-import com.opensymphony.xwork2.config.providers.XmlConfigurationProvider;
+import org.apache.struts2.config.providers.XmlConfigurationProvider;
import org.apache.struts2.config.StrutsXmlConfigurationProvider;
/**
@@ -41,23 +41,23 @@ protected void setUp() throws Exception {
public void testWildCardEvaluation() throws Exception {
ActionProxy proxy = actionProxyFactory.createActionProxy("Abstract-crud", "edit", null, null);
- assertEquals("com.opensymphony.xwork2.SimpleAction", proxy.getConfig().getClassName());
+ assertEquals("org.apache.struts2.SimpleAction", proxy.getConfig().getClassName());
proxy = actionProxyFactory.createActionProxy("/example", "edit", null, null);
- assertEquals("com.opensymphony.xwork2.ModelDrivenAction", proxy.getConfig().getClassName());
+ assertEquals("org.apache.struts2.ModelDrivenAction", proxy.getConfig().getClassName());
proxy = actionProxyFactory.createActionProxy("/example2", "override", null, null);
- assertEquals("com.opensymphony.xwork2.ModelDrivenAction", proxy.getConfig().getClassName());
+ assertEquals("org.apache.struts2.ModelDrivenAction", proxy.getConfig().getClassName());
proxy = actionProxyFactory.createActionProxy("/example2/subItem", "save", null, null);
- assertEquals("com.opensymphony.xwork2.ModelDrivenAction", proxy.getConfig().getClassName());
+ assertEquals("org.apache.struts2.ModelDrivenAction", proxy.getConfig().getClassName());
proxy = actionProxyFactory.createActionProxy("/example2", "list", null, null);
- assertEquals("com.opensymphony.xwork2.ModelDrivenAction", proxy.getConfig().getClassName());
+ assertEquals("org.apache.struts2.ModelDrivenAction", proxy.getConfig().getClassName());
proxy = actionProxyFactory.createActionProxy("/example3", "list", null, null);
- assertEquals("com.opensymphony.xwork2.SimpleAction", proxy.getConfig().getClassName());
+ assertEquals("org.apache.struts2.SimpleAction", proxy.getConfig().getClassName());
}
}
diff --git a/core/src/test/java/com/opensymphony/xwork2/DefaultLocaleProviderTest.java b/core/src/test/java/org/apache/struts2/DefaultLocaleProviderTest.java
similarity index 99%
rename from core/src/test/java/com/opensymphony/xwork2/DefaultLocaleProviderTest.java
rename to core/src/test/java/org/apache/struts2/DefaultLocaleProviderTest.java
index bb5178abd9..e87ad000bb 100644
--- a/core/src/test/java/com/opensymphony/xwork2/DefaultLocaleProviderTest.java
+++ b/core/src/test/java/org/apache/struts2/DefaultLocaleProviderTest.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2;
+package org.apache.struts2;
import org.junit.AfterClass;
import org.junit.Before;
diff --git a/core/src/test/java/com/opensymphony/xwork2/DefaultTextProviderTest.java b/core/src/test/java/org/apache/struts2/DefaultTextProviderTest.java
similarity index 99%
rename from core/src/test/java/com/opensymphony/xwork2/DefaultTextProviderTest.java
rename to core/src/test/java/org/apache/struts2/DefaultTextProviderTest.java
index 511e6a884a..0fa2c94427 100644
--- a/core/src/test/java/com/opensymphony/xwork2/DefaultTextProviderTest.java
+++ b/core/src/test/java/org/apache/struts2/DefaultTextProviderTest.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2;
+package org.apache.struts2;
import java.util.*;
diff --git a/core/src/test/java/com/opensymphony/xwork2/DefaultUnknownHandlerManagerTest.java b/core/src/test/java/org/apache/struts2/DefaultUnknownHandlerManagerTest.java
similarity index 94%
rename from core/src/test/java/com/opensymphony/xwork2/DefaultUnknownHandlerManagerTest.java
rename to core/src/test/java/org/apache/struts2/DefaultUnknownHandlerManagerTest.java
index c3018856f1..62c6a2162b 100644
--- a/core/src/test/java/com/opensymphony/xwork2/DefaultUnknownHandlerManagerTest.java
+++ b/core/src/test/java/org/apache/struts2/DefaultUnknownHandlerManagerTest.java
@@ -16,10 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2;
+package org.apache.struts2;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.config.providers.SomeUnknownHandler;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.config.providers.SomeUnknownHandler;
import junit.framework.TestCase;
diff --git a/core/src/test/java/org/apache/struts2/ExecutionCountTestAction.java b/core/src/test/java/org/apache/struts2/ExecutionCountTestAction.java
index ca8ee077f9..aec41bc2a2 100644
--- a/core/src/test/java/org/apache/struts2/ExecutionCountTestAction.java
+++ b/core/src/test/java/org/apache/struts2/ExecutionCountTestAction.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2;
-import com.opensymphony.xwork2.ActionSupport;
+import org.apache.struts2.ActionSupport;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
diff --git a/core/src/test/java/com/opensymphony/xwork2/ExternalReferenceAction.java b/core/src/test/java/org/apache/struts2/ExternalReferenceAction.java
similarity index 97%
rename from core/src/test/java/com/opensymphony/xwork2/ExternalReferenceAction.java
rename to core/src/test/java/org/apache/struts2/ExternalReferenceAction.java
index f02759f503..469f97538e 100644
--- a/core/src/test/java/com/opensymphony/xwork2/ExternalReferenceAction.java
+++ b/core/src/test/java/org/apache/struts2/ExternalReferenceAction.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2;
+package org.apache.struts2;
public class ExternalReferenceAction implements Action {
diff --git a/core/src/test/java/com/opensymphony/xwork2/Foo.java b/core/src/test/java/org/apache/struts2/Foo.java
similarity index 96%
rename from core/src/test/java/com/opensymphony/xwork2/Foo.java
rename to core/src/test/java/org/apache/struts2/Foo.java
index becfd3e643..ff7927d712 100644
--- a/core/src/test/java/com/opensymphony/xwork2/Foo.java
+++ b/core/src/test/java/org/apache/struts2/Foo.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2;
+package org.apache.struts2;
public class Foo {
diff --git a/core/src/test/java/com/opensymphony/xwork2/GenericsBean.java b/core/src/test/java/org/apache/struts2/GenericsBean.java
similarity index 98%
rename from core/src/test/java/com/opensymphony/xwork2/GenericsBean.java
rename to core/src/test/java/org/apache/struts2/GenericsBean.java
index 6a96e6684d..9a994757f8 100644
--- a/core/src/test/java/com/opensymphony/xwork2/GenericsBean.java
+++ b/core/src/test/java/org/apache/struts2/GenericsBean.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2;
+package org.apache.struts2;
import java.util.ArrayList;
import java.util.HashMap;
diff --git a/core/src/test/java/org/apache/struts2/HttpMethodsTestAction.java b/core/src/test/java/org/apache/struts2/HttpMethodsTestAction.java
index 33921e2204..0e6a015652 100644
--- a/core/src/test/java/org/apache/struts2/HttpMethodsTestAction.java
+++ b/core/src/test/java/org/apache/struts2/HttpMethodsTestAction.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2;
-import com.opensymphony.xwork2.ActionSupport;
+import org.apache.struts2.ActionSupport;
import org.apache.struts2.interceptor.httpmethod.AllowedHttpMethod;
import org.apache.struts2.interceptor.httpmethod.HttpDelete;
import org.apache.struts2.interceptor.httpmethod.HttpGet;
diff --git a/core/src/test/java/com/opensymphony/xwork2/LocaleAwareTest.java b/core/src/test/java/org/apache/struts2/LocaleAwareTest.java
similarity index 90%
rename from core/src/test/java/com/opensymphony/xwork2/LocaleAwareTest.java
rename to core/src/test/java/org/apache/struts2/LocaleAwareTest.java
index bb77cab23c..3cceecfe65 100644
--- a/core/src/test/java/com/opensymphony/xwork2/LocaleAwareTest.java
+++ b/core/src/test/java/org/apache/struts2/LocaleAwareTest.java
@@ -16,12 +16,12 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2;
+package org.apache.struts2;
-import com.opensymphony.xwork2.config.providers.MockConfigurationProvider;
-import com.opensymphony.xwork2.config.providers.XmlConfigurationProvider;
-import com.opensymphony.xwork2.util.ValueStack;
-import com.opensymphony.xwork2.util.ValueStackFactory;
+import org.apache.struts2.config.providers.MockConfigurationProvider;
+import org.apache.struts2.config.providers.XmlConfigurationProvider;
+import org.apache.struts2.util.ValueStack;
+import org.apache.struts2.util.ValueStackFactory;
import org.apache.struts2.config.StrutsXmlConfigurationProvider;
import java.util.Locale;
diff --git a/core/src/test/java/com/opensymphony/xwork2/LocaleProviderTest.java b/core/src/test/java/org/apache/struts2/LocaleProviderTest.java
similarity index 98%
rename from core/src/test/java/com/opensymphony/xwork2/LocaleProviderTest.java
rename to core/src/test/java/org/apache/struts2/LocaleProviderTest.java
index 03e05f5c23..7d0b79242d 100644
--- a/core/src/test/java/com/opensymphony/xwork2/LocaleProviderTest.java
+++ b/core/src/test/java/org/apache/struts2/LocaleProviderTest.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2;
+package org.apache.struts2;
import org.junit.Test;
diff --git a/core/src/test/java/com/opensymphony/xwork2/ModelDrivenAction.java b/core/src/test/java/org/apache/struts2/ModelDrivenAction.java
similarity index 97%
rename from core/src/test/java/com/opensymphony/xwork2/ModelDrivenAction.java
rename to core/src/test/java/org/apache/struts2/ModelDrivenAction.java
index 6ffcad2ff2..bd6ff1813e 100644
--- a/core/src/test/java/com/opensymphony/xwork2/ModelDrivenAction.java
+++ b/core/src/test/java/org/apache/struts2/ModelDrivenAction.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2;
+package org.apache.struts2;
import org.apache.struts2.interceptor.parameter.StrutsParameter;
diff --git a/core/src/test/java/com/opensymphony/xwork2/ModelDrivenAnnotationAction.java b/core/src/test/java/org/apache/struts2/ModelDrivenAnnotationAction.java
similarity index 97%
rename from core/src/test/java/com/opensymphony/xwork2/ModelDrivenAnnotationAction.java
rename to core/src/test/java/org/apache/struts2/ModelDrivenAnnotationAction.java
index 5549b60b10..eadbf2e444 100644
--- a/core/src/test/java/com/opensymphony/xwork2/ModelDrivenAnnotationAction.java
+++ b/core/src/test/java/org/apache/struts2/ModelDrivenAnnotationAction.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2;
+package org.apache.struts2;
import org.apache.struts2.interceptor.parameter.StrutsParameter;
diff --git a/core/src/test/java/com/opensymphony/xwork2/NestedAction.java b/core/src/test/java/org/apache/struts2/NestedAction.java
similarity index 96%
rename from core/src/test/java/com/opensymphony/xwork2/NestedAction.java
rename to core/src/test/java/org/apache/struts2/NestedAction.java
index 292176ce78..75f8783df3 100644
--- a/core/src/test/java/com/opensymphony/xwork2/NestedAction.java
+++ b/core/src/test/java/org/apache/struts2/NestedAction.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2;
+package org.apache.struts2;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import org.junit.Assert;
diff --git a/core/src/test/java/com/opensymphony/xwork2/ObjectFactoryTest.java b/core/src/test/java/org/apache/struts2/ObjectFactoryTest.java
similarity index 88%
rename from core/src/test/java/com/opensymphony/xwork2/ObjectFactoryTest.java
rename to core/src/test/java/org/apache/struts2/ObjectFactoryTest.java
index 036926e2f4..25db28e25a 100644
--- a/core/src/test/java/com/opensymphony/xwork2/ObjectFactoryTest.java
+++ b/core/src/test/java/org/apache/struts2/ObjectFactoryTest.java
@@ -16,11 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2;
+package org.apache.struts2;
-import com.opensymphony.xwork2.mock.DummyTextProvider;
-import com.opensymphony.xwork2.mock.InjectableAction;
-import org.apache.struts2.StrutsInternalTestCase;
+import org.apache.struts2.mock.DummyTextProvider;
+import org.apache.struts2.mock.InjectableAction;
import java.util.HashMap;
diff --git a/core/src/test/java/com/opensymphony/xwork2/ProxyInvocationAction.java b/core/src/test/java/org/apache/struts2/ProxyInvocationAction.java
similarity index 96%
rename from core/src/test/java/com/opensymphony/xwork2/ProxyInvocationAction.java
rename to core/src/test/java/org/apache/struts2/ProxyInvocationAction.java
index 47afb2baa6..55d23a7776 100644
--- a/core/src/test/java/com/opensymphony/xwork2/ProxyInvocationAction.java
+++ b/core/src/test/java/org/apache/struts2/ProxyInvocationAction.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2;
+package org.apache.struts2;
/**
* Need by the ProxyInvocationTest
diff --git a/core/src/test/java/com/opensymphony/xwork2/ProxyInvocationInterface.java b/core/src/test/java/org/apache/struts2/ProxyInvocationInterface.java
similarity index 96%
rename from core/src/test/java/com/opensymphony/xwork2/ProxyInvocationInterface.java
rename to core/src/test/java/org/apache/struts2/ProxyInvocationInterface.java
index 75e93102a1..271a56a858 100644
--- a/core/src/test/java/com/opensymphony/xwork2/ProxyInvocationInterface.java
+++ b/core/src/test/java/org/apache/struts2/ProxyInvocationInterface.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2;
+package org.apache.struts2;
/**
* Need by the ProxyInvocationTest
diff --git a/core/src/test/java/com/opensymphony/xwork2/ProxyInvocationTest.java b/core/src/test/java/org/apache/struts2/ProxyInvocationTest.java
similarity index 95%
rename from core/src/test/java/com/opensymphony/xwork2/ProxyInvocationTest.java
rename to core/src/test/java/org/apache/struts2/ProxyInvocationTest.java
index d1fd7e2516..b9fa7bf4ab 100644
--- a/core/src/test/java/com/opensymphony/xwork2/ProxyInvocationTest.java
+++ b/core/src/test/java/org/apache/struts2/ProxyInvocationTest.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2;
+package org.apache.struts2;
-import com.opensymphony.xwork2.config.providers.XmlConfigurationProvider;
+import org.apache.struts2.config.providers.XmlConfigurationProvider;
import org.apache.struts2.config.StrutsXmlConfigurationProvider;
import org.apache.struts2.dispatcher.HttpParameters;
diff --git a/core/src/test/java/com/opensymphony/xwork2/ProxyObjectFactory.java b/core/src/test/java/org/apache/struts2/ProxyObjectFactory.java
similarity index 96%
rename from core/src/test/java/com/opensymphony/xwork2/ProxyObjectFactory.java
rename to core/src/test/java/org/apache/struts2/ProxyObjectFactory.java
index 231e9fcb87..bb544f1936 100644
--- a/core/src/test/java/com/opensymphony/xwork2/ProxyObjectFactory.java
+++ b/core/src/test/java/org/apache/struts2/ProxyObjectFactory.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2;
+package org.apache.struts2;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
@@ -24,7 +24,7 @@
import java.util.Map;
/**
- * ObjectFactory that returns a FooProxy in the buildBean if the clazz is FooAction
+ * ObjectFactory that returns a FooProxy in the buildBean if the clazz is FooAction
*/
public class ProxyObjectFactory extends ObjectFactory {
@@ -32,7 +32,7 @@ public ProxyObjectFactory() {
}
/**
- * It returns an instance of the bean except if the class is FooAction.
+ * It returns an instance of the bean except if the class is FooAction.
* In this case, it returns a FooProxy of it.
*/
@Override
@@ -47,7 +47,7 @@ public Object buildBean(Class clazz, Map extraContext)
}
return bean;
}
-
+
/**
* Simple proxy that just invokes the method on the target on the invoke method
*/
diff --git a/core/src/test/java/org/apache/struts2/ServletActionContextTest.java b/core/src/test/java/org/apache/struts2/ServletActionContextTest.java
index 516d9437f8..0a92e440bb 100644
--- a/core/src/test/java/org/apache/struts2/ServletActionContextTest.java
+++ b/core/src/test/java/org/apache/struts2/ServletActionContextTest.java
@@ -25,7 +25,7 @@
import org.springframework.mock.web.MockHttpServletResponse;
import org.springframework.mock.web.MockServletContext;
-import com.opensymphony.xwork2.ActionContext;
+import org.apache.struts2.ActionContext;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
diff --git a/core/src/test/java/com/opensymphony/xwork2/SimpleAction.java b/core/src/test/java/org/apache/struts2/SimpleAction.java
similarity index 96%
rename from core/src/test/java/com/opensymphony/xwork2/SimpleAction.java
rename to core/src/test/java/org/apache/struts2/SimpleAction.java
index 51d9fa7f79..ba5ac95284 100644
--- a/core/src/test/java/com/opensymphony/xwork2/SimpleAction.java
+++ b/core/src/test/java/org/apache/struts2/SimpleAction.java
@@ -16,10 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2;
+package org.apache.struts2;
-import com.opensymphony.xwork2.config.Configuration;
-import com.opensymphony.xwork2.inject.Inject;
+import org.apache.struts2.config.Configuration;
+import org.apache.struts2.inject.Inject;
import java.util.ArrayList;
import java.util.Date;
@@ -37,7 +37,7 @@
*/
public class SimpleAction extends ActionSupport {
- public static final String COMMAND_RETURN_CODE = "com.opensymphony.xwork2.SimpleAction.CommandInvoked";
+ public static final String COMMAND_RETURN_CODE = "org.apache.struts2.SimpleAction.CommandInvoked";
private ArrayList someList = new ArrayList<>();
diff --git a/core/src/test/java/com/opensymphony/xwork2/SimpleAnnotationAction.java b/core/src/test/java/org/apache/struts2/SimpleAnnotationAction.java
similarity index 88%
rename from core/src/test/java/com/opensymphony/xwork2/SimpleAnnotationAction.java
rename to core/src/test/java/org/apache/struts2/SimpleAnnotationAction.java
index 312e7bc9c2..e73426de4a 100644
--- a/core/src/test/java/com/opensymphony/xwork2/SimpleAnnotationAction.java
+++ b/core/src/test/java/org/apache/struts2/SimpleAnnotationAction.java
@@ -16,19 +16,19 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2;
-
-import com.opensymphony.xwork2.validator.annotations.DateRangeFieldValidator;
-import com.opensymphony.xwork2.validator.annotations.DoubleRangeFieldValidator;
-import com.opensymphony.xwork2.validator.annotations.EmailValidator;
-import com.opensymphony.xwork2.validator.annotations.ExpressionValidator;
-import com.opensymphony.xwork2.validator.annotations.IntRangeFieldValidator;
-import com.opensymphony.xwork2.validator.annotations.RequiredFieldValidator;
-import com.opensymphony.xwork2.validator.annotations.RequiredStringValidator;
-import com.opensymphony.xwork2.validator.annotations.StringLengthFieldValidator;
-import com.opensymphony.xwork2.validator.annotations.UrlValidator;
-import com.opensymphony.xwork2.validator.annotations.Validations;
-import com.opensymphony.xwork2.validator.annotations.ValidatorType;
+package org.apache.struts2;
+
+import org.apache.struts2.validator.annotations.DateRangeFieldValidator;
+import org.apache.struts2.validator.annotations.DoubleRangeFieldValidator;
+import org.apache.struts2.validator.annotations.EmailValidator;
+import org.apache.struts2.validator.annotations.ExpressionValidator;
+import org.apache.struts2.validator.annotations.IntRangeFieldValidator;
+import org.apache.struts2.validator.annotations.RequiredFieldValidator;
+import org.apache.struts2.validator.annotations.RequiredStringValidator;
+import org.apache.struts2.validator.annotations.StringLengthFieldValidator;
+import org.apache.struts2.validator.annotations.UrlValidator;
+import org.apache.struts2.validator.annotations.Validations;
+import org.apache.struts2.validator.annotations.ValidatorType;
import org.apache.struts2.interceptor.parameter.StrutsParameter;
import java.util.ArrayList;
@@ -42,7 +42,7 @@
public class SimpleAnnotationAction extends ActionSupport {
//~ Static fields/initializers /////////////////////////////////////////////
- public static final String COMMAND_RETURN_CODE = "com.opensymphony.xwork2.SimpleAnnotationAction.CommandInvoked";
+ public static final String COMMAND_RETURN_CODE = "org.apache.struts2.SimpleAnnotationAction.CommandInvoked";
//~ Instance fields ////////////////////////////////////////////////////////
diff --git a/core/src/test/java/com/opensymphony/xwork2/SimpleFooAction.java b/core/src/test/java/org/apache/struts2/SimpleFooAction.java
similarity index 97%
rename from core/src/test/java/com/opensymphony/xwork2/SimpleFooAction.java
rename to core/src/test/java/org/apache/struts2/SimpleFooAction.java
index 589f5e9e7a..9c0804518c 100644
--- a/core/src/test/java/com/opensymphony/xwork2/SimpleFooAction.java
+++ b/core/src/test/java/org/apache/struts2/SimpleFooAction.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2;
+package org.apache.struts2;
/**
diff --git a/core/src/test/java/org/apache/struts2/StrutsExceptionTest.java b/core/src/test/java/org/apache/struts2/StrutsExceptionTest.java
index 59e4859f6c..795eec619a 100644
--- a/core/src/test/java/org/apache/struts2/StrutsExceptionTest.java
+++ b/core/src/test/java/org/apache/struts2/StrutsExceptionTest.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts2;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.util.location.Location;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.util.location.Location;
public class StrutsExceptionTest extends XWorkTestCase {
diff --git a/core/src/test/java/org/apache/struts2/StrutsInternalTestCase.java b/core/src/test/java/org/apache/struts2/StrutsInternalTestCase.java
index ade928efb0..17f4320dac 100644
--- a/core/src/test/java/org/apache/struts2/StrutsInternalTestCase.java
+++ b/core/src/test/java/org/apache/struts2/StrutsInternalTestCase.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts2;
-import com.opensymphony.xwork2.ActionProxyFactory;
-import com.opensymphony.xwork2.XWorkTestCase;
+import org.apache.struts2.ActionProxyFactory;
+import org.apache.struts2.XWorkTestCase;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.struts2.dispatcher.Dispatcher;
import org.apache.struts2.dispatcher.PrepareOperations;
diff --git a/core/src/test/java/org/apache/struts2/StrutsJUnit4InternalTestCase.java b/core/src/test/java/org/apache/struts2/StrutsJUnit4InternalTestCase.java
index 8d72753927..81403bdcee 100644
--- a/core/src/test/java/org/apache/struts2/StrutsJUnit4InternalTestCase.java
+++ b/core/src/test/java/org/apache/struts2/StrutsJUnit4InternalTestCase.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts2;
-import com.opensymphony.xwork2.ActionProxyFactory;
-import com.opensymphony.xwork2.XWorkJUnit4TestCase;
+import org.apache.struts2.ActionProxyFactory;
+import org.apache.struts2.XWorkJUnit4TestCase;
import org.apache.struts2.dispatcher.Dispatcher;
import org.apache.struts2.util.StrutsTestCaseHelper;
import org.apache.struts2.views.jsp.StrutsMockServletContext;
diff --git a/core/src/test/java/com/opensymphony/xwork2/StubTextProvider.java b/core/src/test/java/org/apache/struts2/StubTextProvider.java
similarity index 97%
rename from core/src/test/java/com/opensymphony/xwork2/StubTextProvider.java
rename to core/src/test/java/org/apache/struts2/StubTextProvider.java
index bc9b95c000..0ef1899b0a 100644
--- a/core/src/test/java/com/opensymphony/xwork2/StubTextProvider.java
+++ b/core/src/test/java/org/apache/struts2/StubTextProvider.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2;
+package org.apache.struts2;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import java.util.List;
import java.util.Map;
diff --git a/core/src/test/java/com/opensymphony/xwork2/StubValueStack.java b/core/src/test/java/org/apache/struts2/StubValueStack.java
similarity index 95%
rename from core/src/test/java/com/opensymphony/xwork2/StubValueStack.java
rename to core/src/test/java/org/apache/struts2/StubValueStack.java
index 46737341d1..b49b324ec3 100644
--- a/core/src/test/java/com/opensymphony/xwork2/StubValueStack.java
+++ b/core/src/test/java/org/apache/struts2/StubValueStack.java
@@ -16,10 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2;
+package org.apache.struts2;
-import com.opensymphony.xwork2.util.CompoundRoot;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.CompoundRoot;
+import org.apache.struts2.util.ValueStack;
import java.util.HashMap;
import java.util.Map;
@@ -30,7 +30,7 @@
public class StubValueStack implements ValueStack {
Map ctx = new HashMap<>();
CompoundRoot root = new CompoundRoot();
-
+
public Map getContext() {
return ctx;
}
diff --git a/core/src/test/java/org/apache/struts2/TestAction.java b/core/src/test/java/org/apache/struts2/TestAction.java
index ddcfd83cc3..ebcd7f18dc 100644
--- a/core/src/test/java/org/apache/struts2/TestAction.java
+++ b/core/src/test/java/org/apache/struts2/TestAction.java
@@ -18,13 +18,13 @@
*/
package org.apache.struts2;
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionSupport;
-import com.opensymphony.xwork2.util.ValueStack;
-import com.opensymphony.xwork2.validator.annotations.RequiredFieldValidator;
-import com.opensymphony.xwork2.validator.annotations.RequiredStringValidator;
-import com.opensymphony.xwork2.validator.annotations.Validations;
-import com.opensymphony.xwork2.validator.annotations.ValidatorType;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionSupport;
+import org.apache.struts2.util.ValueStack;
+import org.apache.struts2.validator.annotations.RequiredFieldValidator;
+import org.apache.struts2.validator.annotations.RequiredStringValidator;
+import org.apache.struts2.validator.annotations.Validations;
+import org.apache.struts2.validator.annotations.ValidatorType;
import org.apache.struts2.interceptor.parameter.StrutsParameter;
import org.apache.struts2.views.jsp.ui.User;
diff --git a/core/src/test/java/org/apache/struts2/TestActionTagResult.java b/core/src/test/java/org/apache/struts2/TestActionTagResult.java
index 6f71c9803b..58fcc4fd47 100644
--- a/core/src/test/java/org/apache/struts2/TestActionTagResult.java
+++ b/core/src/test/java/org/apache/struts2/TestActionTagResult.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts2;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.Result;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.Result;
public class TestActionTagResult implements Result {
diff --git a/core/src/test/java/com/opensymphony/xwork2/TestBean.java b/core/src/test/java/org/apache/struts2/TestBean.java
similarity index 98%
rename from core/src/test/java/com/opensymphony/xwork2/TestBean.java
rename to core/src/test/java/org/apache/struts2/TestBean.java
index fd5bc59d45..80217b233c 100644
--- a/core/src/test/java/com/opensymphony/xwork2/TestBean.java
+++ b/core/src/test/java/org/apache/struts2/TestBean.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2;
+package org.apache.struts2;
import java.util.Date;
diff --git a/core/src/test/java/com/opensymphony/xwork2/TestChildBean.java b/core/src/test/java/org/apache/struts2/TestChildBean.java
similarity index 97%
rename from core/src/test/java/com/opensymphony/xwork2/TestChildBean.java
rename to core/src/test/java/org/apache/struts2/TestChildBean.java
index 731fc8ca43..b6c4cc4f55 100644
--- a/core/src/test/java/com/opensymphony/xwork2/TestChildBean.java
+++ b/core/src/test/java/org/apache/struts2/TestChildBean.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2;
+package org.apache.struts2;
import java.util.Calendar;
import java.util.Date;
diff --git a/core/src/test/java/org/apache/struts2/TestConfigurationProvider.java b/core/src/test/java/org/apache/struts2/TestConfigurationProvider.java
index 9be3f2233a..a401d3ae43 100644
--- a/core/src/test/java/org/apache/struts2/TestConfigurationProvider.java
+++ b/core/src/test/java/org/apache/struts2/TestConfigurationProvider.java
@@ -18,25 +18,25 @@
*/
package org.apache.struts2;
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionProxyFactory;
-import com.opensymphony.xwork2.DefaultActionProxyFactory;
-import com.opensymphony.xwork2.ObjectFactory;
-import com.opensymphony.xwork2.config.Configuration;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.config.ConfigurationProvider;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.config.entities.InterceptorMapping;
-import com.opensymphony.xwork2.config.entities.PackageConfig;
-import com.opensymphony.xwork2.config.entities.ResultConfig;
-import com.opensymphony.xwork2.inject.ContainerBuilder;
-import com.opensymphony.xwork2.mock.MockResult;
-import com.opensymphony.xwork2.security.DefaultExcludedPatternsChecker;
-import com.opensymphony.xwork2.security.DefaultNotExcludedAcceptedPatternsChecker;
-import com.opensymphony.xwork2.security.ExcludedPatternsChecker;
-import com.opensymphony.xwork2.security.NotExcludedAcceptedPatternsChecker;
-import com.opensymphony.xwork2.util.location.LocatableProperties;
-import com.opensymphony.xwork2.validator.ValidationInterceptor;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionProxyFactory;
+import org.apache.struts2.DefaultActionProxyFactory;
+import org.apache.struts2.ObjectFactory;
+import org.apache.struts2.config.Configuration;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.config.ConfigurationProvider;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.config.entities.InterceptorMapping;
+import org.apache.struts2.config.entities.PackageConfig;
+import org.apache.struts2.config.entities.ResultConfig;
+import org.apache.struts2.inject.ContainerBuilder;
+import org.apache.struts2.mock.MockResult;
+import org.apache.struts2.security.DefaultExcludedPatternsChecker;
+import org.apache.struts2.security.DefaultNotExcludedAcceptedPatternsChecker;
+import org.apache.struts2.security.ExcludedPatternsChecker;
+import org.apache.struts2.security.NotExcludedAcceptedPatternsChecker;
+import org.apache.struts2.util.location.LocatableProperties;
+import org.apache.struts2.validator.ValidationInterceptor;
import org.apache.struts2.interceptor.TokenInterceptor;
import org.apache.struts2.interceptor.TokenSessionStoreInterceptor;
import org.apache.struts2.interceptor.parameter.ParametersInterceptor;
diff --git a/core/src/test/java/org/apache/struts2/TestResult.java b/core/src/test/java/org/apache/struts2/TestResult.java
index 55fbdb48f9..49a0f4082f 100644
--- a/core/src/test/java/org/apache/struts2/TestResult.java
+++ b/core/src/test/java/org/apache/struts2/TestResult.java
@@ -18,10 +18,10 @@
*/
package org.apache.struts2;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.Result;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.Result;
+import org.apache.struts2.util.ValueStack;
import org.junit.Assert;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
diff --git a/core/src/test/java/com/opensymphony/xwork2/TextProviderSupportTest.java b/core/src/test/java/org/apache/struts2/TextProviderSupportTest.java
similarity index 97%
rename from core/src/test/java/com/opensymphony/xwork2/TextProviderSupportTest.java
rename to core/src/test/java/org/apache/struts2/TextProviderSupportTest.java
index 7ae1d83ecd..dd0bddb7b0 100644
--- a/core/src/test/java/com/opensymphony/xwork2/TextProviderSupportTest.java
+++ b/core/src/test/java/org/apache/struts2/TextProviderSupportTest.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2;
+package org.apache.struts2;
import java.util.ArrayList;
import java.util.List;
@@ -37,7 +37,7 @@ public void testHasKey() throws Exception {
assertTrue(tp.hasKey("hello"));
assertFalse(tp.hasKey("not.in.bundle"));
}
-
+
public void testSimpleGetTexts() throws Exception {
assertEquals("Hello World", tp.getText("hello"));
assertEquals("not.in.bundle", tp.getText("not.in.bundle"));
@@ -97,15 +97,15 @@ public void testGetBundle() throws Exception {
}
public void testDifficultSymbols1() {
- String val= tp.getText("symbols1");
+ String val= tp.getText("symbols1");
assertEquals("\"=!@#$%^&*(){qwe}<>?:|}{[]\\';/.,<>`~'", val);
}
public void testDifficultSymbols2() {
- String val= tp.getText("symbols2");
+ String val= tp.getText("symbols2");
assertEquals("\"=!@#$%^&*()<>?:|[]\\';/.,<>`~'", val);
- }
-
+ }
+
@Override
protected void setUp() throws Exception {
super.setUp();
diff --git a/core/src/test/java/com/opensymphony/xwork2/UnknownHandlerManagerMock.java b/core/src/test/java/org/apache/struts2/UnknownHandlerManagerMock.java
similarity index 97%
rename from core/src/test/java/com/opensymphony/xwork2/UnknownHandlerManagerMock.java
rename to core/src/test/java/org/apache/struts2/UnknownHandlerManagerMock.java
index e972ae0187..a1a233765b 100644
--- a/core/src/test/java/com/opensymphony/xwork2/UnknownHandlerManagerMock.java
+++ b/core/src/test/java/org/apache/struts2/UnknownHandlerManagerMock.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2;
+package org.apache.struts2;
import java.util.ArrayList;
diff --git a/core/src/test/java/com/opensymphony/xwork2/UserSpecifiedDefaultAction.java b/core/src/test/java/org/apache/struts2/UserSpecifiedDefaultAction.java
similarity index 96%
rename from core/src/test/java/com/opensymphony/xwork2/UserSpecifiedDefaultAction.java
rename to core/src/test/java/org/apache/struts2/UserSpecifiedDefaultAction.java
index 60e9cfeff0..bd464095a1 100644
--- a/core/src/test/java/com/opensymphony/xwork2/UserSpecifiedDefaultAction.java
+++ b/core/src/test/java/org/apache/struts2/UserSpecifiedDefaultAction.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2;
+package org.apache.struts2;
/**
* UserSpecifiedDefaultAction
diff --git a/core/src/test/java/com/opensymphony/xwork2/ValidationOrderAction.java b/core/src/test/java/org/apache/struts2/ValidationOrderAction.java
similarity index 99%
rename from core/src/test/java/com/opensymphony/xwork2/ValidationOrderAction.java
rename to core/src/test/java/org/apache/struts2/ValidationOrderAction.java
index f5cc1c4e23..9da88f4505 100644
--- a/core/src/test/java/com/opensymphony/xwork2/ValidationOrderAction.java
+++ b/core/src/test/java/org/apache/struts2/ValidationOrderAction.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2;
+package org.apache.struts2;
import org.apache.struts2.interceptor.parameter.StrutsParameter;
diff --git a/core/src/test/java/com/opensymphony/xwork2/VoidResult.java b/core/src/test/java/org/apache/struts2/VoidResult.java
similarity index 97%
rename from core/src/test/java/com/opensymphony/xwork2/VoidResult.java
rename to core/src/test/java/org/apache/struts2/VoidResult.java
index 037a95c063..2eedd2dc12 100644
--- a/core/src/test/java/com/opensymphony/xwork2/VoidResult.java
+++ b/core/src/test/java/org/apache/struts2/VoidResult.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2;
+package org.apache.struts2;
/**
*/
diff --git a/core/src/test/java/com/opensymphony/xwork2/WildCardResultTest.java b/core/src/test/java/org/apache/struts2/WildCardResultTest.java
similarity index 93%
rename from core/src/test/java/com/opensymphony/xwork2/WildCardResultTest.java
rename to core/src/test/java/org/apache/struts2/WildCardResultTest.java
index 008b5cc8c5..aa36369551 100644
--- a/core/src/test/java/com/opensymphony/xwork2/WildCardResultTest.java
+++ b/core/src/test/java/org/apache/struts2/WildCardResultTest.java
@@ -16,10 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2;
+package org.apache.struts2;
-import com.opensymphony.xwork2.config.providers.XmlConfigurationProvider;
-import com.opensymphony.xwork2.mock.MockResult;
+import org.apache.struts2.config.providers.XmlConfigurationProvider;
+import org.apache.struts2.mock.MockResult;
import org.apache.struts2.config.StrutsXmlConfigurationProvider;
/**
diff --git a/core/src/test/java/org/apache/struts2/action/CspReportActionTest.java b/core/src/test/java/org/apache/struts2/action/CspReportActionTest.java
index 27a5b93429..6485454fbd 100644
--- a/core/src/test/java/org/apache/struts2/action/CspReportActionTest.java
+++ b/core/src/test/java/org/apache/struts2/action/CspReportActionTest.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.action;
-import com.opensymphony.xwork2.XWorkTestCase;
+import org.apache.struts2.XWorkTestCase;
import org.apache.struts2.interceptor.csp.CspSettings;
import org.springframework.http.HttpMethod;
import org.springframework.mock.web.MockHttpServletRequest;
diff --git a/core/src/test/java/org/apache/struts2/components/ActionComponentTest.java b/core/src/test/java/org/apache/struts2/components/ActionComponentTest.java
index 0956700d51..35d93b5ed1 100644
--- a/core/src/test/java/org/apache/struts2/components/ActionComponentTest.java
+++ b/core/src/test/java/org/apache/struts2/components/ActionComponentTest.java
@@ -19,8 +19,8 @@
package org.apache.struts2.components;
import com.mockobjects.dynamic.Mock;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.util.ValueStack;
import org.apache.struts2.StrutsInternalTestCase;
import org.apache.struts2.dispatcher.HttpParameters;
import org.springframework.mock.web.MockHttpServletRequest;
diff --git a/core/src/test/java/org/apache/struts2/components/ComponentTest.java b/core/src/test/java/org/apache/struts2/components/ComponentTest.java
index bf0e3dc71a..3b354955ea 100644
--- a/core/src/test/java/org/apache/struts2/components/ComponentTest.java
+++ b/core/src/test/java/org/apache/struts2/components/ComponentTest.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.components;
-import com.opensymphony.xwork2.LocalizedTextProvider;
+import org.apache.struts2.LocalizedTextProvider;
import org.apache.struts2.StrutsException;
import org.apache.struts2.TestConfigurationProvider;
import org.apache.struts2.views.jsp.AbstractTagTest;
diff --git a/core/src/test/java/org/apache/struts2/components/DateTest.java b/core/src/test/java/org/apache/struts2/components/DateTest.java
index 69247ef173..03d5dd5642 100644
--- a/core/src/test/java/org/apache/struts2/components/DateTest.java
+++ b/core/src/test/java/org/apache/struts2/components/DateTest.java
@@ -18,9 +18,9 @@
*/
package org.apache.struts2.components;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.util.ValueStack;
-import com.opensymphony.xwork2.util.ValueStackFactory;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.util.ValueStack;
+import org.apache.struts2.util.ValueStackFactory;
import org.apache.struts2.StrutsInternalTestCase;
import org.apache.struts2.components.date.SimpleDateFormatAdapter;
diff --git a/core/src/test/java/org/apache/struts2/components/FormButtonTest.java b/core/src/test/java/org/apache/struts2/components/FormButtonTest.java
index 429ecfd6cc..834292a22c 100644
--- a/core/src/test/java/org/apache/struts2/components/FormButtonTest.java
+++ b/core/src/test/java/org/apache/struts2/components/FormButtonTest.java
@@ -18,13 +18,13 @@
*/
package org.apache.struts2.components;
-import com.opensymphony.xwork2.TestBean;
+import org.apache.struts2.TestBean;
import org.apache.struts2.StrutsInternalTestCase;
import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.mock.web.MockHttpServletResponse;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.util.ValueStack;
/**
*
diff --git a/core/src/test/java/org/apache/struts2/components/FormTest.java b/core/src/test/java/org/apache/struts2/components/FormTest.java
index 649747a410..4664569310 100644
--- a/core/src/test/java/org/apache/struts2/components/FormTest.java
+++ b/core/src/test/java/org/apache/struts2/components/FormTest.java
@@ -18,15 +18,15 @@
*/
package org.apache.struts2.components;
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.ActionProxy;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.config.entities.InterceptorMapping;
-import com.opensymphony.xwork2.validator.ValidationInterceptor;
-import com.opensymphony.xwork2.validator.validators.RequiredFieldValidator;
-import com.opensymphony.xwork2.validator.validators.RequiredStringValidator;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.config.entities.InterceptorMapping;
+import org.apache.struts2.validator.ValidationInterceptor;
+import org.apache.struts2.validator.validators.RequiredFieldValidator;
+import org.apache.struts2.validator.validators.RequiredStringValidator;
import org.apache.struts2.dispatcher.mapper.ActionMapper;
import org.apache.struts2.dispatcher.mapper.DefaultActionMapper;
import org.apache.struts2.TestAction;
@@ -101,7 +101,7 @@ protected void setUp() throws Exception {
EasyMock.expect(invocation.invoke()).andReturn(Action.SUCCESS).anyTimes();
EasyMock.expect(proxy.getMethod()).andReturn("execute").anyTimes();
EasyMock.expect(proxy.getConfig()).andReturn(config).anyTimes();
-
+
EasyMock.replay(invocation);
EasyMock.replay(proxy);
@@ -109,7 +109,7 @@ protected void setUp() throws Exception {
defaultNamespace.put("actionName", config);
((DefaultActionMapper) container.getInstance(ActionMapper.class)).setAllowDynamicMethodCalls("true");
-
+
ActionContext.getContext().withActionInvocation(invocation);
}
}
diff --git a/core/src/test/java/org/apache/struts2/components/IteratorComponentTest.java b/core/src/test/java/org/apache/struts2/components/IteratorComponentTest.java
index 077510a71e..9b160972ca 100644
--- a/core/src/test/java/org/apache/struts2/components/IteratorComponentTest.java
+++ b/core/src/test/java/org/apache/struts2/components/IteratorComponentTest.java
@@ -18,9 +18,9 @@
*/
package org.apache.struts2.components;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.test.User;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.test.User;
+import org.apache.struts2.util.ValueStack;
import org.apache.struts2.StrutsInternalTestCase;
import org.apache.struts2.ognl.ThreadAllowlist;
import org.apache.struts2.TestAction;
diff --git a/core/src/test/java/org/apache/struts2/components/PropertyTest.java b/core/src/test/java/org/apache/struts2/components/PropertyTest.java
index c764d912fd..ae0040cde0 100644
--- a/core/src/test/java/org/apache/struts2/components/PropertyTest.java
+++ b/core/src/test/java/org/apache/struts2/components/PropertyTest.java
@@ -24,9 +24,9 @@
import org.apache.struts2.StrutsInternalTestCase;
import org.apache.struts2.util.StrutsTypeConverter;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.conversion.impl.XWorkConverter;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.conversion.impl.XWorkConverter;
+import org.apache.struts2.util.ValueStack;
/**
*
diff --git a/core/src/test/java/org/apache/struts2/components/UIBeanTest.java b/core/src/test/java/org/apache/struts2/components/UIBeanTest.java
index 6903289421..bc67615204 100644
--- a/core/src/test/java/org/apache/struts2/components/UIBeanTest.java
+++ b/core/src/test/java/org/apache/struts2/components/UIBeanTest.java
@@ -18,9 +18,9 @@
*/
package org.apache.struts2.components;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.util.ValueStack;
import org.apache.struts2.StrutsInternalTestCase;
import org.apache.struts2.components.template.Template;
import org.apache.struts2.components.template.TemplateEngine;
@@ -33,7 +33,7 @@
import java.util.HashMap;
import java.util.Map;
-import static com.opensymphony.xwork2.security.DefaultNotExcludedAcceptedPatternsCheckerTest.NO_EXCLUSION_ACCEPT_ALL_PATTERNS_CHECKER;
+import static org.apache.struts2.security.DefaultNotExcludedAcceptedPatternsCheckerTest.NO_EXCLUSION_ACCEPT_ALL_PATTERNS_CHECKER;
public class UIBeanTest extends StrutsInternalTestCase {
diff --git a/core/src/test/java/org/apache/struts2/components/UIComponentTest.java b/core/src/test/java/org/apache/struts2/components/UIComponentTest.java
index 7a99e36c30..416b090452 100644
--- a/core/src/test/java/org/apache/struts2/components/UIComponentTest.java
+++ b/core/src/test/java/org/apache/struts2/components/UIComponentTest.java
@@ -40,7 +40,7 @@
import org.apache.struts2.views.jsp.ui.TextareaTag;
import org.apache.struts2.views.jsp.ui.TokenTag;
-import com.opensymphony.xwork2.ActionContext;
+import org.apache.struts2.ActionContext;
/**
diff --git a/core/src/test/java/com/opensymphony/xwork2/config/ConfigurationManagerTest.java b/core/src/test/java/org/apache/struts2/config/ConfigurationManagerTest.java
similarity index 92%
rename from core/src/test/java/com/opensymphony/xwork2/config/ConfigurationManagerTest.java
rename to core/src/test/java/org/apache/struts2/config/ConfigurationManagerTest.java
index 3d0de3aecd..09c85056a8 100644
--- a/core/src/test/java/com/opensymphony/xwork2/config/ConfigurationManagerTest.java
+++ b/core/src/test/java/org/apache/struts2/config/ConfigurationManagerTest.java
@@ -16,16 +16,17 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.config;
+package org.apache.struts2.config;
import com.mockobjects.dynamic.C;
import com.mockobjects.dynamic.Mock;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.config.providers.StrutsDefaultConfigurationProvider;
-import com.opensymphony.xwork2.conversion.TypeConverterHolder;
-import com.opensymphony.xwork2.inject.Container;
-import com.opensymphony.xwork2.inject.ContainerBuilder;
-import com.opensymphony.xwork2.util.location.LocatableProperties;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.config.providers.StrutsDefaultConfigurationProvider;
+import org.apache.struts2.conversion.TypeConverterHolder;
+import org.apache.struts2.inject.Container;
+import org.apache.struts2.inject.ContainerBuilder;
+import org.apache.struts2.util.location.LocatableProperties;
+import org.mockito.Mockito;
import java.util.Properties;
@@ -150,8 +151,8 @@ public void register(ContainerBuilder builder, LocatableProperties props) throws
}
public void testRemoveConfigurationProvider() throws Exception {
- ConfigurationProvider configProvider1 = mock(ConfigurationProvider.class);
- ConfigurationProvider configProvider2 = mock(ConfigurationProvider.class);
+ ConfigurationProvider configProvider1 = Mockito.mock(ConfigurationProvider.class);
+ ConfigurationProvider configProvider2 = Mockito.mock(ConfigurationProvider.class);
configurationManager.addContainerProvider(configProvider1);
configurationManager.addContainerProvider(configProvider2);
diff --git a/core/src/test/java/com/opensymphony/xwork2/config/ConfigurationTest.java b/core/src/test/java/org/apache/struts2/config/ConfigurationTest.java
similarity index 94%
rename from core/src/test/java/com/opensymphony/xwork2/config/ConfigurationTest.java
rename to core/src/test/java/org/apache/struts2/config/ConfigurationTest.java
index 520f8c2409..039928bf51 100644
--- a/core/src/test/java/com/opensymphony/xwork2/config/ConfigurationTest.java
+++ b/core/src/test/java/org/apache/struts2/config/ConfigurationTest.java
@@ -16,23 +16,22 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.config;
+package org.apache.struts2.config;
import com.mockobjects.dynamic.C;
import com.mockobjects.dynamic.Mock;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionProxy;
-import com.opensymphony.xwork2.SimpleAction;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.config.providers.MockConfigurationProvider;
-import com.opensymphony.xwork2.config.providers.XmlConfigurationProvider;
-import com.opensymphony.xwork2.inject.ContainerBuilder;
-import com.opensymphony.xwork2.mock.MockInterceptor;
-import com.opensymphony.xwork2.test.StubConfigurationProvider;
-import com.opensymphony.xwork2.util.location.LocatableProperties;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.SimpleAction;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.config.providers.MockConfigurationProvider;
+import org.apache.struts2.config.providers.XmlConfigurationProvider;
+import org.apache.struts2.inject.ContainerBuilder;
+import org.apache.struts2.mock.MockInterceptor;
+import org.apache.struts2.test.StubConfigurationProvider;
+import org.apache.struts2.util.location.LocatableProperties;
import org.apache.struts2.StrutsConstants;
-import org.apache.struts2.config.StrutsXmlConfigurationProvider;
import org.apache.struts2.dispatcher.HttpParameters;
import java.util.HashMap;
@@ -95,7 +94,7 @@ public void testWildcardName() {
ActionConfig config = configuration.getActionConfig("", "WildCard/Simple/input");
assertNotNull(config);
- assertEquals("Wrong class name, " + config.getClassName(), "com.opensymphony.xwork2.SimpleAction", config.getClassName());
+ assertEquals("Wrong class name, " + config.getClassName(), "org.apache.struts2.SimpleAction", config.getClassName());
assertEquals("Wrong method name", "input", config.getMethodName());
Map p = config.getParams();
@@ -109,7 +108,7 @@ public void testWildcardNamespace() {
ActionConfig config = configuration.getActionConfig("/animals/dog", "commandTest");
assertNotNull(config);
- assertEquals("Wrong class name, " + config.getClassName(), "com.opensymphony.xwork2.SimpleAction", config.getClassName());
+ assertEquals("Wrong class name, " + config.getClassName(), "org.apache.struts2.SimpleAction", config.getClassName());
Map p = config.getParams();
assertEquals("Wrong parameter, " + p.get("0"), "/animals/dog", p.get("0"));
diff --git a/core/src/test/java/org/apache/struts2/config/PropertiesConfigurationProviderTest.java b/core/src/test/java/org/apache/struts2/config/PropertiesConfigurationProviderTest.java
index bda46a41bb..5b6b060795 100644
--- a/core/src/test/java/org/apache/struts2/config/PropertiesConfigurationProviderTest.java
+++ b/core/src/test/java/org/apache/struts2/config/PropertiesConfigurationProviderTest.java
@@ -18,9 +18,9 @@
*/
package org.apache.struts2.config;
-import com.opensymphony.xwork2.inject.Container;
-import com.opensymphony.xwork2.inject.ContainerBuilder;
-import com.opensymphony.xwork2.util.location.LocatableProperties;
+import org.apache.struts2.inject.Container;
+import org.apache.struts2.inject.ContainerBuilder;
+import org.apache.struts2.util.location.LocatableProperties;
import junit.framework.TestCase;
import org.apache.commons.lang3.LocaleUtils;
import org.apache.struts2.StrutsConstants;
diff --git a/core/src/test/java/org/apache/struts2/config/SettingsTest.java b/core/src/test/java/org/apache/struts2/config/SettingsTest.java
index f4bf9c801d..c3ac9f0444 100644
--- a/core/src/test/java/org/apache/struts2/config/SettingsTest.java
+++ b/core/src/test/java/org/apache/struts2/config/SettingsTest.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.config;
-import com.opensymphony.xwork2.LocalizedTextProvider;
+import org.apache.struts2.LocalizedTextProvider;
import org.apache.struts2.StrutsConstants;
import org.apache.struts2.StrutsInternalTestCase;
diff --git a/core/src/test/java/org/apache/struts2/config/StrutsBeanSelectionProviderTest.java b/core/src/test/java/org/apache/struts2/config/StrutsBeanSelectionProviderTest.java
index 30cc175182..aaff8ef9d7 100644
--- a/core/src/test/java/org/apache/struts2/config/StrutsBeanSelectionProviderTest.java
+++ b/core/src/test/java/org/apache/struts2/config/StrutsBeanSelectionProviderTest.java
@@ -20,14 +20,14 @@
import java.util.Locale;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.LocalizedTextProvider;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.test.StubConfigurationProvider;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.LocalizedTextProvider;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.test.StubConfigurationProvider;
import org.apache.struts2.StrutsConstants;
-import com.opensymphony.xwork2.inject.ContainerBuilder;
-import com.opensymphony.xwork2.util.location.LocatableProperties;
+import org.apache.struts2.inject.ContainerBuilder;
+import org.apache.struts2.util.location.LocatableProperties;
public class StrutsBeanSelectionProviderTest extends XWorkTestCase {
@@ -35,7 +35,7 @@ public void testRegister() {
LocalizedTextProvider localizedTextProvider = container.getInstance(LocalizedTextProvider.class);
assertEquals("The form has already been processed or no token was supplied, please try again.", localizedTextProvider.findDefaultText("struts.messages.invalid.token", Locale.getDefault()));
-
+
loadConfigurationProviders(new StubConfigurationProvider() {
@Override
public void register(ContainerBuilder builder, LocatableProperties props) throws ConfigurationException {
diff --git a/core/src/test/java/org/apache/struts2/config/StrutsJavaConfigurationProviderTest.java b/core/src/test/java/org/apache/struts2/config/StrutsJavaConfigurationProviderTest.java
index b361cf837b..634b9acbe3 100644
--- a/core/src/test/java/org/apache/struts2/config/StrutsJavaConfigurationProviderTest.java
+++ b/core/src/test/java/org/apache/struts2/config/StrutsJavaConfigurationProviderTest.java
@@ -31,13 +31,13 @@
import org.junit.Assert;
import org.junit.Test;
-import com.opensymphony.xwork2.TestBean;
-import com.opensymphony.xwork2.config.Configuration;
-import com.opensymphony.xwork2.config.impl.MockConfiguration;
-import com.opensymphony.xwork2.inject.Container;
-import com.opensymphony.xwork2.inject.ContainerBuilder;
-import com.opensymphony.xwork2.inject.Scope;
-import com.opensymphony.xwork2.util.location.LocatableProperties;
+import org.apache.struts2.TestBean;
+import org.apache.struts2.config.Configuration;
+import org.apache.struts2.config.impl.MockConfiguration;
+import org.apache.struts2.inject.Container;
+import org.apache.struts2.inject.ContainerBuilder;
+import org.apache.struts2.inject.Scope;
+import org.apache.struts2.util.location.LocatableProperties;
public class StrutsJavaConfigurationProviderTest {
@Test
diff --git a/core/src/test/java/org/apache/struts2/config/TestBeanSelectionProvider.java b/core/src/test/java/org/apache/struts2/config/TestBeanSelectionProvider.java
index 27fa961c3b..0a7cf5ebce 100644
--- a/core/src/test/java/org/apache/struts2/config/TestBeanSelectionProvider.java
+++ b/core/src/test/java/org/apache/struts2/config/TestBeanSelectionProvider.java
@@ -18,11 +18,11 @@
*/
package org.apache.struts2.config;
-import com.opensymphony.xwork2.TestBean;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.inject.ContainerBuilder;
-import com.opensymphony.xwork2.inject.Scope;
-import com.opensymphony.xwork2.util.location.LocatableProperties;
+import org.apache.struts2.TestBean;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.inject.ContainerBuilder;
+import org.apache.struts2.inject.Scope;
+import org.apache.struts2.util.location.LocatableProperties;
public class TestBeanSelectionProvider extends AbstractBeanSelectionProvider {
diff --git a/core/src/test/java/org/apache/struts2/config/TestSettings.java b/core/src/test/java/org/apache/struts2/config/TestSettings.java
index 573aee8b18..700176501f 100644
--- a/core/src/test/java/org/apache/struts2/config/TestSettings.java
+++ b/core/src/test/java/org/apache/struts2/config/TestSettings.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.config;
-import com.opensymphony.xwork2.util.location.Location;
+import org.apache.struts2.util.location.Location;
import java.util.ArrayList;
import java.util.Iterator;
diff --git a/core/src/test/java/com/opensymphony/xwork2/config/entities/ActionConfigTest.java b/core/src/test/java/org/apache/struts2/config/entities/ActionConfigTest.java
similarity index 88%
rename from core/src/test/java/com/opensymphony/xwork2/config/entities/ActionConfigTest.java
rename to core/src/test/java/org/apache/struts2/config/entities/ActionConfigTest.java
index d10531b40d..5095455d07 100644
--- a/core/src/test/java/com/opensymphony/xwork2/config/entities/ActionConfigTest.java
+++ b/core/src/test/java/org/apache/struts2/config/entities/ActionConfigTest.java
@@ -16,10 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.config.entities;
+package org.apache.struts2.config.entities;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.util.location.LocationImpl;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.util.location.LocationImpl;
/**
* ActionConfigTest
@@ -32,15 +32,15 @@ public void testToString() {
.location(new LocationImpl(null, "foo/xwork.xml", 10, 12))
.build();
- assertTrue("Wrong toString(): "+cfg.toString(),
+ assertTrue("Wrong toString(): "+cfg.toString(),
"{ActionConfig bob (foo.Bar.execute()) - foo/xwork.xml:10:12 - allowedMethods=[LiteralAllowedMethod{allowedMethod='execute'}]}".equals(cfg.toString()));
}
-
+
public void testToStringWithNoMethod() {
ActionConfig cfg = new ActionConfig.Builder("", "bob", "foo.Bar")
.location(new LocationImpl(null, "foo/xwork.xml", 10, 12))
.build();
-
+
assertTrue("Wrong toString(): "+cfg.toString(),
"{ActionConfig bob (foo.Bar) - foo/xwork.xml:10:12 - allowedMethods=[]}".equals(cfg.toString()));
}
diff --git a/core/src/test/java/com/opensymphony/xwork2/config/entities/AllowedMethodsTest.java b/core/src/test/java/org/apache/struts2/config/entities/AllowedMethodsTest.java
similarity index 98%
rename from core/src/test/java/com/opensymphony/xwork2/config/entities/AllowedMethodsTest.java
rename to core/src/test/java/org/apache/struts2/config/entities/AllowedMethodsTest.java
index 4d907aa40a..16e4268218 100644
--- a/core/src/test/java/com/opensymphony/xwork2/config/entities/AllowedMethodsTest.java
+++ b/core/src/test/java/org/apache/struts2/config/entities/AllowedMethodsTest.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.config.entities;
+package org.apache.struts2.config.entities;
import junit.framework.TestCase;
diff --git a/core/src/test/java/org/apache/struts2/config/entities/BeanConfigTest.java b/core/src/test/java/org/apache/struts2/config/entities/BeanConfigTest.java
index 72709e69d7..7c359b7631 100644
--- a/core/src/test/java/org/apache/struts2/config/entities/BeanConfigTest.java
+++ b/core/src/test/java/org/apache/struts2/config/entities/BeanConfigTest.java
@@ -21,9 +21,9 @@
import org.junit.Assert;
import org.junit.Test;
-import com.opensymphony.xwork2.TestBean;
-import com.opensymphony.xwork2.inject.Container;
-import com.opensymphony.xwork2.inject.Scope;
+import org.apache.struts2.TestBean;
+import org.apache.struts2.inject.Container;
+import org.apache.struts2.inject.Scope;
public class BeanConfigTest {
@Test
diff --git a/core/src/test/java/org/apache/struts2/config/entities/ConstantConfigTest.java b/core/src/test/java/org/apache/struts2/config/entities/ConstantConfigTest.java
index f7e726d560..0daf006d6a 100644
--- a/core/src/test/java/org/apache/struts2/config/entities/ConstantConfigTest.java
+++ b/core/src/test/java/org/apache/struts2/config/entities/ConstantConfigTest.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts2.config.entities;
-import com.opensymphony.xwork2.TestBean;
-import com.opensymphony.xwork2.inject.Container;
+import org.apache.struts2.TestBean;
+import org.apache.struts2.inject.Container;
import org.apache.struts2.StrutsConstants;
import org.apache.struts2.dispatcher.StaticContentLoader;
import org.junit.Assert;
diff --git a/core/src/test/java/com/opensymphony/xwork2/config/entities/PackageConfigTest.java b/core/src/test/java/org/apache/struts2/config/entities/PackageConfigTest.java
similarity index 96%
rename from core/src/test/java/com/opensymphony/xwork2/config/entities/PackageConfigTest.java
rename to core/src/test/java/org/apache/struts2/config/entities/PackageConfigTest.java
index 0c3ac88379..b0fd702d75 100644
--- a/core/src/test/java/com/opensymphony/xwork2/config/entities/PackageConfigTest.java
+++ b/core/src/test/java/org/apache/struts2/config/entities/PackageConfigTest.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.config.entities;
+package org.apache.struts2.config.entities;
-import com.opensymphony.xwork2.XWorkTestCase;
+import org.apache.struts2.XWorkTestCase;
public class PackageConfigTest extends XWorkTestCase {
@@ -30,7 +30,7 @@ public void testFullDefaultInterceptorRef() {
.addParent(cfg1)
.addParent(cfg2)
.build();
-
+
assertEquals("ref2", cfg.getFullDefaultInterceptorRef());
}
diff --git a/core/src/test/java/com/opensymphony/xwork2/config/impl/AbstractMatcherTest.java b/core/src/test/java/org/apache/struts2/config/impl/AbstractMatcherTest.java
similarity index 98%
rename from core/src/test/java/com/opensymphony/xwork2/config/impl/AbstractMatcherTest.java
rename to core/src/test/java/org/apache/struts2/config/impl/AbstractMatcherTest.java
index 09af02d3b2..2bb14194cf 100644
--- a/core/src/test/java/com/opensymphony/xwork2/config/impl/AbstractMatcherTest.java
+++ b/core/src/test/java/org/apache/struts2/config/impl/AbstractMatcherTest.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.config.impl;
+package org.apache.struts2.config.impl;
import junit.framework.TestCase;
diff --git a/core/src/test/java/com/opensymphony/xwork2/config/impl/ActionConfigMatcherTest.java b/core/src/test/java/org/apache/struts2/config/impl/ActionConfigMatcherTest.java
similarity index 95%
rename from core/src/test/java/com/opensymphony/xwork2/config/impl/ActionConfigMatcherTest.java
rename to core/src/test/java/org/apache/struts2/config/impl/ActionConfigMatcherTest.java
index ac522563ce..c99ced440a 100644
--- a/core/src/test/java/com/opensymphony/xwork2/config/impl/ActionConfigMatcherTest.java
+++ b/core/src/test/java/org/apache/struts2/config/impl/ActionConfigMatcherTest.java
@@ -16,14 +16,14 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.config.impl;
-
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.config.entities.ExceptionMappingConfig;
-import com.opensymphony.xwork2.config.entities.InterceptorMapping;
-import com.opensymphony.xwork2.config.entities.ResultConfig;
-import com.opensymphony.xwork2.util.WildcardHelper;
+package org.apache.struts2.config.impl;
+
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.config.entities.ExceptionMappingConfig;
+import org.apache.struts2.config.entities.InterceptorMapping;
+import org.apache.struts2.config.entities.ResultConfig;
+import org.apache.struts2.util.WildcardHelper;
import org.apache.struts2.util.RegexPatternMatcher;
import java.util.HashMap;
@@ -34,7 +34,7 @@ public class ActionConfigMatcherTest extends XWorkTestCase {
// ----------------------------------------------------- Instance Variables
private Map configMap;
private ActionConfigMatcher matcher;
-
+
// ----------------------------------------------------- Setup and Teardown
@Override public void setUp() throws Exception {
super.setUp();
@@ -81,21 +81,21 @@ public void testCheckSubstitutionsMatch() {
assertTrue("First param isn't correct", "class".equals(m.getParams().get("first")));
assertTrue("Second param isn't correct", "method".equals(m.getParams().get("second")));
-
+
ExceptionMappingConfig ex = m.getExceptionMappings().get(0);
assertTrue("Wrong name, was "+ex.getName(), "fooclass".equals(ex.getName()));
assertTrue("Wrong result", "successclass".equals(ex.getResult()));
- assertTrue("Wrong exception",
+ assertTrue("Wrong exception",
"java.lang.methodException".equals(ex.getExceptionClassName()));
assertTrue("First param isn't correct", "class".equals(ex.getParams().get("first")));
assertTrue("Second param isn't correct", "method".equals(ex.getParams().get("second")));
-
+
ResultConfig result = m.getResults().get("successclass");
assertTrue("Wrong name, was "+result.getName(), "successclass".equals(result.getName()));
assertTrue("Wrong classname", "foo.method".equals(result.getClassName()));
assertTrue("First param isn't correct", "class".equals(result.getParams().get("first")));
assertTrue("Second param isn't correct", "method".equals(result.getParams().get("second")));
-
+
}
public void testCheckMultipleSubstitutions() {
@@ -104,7 +104,7 @@ public void testCheckMultipleSubstitutions() {
assertTrue("Method hasn't been replaced correctly: " + m.getMethodName(),
"doclass_class".equals(m.getMethodName()));
}
-
+
public void testAllowedMethods() {
ActionConfig m = matcher.match("addEvent!start");
assertTrue(m.getAllowedMethods().contains("start"));
@@ -116,31 +116,31 @@ public void testAllowedMethods() {
public void testLooseMatch() {
configMap.put("*!*", configMap.get("bar/*/**"));
ActionConfigMatcher matcher = new ActionConfigMatcher(new WildcardHelper(), configMap, true);
-
+
// exact match
ActionConfig m = matcher.match("foo/class/method");
assertNotNull("ActionConfig should be matched", m);
assertTrue("Class hasn't been replaced "+m.getClassName(), "foo.bar.classAction".equals(m.getClassName()));
assertTrue("Method hasn't been replaced", "domethod".equals(m.getMethodName()));
-
+
// Missing last wildcard
m = matcher.match("foo/class");
assertNotNull("ActionConfig should be matched", m);
assertTrue("Class hasn't been replaced", "foo.bar.classAction".equals(m.getClassName()));
assertTrue("Method hasn't been replaced, "+m.getMethodName(), "do".equals(m.getMethodName()));
-
+
// Simple mapping
m = matcher.match("class!method");
assertNotNull("ActionConfig should be matched", m);
assertTrue("Class hasn't been replaced, "+m.getPackageName(), "package-class".equals(m.getPackageName()));
assertTrue("Method hasn't been replaced", "method".equals(m.getParams().get("first")));
-
+
// Simple mapping
m = matcher.match("class");
assertNotNull("ActionConfig should be matched", m);
assertTrue("Class hasn't been replaced", "package-class".equals(m.getPackageName()));
assertTrue("Method hasn't been replaced", "".equals(m.getParams().get("first")));
-
+
}
/**
@@ -234,13 +234,13 @@ private Map buildActionConfigMap() {
.setStrictMethodInvocation(false)
.build();
map.put("foo/*/*", config);
-
+
config = new ActionConfig.Builder("package-{1}", "bar/*/**", "bar")
.methodName("do{1}_{1}")
.addParam("first", "{2}")
.setStrictMethodInvocation(false)
.build();
-
+
map.put("bar/*/**", config);
config = new ActionConfig.Builder("package", "eventAdd!*", "bar")
diff --git a/core/src/test/java/com/opensymphony/xwork2/config/impl/NamespaceMatcherTest.java b/core/src/test/java/org/apache/struts2/config/impl/NamespaceMatcherTest.java
similarity index 94%
rename from core/src/test/java/com/opensymphony/xwork2/config/impl/NamespaceMatcherTest.java
rename to core/src/test/java/org/apache/struts2/config/impl/NamespaceMatcherTest.java
index 3e26e4a840..c76449090d 100644
--- a/core/src/test/java/com/opensymphony/xwork2/config/impl/NamespaceMatcherTest.java
+++ b/core/src/test/java/org/apache/struts2/config/impl/NamespaceMatcherTest.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.config.impl;
+package org.apache.struts2.config.impl;
-import com.opensymphony.xwork2.util.WildcardHelper;
+import org.apache.struts2.util.WildcardHelper;
import junit.framework.TestCase;
import java.util.HashSet;
diff --git a/core/src/test/java/org/apache/struts2/config/providers/ConfigurationProviderOgnlAllowlistTest.java b/core/src/test/java/org/apache/struts2/config/providers/ConfigurationProviderOgnlAllowlistTest.java
new file mode 100644
index 0000000000..104f2093e0
--- /dev/null
+++ b/core/src/test/java/org/apache/struts2/config/providers/ConfigurationProviderOgnlAllowlistTest.java
@@ -0,0 +1,114 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.struts2.config.providers;
+
+import org.apache.struts2.XWorkJUnit4TestCase;
+import org.apache.struts2.config.ConfigurationProvider;
+import org.apache.struts2.config.StrutsXmlConfigurationProvider;
+import org.apache.struts2.ognl.ProviderAllowlist;
+import org.junit.Before;
+import org.junit.Test;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+public class ConfigurationProviderOgnlAllowlistTest extends XWorkJUnit4TestCase {
+
+ private final ConfigurationProvider testXml1 = new StrutsXmlConfigurationProvider("org/apache/struts2/config/providers/xwork-test-allowlist.xml");
+ private final ConfigurationProvider testXml2 = new StrutsXmlConfigurationProvider("org/apache/struts2/config/providers/xwork-test-allowlist-2.xml");
+ private ProviderAllowlist providerAllowlist;
+
+ @Before
+ public void setUp() throws Exception {
+ loadConfigurationProviders(testXml1, testXml2);
+ providerAllowlist = container.getInstance(ProviderAllowlist.class);
+ }
+
+ @Test
+ public void allowList() throws Exception {
+ loadConfigurationProviders(testXml1, testXml2);
+ providerAllowlist = container.getInstance(ProviderAllowlist.class);
+
+ assertThat(providerAllowlist.getProviderAllowlist()).containsExactlyInAnyOrder(
+ Class.forName("org.apache.struts2.interceptor.ValidationAware"),
+ Class.forName("org.apache.struts2.LocaleProvider"),
+ Class.forName("java.io.Serializable"),
+ Class.forName("org.apache.struts2.mock.MockResult"),
+ Class.forName("org.apache.struts2.interceptor.ConditionalInterceptor"),
+ Class.forName("org.apache.struts2.ActionSupport"),
+ Class.forName("org.apache.struts2.ActionChainResult"),
+ Class.forName("org.apache.struts2.TextProvider"),
+ Class.forName("org.apache.struts2.interceptor.NoOpInterceptor"),
+ Class.forName("org.apache.struts2.interceptor.Interceptor"),
+ Class.forName("java.lang.Object"),
+ Class.forName("org.apache.struts2.Validateable"),
+ Class.forName("org.apache.struts2.mock.MockInterceptor"),
+ Class.forName("org.apache.struts2.Action"),
+ Class.forName("org.apache.struts2.interceptor.AbstractInterceptor"),
+ Class.forName("org.apache.struts2.Result"),
+ Class.forName("org.apache.struts2.SimpleAction")
+ );
+ }
+
+ @Test
+ public void allowlist_1only() throws Exception {
+ loadConfigurationProviders(testXml1);
+ providerAllowlist = container.getInstance(ProviderAllowlist.class);
+
+ assertThat(providerAllowlist.getProviderAllowlist()).containsExactlyInAnyOrder(
+ Class.forName("org.apache.struts2.interceptor.ValidationAware"),
+ Class.forName("org.apache.struts2.LocaleProvider"),
+ Class.forName("java.io.Serializable"),
+ Class.forName("org.apache.struts2.mock.MockResult"),
+ Class.forName("org.apache.struts2.interceptor.ConditionalInterceptor"),
+ Class.forName("org.apache.struts2.ActionSupport"),
+ Class.forName("org.apache.struts2.TextProvider"),
+ Class.forName("org.apache.struts2.interceptor.Interceptor"),
+ Class.forName("java.lang.Object"),
+ Class.forName("org.apache.struts2.Validateable"),
+ Class.forName("org.apache.struts2.mock.MockInterceptor"),
+ Class.forName("org.apache.struts2.Action"),
+ Class.forName("org.apache.struts2.interceptor.AbstractInterceptor"),
+ Class.forName("org.apache.struts2.Result"),
+ Class.forName("org.apache.struts2.SimpleAction")
+ );
+ }
+
+ @Test
+ public void allowlist_2only() throws Exception {
+ loadConfigurationProviders(testXml2);
+ providerAllowlist = container.getInstance(ProviderAllowlist.class);
+
+ assertThat(providerAllowlist.getProviderAllowlist()).containsExactlyInAnyOrder(
+ Class.forName("org.apache.struts2.interceptor.ValidationAware"),
+ Class.forName("org.apache.struts2.LocaleProvider"),
+ Class.forName("java.io.Serializable"),
+ Class.forName("org.apache.struts2.interceptor.ConditionalInterceptor"),
+ Class.forName("org.apache.struts2.ActionSupport"),
+ Class.forName("org.apache.struts2.ActionChainResult"),
+ Class.forName("org.apache.struts2.TextProvider"),
+ Class.forName("org.apache.struts2.interceptor.NoOpInterceptor"),
+ Class.forName("org.apache.struts2.interceptor.Interceptor"),
+ Class.forName("java.lang.Object"),
+ Class.forName("org.apache.struts2.Validateable"),
+ Class.forName("org.apache.struts2.Action"),
+ Class.forName("org.apache.struts2.interceptor.AbstractInterceptor"),
+ Class.forName("org.apache.struts2.Result")
+ );
+ }
+}
diff --git a/core/src/test/java/com/opensymphony/xwork2/config/providers/ConfigurationTestBase.java b/core/src/test/java/org/apache/struts2/config/providers/ConfigurationTestBase.java
similarity index 87%
rename from core/src/test/java/com/opensymphony/xwork2/config/providers/ConfigurationTestBase.java
rename to core/src/test/java/org/apache/struts2/config/providers/ConfigurationTestBase.java
index c073071931..c0abadf028 100644
--- a/core/src/test/java/com/opensymphony/xwork2/config/providers/ConfigurationTestBase.java
+++ b/core/src/test/java/org/apache/struts2/config/providers/ConfigurationTestBase.java
@@ -16,11 +16,11 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.config.providers;
+package org.apache.struts2.config.providers;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.config.ConfigurationProvider;
-import com.opensymphony.xwork2.config.impl.MockConfiguration;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.config.ConfigurationProvider;
+import org.apache.struts2.config.impl.MockConfiguration;
import org.apache.struts2.config.StrutsXmlConfigurationProvider;
/**
diff --git a/core/src/test/java/com/opensymphony/xwork2/config/providers/EnvsValueSubstitutorTest.java b/core/src/test/java/org/apache/struts2/config/providers/EnvsValueSubstitutorTest.java
similarity index 97%
rename from core/src/test/java/com/opensymphony/xwork2/config/providers/EnvsValueSubstitutorTest.java
rename to core/src/test/java/org/apache/struts2/config/providers/EnvsValueSubstitutorTest.java
index a360c63ea8..b022f94df4 100644
--- a/core/src/test/java/com/opensymphony/xwork2/config/providers/EnvsValueSubstitutorTest.java
+++ b/core/src/test/java/org/apache/struts2/config/providers/EnvsValueSubstitutorTest.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.config.providers;
+package org.apache.struts2.config.providers;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
diff --git a/core/src/test/java/com/opensymphony/xwork2/config/providers/InterceptorBuilderTest.java b/core/src/test/java/org/apache/struts2/config/providers/InterceptorBuilderTest.java
similarity index 90%
rename from core/src/test/java/com/opensymphony/xwork2/config/providers/InterceptorBuilderTest.java
rename to core/src/test/java/org/apache/struts2/config/providers/InterceptorBuilderTest.java
index d26b326c9d..82f4866d6e 100644
--- a/core/src/test/java/com/opensymphony/xwork2/config/providers/InterceptorBuilderTest.java
+++ b/core/src/test/java/org/apache/struts2/config/providers/InterceptorBuilderTest.java
@@ -16,16 +16,16 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.config.providers;
+package org.apache.struts2.config.providers;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.ObjectFactory;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.config.entities.InterceptorConfig;
-import com.opensymphony.xwork2.config.entities.InterceptorMapping;
-import com.opensymphony.xwork2.config.entities.InterceptorStackConfig;
-import com.opensymphony.xwork2.config.entities.PackageConfig;
-import com.opensymphony.xwork2.interceptor.AbstractInterceptor;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.ObjectFactory;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.config.entities.InterceptorConfig;
+import org.apache.struts2.config.entities.InterceptorMapping;
+import org.apache.struts2.config.entities.InterceptorStackConfig;
+import org.apache.struts2.config.entities.PackageConfig;
+import org.apache.struts2.interceptor.AbstractInterceptor;
import java.util.Collections;
import java.util.LinkedHashMap;
@@ -56,8 +56,8 @@ public void setUp() throws Exception {
public void testBuildInterceptor_1() {
InterceptorStackConfig interceptorStackConfig1 = new InterceptorStackConfig.Builder("interceptorStack1").build();
- InterceptorConfig interceptorConfig1 = new InterceptorConfig.Builder("interceptor1", "com.opensymphony.xwork2.config.providers.InterceptorBuilderTest$MockInterceptor1").build();
- InterceptorConfig interceptorConfig2 = new InterceptorConfig.Builder("interceptor2", "com.opensymphony.xwork2.config.providers.InterceptorBuilderTest$MockInterceptor2").build();
+ InterceptorConfig interceptorConfig1 = new InterceptorConfig.Builder("interceptor1", "org.apache.struts2.config.providers.InterceptorBuilderTest$MockInterceptor1").build();
+ InterceptorConfig interceptorConfig2 = new InterceptorConfig.Builder("interceptor2", "org.apache.struts2.config.providers.InterceptorBuilderTest$MockInterceptor2").build();
PackageConfig packageConfig = new PackageConfig.Builder("package1").namespace("/namespace").addInterceptorConfig(interceptorConfig1).addInterceptorConfig(interceptorConfig2).addInterceptorStackConfig(interceptorStackConfig1).build();
@@ -88,8 +88,8 @@ public void testBuildInterceptor_1() {
}
public void testMultipleSameInterceptors() {
- InterceptorConfig interceptorConfig1 = new InterceptorConfig.Builder("interceptor1", "com.opensymphony.xwork2.config.providers.InterceptorBuilderTest$MockInterceptor1").build();
- InterceptorConfig interceptorConfig2 = new InterceptorConfig.Builder("interceptor2", "com.opensymphony.xwork2.config.providers.InterceptorBuilderTest$MockInterceptor2").build();
+ InterceptorConfig interceptorConfig1 = new InterceptorConfig.Builder("interceptor1", "org.apache.struts2.config.providers.InterceptorBuilderTest$MockInterceptor1").build();
+ InterceptorConfig interceptorConfig2 = new InterceptorConfig.Builder("interceptor2", "org.apache.struts2.config.providers.InterceptorBuilderTest$MockInterceptor2").build();
InterceptorStackConfig interceptorStackConfig1 = new InterceptorStackConfig.Builder("multiStack")
.addInterceptor(new InterceptorMapping(interceptorConfig1.getName(), objectFactory.buildInterceptor(interceptorConfig1, Collections.emptyMap())))
@@ -146,8 +146,8 @@ public void testBuildInterceptor_2() {
InterceptorStackConfig interceptorStackConfig2 = new InterceptorStackConfig.Builder("interceptorStack2").build();
InterceptorStackConfig interceptorStackConfig3 = new InterceptorStackConfig.Builder("interceptorStack3").build();
- InterceptorConfig interceptorConfig1 = new InterceptorConfig.Builder("interceptor1", "com.opensymphony.xwork2.config.providers.InterceptorBuilderTest$MockInterceptor1").build();
- InterceptorConfig interceptorConfig2 = new InterceptorConfig.Builder("interceptor2", "com.opensymphony.xwork2.config.providers.InterceptorBuilderTest$MockInterceptor2").build();
+ InterceptorConfig interceptorConfig1 = new InterceptorConfig.Builder("interceptor1", "org.apache.struts2.config.providers.InterceptorBuilderTest$MockInterceptor1").build();
+ InterceptorConfig interceptorConfig2 = new InterceptorConfig.Builder("interceptor2", "org.apache.struts2.config.providers.InterceptorBuilderTest$MockInterceptor2").build();
PackageConfig packageConfig = new PackageConfig.Builder("package1").namespace("/namespace").
addInterceptorConfig(interceptorConfig1).
@@ -191,8 +191,8 @@ public void testBuildInterceptor_2() {
*
*/
public void testBuildInterceptor_3() {
- InterceptorConfig interceptorConfig1 = new InterceptorConfig.Builder("interceptor1", "com.opensymphony.xwork2.config.providers.InterceptorBuilderTest$MockInterceptor1").build();
- InterceptorConfig interceptorConfig2 = new InterceptorConfig.Builder("interceptor2", "com.opensymphony.xwork2.config.providers.InterceptorBuilderTest$MockInterceptor2").build();
+ InterceptorConfig interceptorConfig1 = new InterceptorConfig.Builder("interceptor1", "org.apache.struts2.config.providers.InterceptorBuilderTest$MockInterceptor1").build();
+ InterceptorConfig interceptorConfig2 = new InterceptorConfig.Builder("interceptor2", "org.apache.struts2.config.providers.InterceptorBuilderTest$MockInterceptor2").build();
InterceptorStackConfig interceptorStackConfig1 = new InterceptorStackConfig.Builder("interceptorStack1").build();
InterceptorStackConfig interceptorStackConfig2 = new InterceptorStackConfig.Builder("interceptorStack2").build();
diff --git a/core/src/test/java/com/opensymphony/xwork2/config/providers/InterceptorForTestPurpose.java b/core/src/test/java/org/apache/struts2/config/providers/InterceptorForTestPurpose.java
similarity index 89%
rename from core/src/test/java/com/opensymphony/xwork2/config/providers/InterceptorForTestPurpose.java
rename to core/src/test/java/org/apache/struts2/config/providers/InterceptorForTestPurpose.java
index bca455bae2..9a4ab6976c 100644
--- a/core/src/test/java/com/opensymphony/xwork2/config/providers/InterceptorForTestPurpose.java
+++ b/core/src/test/java/org/apache/struts2/config/providers/InterceptorForTestPurpose.java
@@ -16,10 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.config.providers;
+package org.apache.struts2.config.providers;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.interceptor.AbstractInterceptor;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.interceptor.AbstractInterceptor;
public class InterceptorForTestPurpose extends AbstractInterceptor {
diff --git a/core/src/test/java/com/opensymphony/xwork2/config/providers/MockConfigurationProvider.java b/core/src/test/java/org/apache/struts2/config/providers/MockConfigurationProvider.java
similarity index 88%
rename from core/src/test/java/com/opensymphony/xwork2/config/providers/MockConfigurationProvider.java
rename to core/src/test/java/org/apache/struts2/config/providers/MockConfigurationProvider.java
index 782f4c344c..8cc506f05b 100644
--- a/core/src/test/java/com/opensymphony/xwork2/config/providers/MockConfigurationProvider.java
+++ b/core/src/test/java/org/apache/struts2/config/providers/MockConfigurationProvider.java
@@ -16,28 +16,28 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.config.providers;
-
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionChainResult;
-import com.opensymphony.xwork2.ModelDrivenAction;
-import com.opensymphony.xwork2.ObjectFactory;
-import com.opensymphony.xwork2.SimpleAction;
-import com.opensymphony.xwork2.config.Configuration;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.config.ConfigurationProvider;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.config.entities.InterceptorConfig;
-import com.opensymphony.xwork2.config.entities.InterceptorMapping;
-import com.opensymphony.xwork2.config.entities.PackageConfig;
-import com.opensymphony.xwork2.config.entities.ResultConfig;
-import com.opensymphony.xwork2.inject.ContainerBuilder;
-import com.opensymphony.xwork2.inject.Inject;
-import com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor;
-import com.opensymphony.xwork2.interceptor.StaticParametersInterceptor;
-import com.opensymphony.xwork2.mock.MockResult;
-import com.opensymphony.xwork2.util.location.LocatableProperties;
-import com.opensymphony.xwork2.validator.ValidationInterceptor;
+package org.apache.struts2.config.providers;
+
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionChainResult;
+import org.apache.struts2.ModelDrivenAction;
+import org.apache.struts2.ObjectFactory;
+import org.apache.struts2.SimpleAction;
+import org.apache.struts2.config.Configuration;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.config.ConfigurationProvider;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.config.entities.InterceptorConfig;
+import org.apache.struts2.config.entities.InterceptorMapping;
+import org.apache.struts2.config.entities.PackageConfig;
+import org.apache.struts2.config.entities.ResultConfig;
+import org.apache.struts2.inject.ContainerBuilder;
+import org.apache.struts2.inject.Inject;
+import org.apache.struts2.interceptor.ModelDrivenInterceptor;
+import org.apache.struts2.interceptor.StaticParametersInterceptor;
+import org.apache.struts2.mock.MockResult;
+import org.apache.struts2.util.location.LocatableProperties;
+import org.apache.struts2.validator.ValidationInterceptor;
import org.apache.struts2.interceptor.parameter.ParametersInterceptor;
import java.util.ArrayList;
diff --git a/core/src/test/java/com/opensymphony/xwork2/config/providers/NoNoArgsConstructorAction.java b/core/src/test/java/org/apache/struts2/config/providers/NoNoArgsConstructorAction.java
similarity index 85%
rename from core/src/test/java/com/opensymphony/xwork2/config/providers/NoNoArgsConstructorAction.java
rename to core/src/test/java/org/apache/struts2/config/providers/NoNoArgsConstructorAction.java
index 805f516233..f9b9268b85 100644
--- a/core/src/test/java/com/opensymphony/xwork2/config/providers/NoNoArgsConstructorAction.java
+++ b/core/src/test/java/org/apache/struts2/config/providers/NoNoArgsConstructorAction.java
@@ -16,15 +16,15 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.config.providers;
+package org.apache.struts2.config.providers;
-import com.opensymphony.xwork2.Action;
+import org.apache.struts2.Action;
/**
* Action with no public constructor taking no args.
*
*
- * Used for unit test of {@link com.opensymphony.xwork2.config.providers.XmlConfigurationProvider}.
+ * Used for unit test of {@link org.apache.struts2.config.providers.XmlConfigurationProvider}.
*
*
* @author Claus Ibsen
diff --git a/core/src/test/java/com/opensymphony/xwork2/config/providers/PrivateConstructorAction.java b/core/src/test/java/org/apache/struts2/config/providers/PrivateConstructorAction.java
similarity index 93%
rename from core/src/test/java/com/opensymphony/xwork2/config/providers/PrivateConstructorAction.java
rename to core/src/test/java/org/apache/struts2/config/providers/PrivateConstructorAction.java
index d39880ded1..43876adaa5 100644
--- a/core/src/test/java/com/opensymphony/xwork2/config/providers/PrivateConstructorAction.java
+++ b/core/src/test/java/org/apache/struts2/config/providers/PrivateConstructorAction.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.config.providers;
+package org.apache.struts2.config.providers;
-import com.opensymphony.xwork2.Action;
+import org.apache.struts2.Action;
/**
* Action with no public constructor.
diff --git a/core/src/test/java/com/opensymphony/xwork2/config/providers/SomeUnknownHandler.java b/core/src/test/java/org/apache/struts2/config/providers/SomeUnknownHandler.java
similarity index 87%
rename from core/src/test/java/com/opensymphony/xwork2/config/providers/SomeUnknownHandler.java
rename to core/src/test/java/org/apache/struts2/config/providers/SomeUnknownHandler.java
index 865bcdefc7..8b3cd156d1 100644
--- a/core/src/test/java/com/opensymphony/xwork2/config/providers/SomeUnknownHandler.java
+++ b/core/src/test/java/org/apache/struts2/config/providers/SomeUnknownHandler.java
@@ -16,12 +16,12 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.config.providers;
+package org.apache.struts2.config.providers;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.Result;
-import com.opensymphony.xwork2.UnknownHandler;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.Result;
+import org.apache.struts2.UnknownHandler;
+import org.apache.struts2.config.entities.ActionConfig;
import org.apache.struts2.StrutsException;
public class SomeUnknownHandler implements UnknownHandler{
diff --git a/core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderActionsTest.java b/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderActionsTest.java
similarity index 82%
rename from core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderActionsTest.java
rename to core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderActionsTest.java
index f702757d82..076fdaa6df 100644
--- a/core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderActionsTest.java
+++ b/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderActionsTest.java
@@ -16,15 +16,20 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.config.providers;
-
-import com.opensymphony.xwork2.ObjectFactory;
-import com.opensymphony.xwork2.SimpleAction;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.config.ConfigurationProvider;
-import com.opensymphony.xwork2.config.entities.*;
-import com.opensymphony.xwork2.mock.MockInterceptor;
-import com.opensymphony.xwork2.mock.MockResult;
+package org.apache.struts2.config.providers;
+
+import org.apache.struts2.ObjectFactory;
+import org.apache.struts2.SimpleAction;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.config.ConfigurationProvider;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.config.entities.ExceptionMappingConfig;
+import org.apache.struts2.config.entities.InterceptorConfig;
+import org.apache.struts2.config.entities.InterceptorMapping;
+import org.apache.struts2.config.entities.PackageConfig;
+import org.apache.struts2.config.entities.ResultConfig;
+import org.apache.struts2.mock.MockInterceptor;
+import org.apache.struts2.mock.MockResult;
import org.apache.struts2.interceptor.NoOpInterceptor;
import java.util.ArrayList;
@@ -46,8 +51,8 @@ public class XmlConfigurationProviderActionsTest extends ConfigurationTestBase {
private ObjectFactory objectFactory;
- public void testActions() throws Exception {
- final String filename = "com/opensymphony/xwork2/config/providers/xwork-test-actions.xml";
+ public void testActions() {
+ final String filename = "org/apache/struts2/config/providers/xwork-test-actions.xml";
ConfigurationProvider provider = buildConfigurationProvider(filename);
// setup expectations
@@ -69,7 +74,7 @@ public void testActions() throws Exception {
results.put("success", new ResultConfig.Builder("success", MockResult.class.getName()).build());
InterceptorConfig noopInterceptorConfig = new InterceptorConfig.Builder("noop", NoOpInterceptor.class.getName()).build();
- interceptors.add(new InterceptorMapping("noop", objectFactory.buildInterceptor(noopInterceptorConfig, new HashMap())));
+ interceptors.add(new InterceptorMapping("noop", objectFactory.buildInterceptor(noopInterceptorConfig, new HashMap<>())));
ActionConfig fooAction = new ActionConfig.Builder("", "Foo", SimpleAction.class.getName())
.addParams(params)
@@ -87,7 +92,7 @@ public void testActions() throws Exception {
.build();
// fooBar action is a little more complex, two params, a result and an interceptor stack
- params = new HashMap();
+ params = new HashMap<>();
params.put("foo", "18");
params.put("bar", "24");
results = new HashMap<>();
@@ -133,7 +138,7 @@ public void testActions() throws Exception {
provider.loadPackages();
PackageConfig pkg = configuration.getPackageConfig("default");
- Map actionConfigs = pkg.getActionConfigs();
+ Map actionConfigs = pkg.getActionConfigs();
// assertions
assertEquals(7, actionConfigs.size());
@@ -145,20 +150,19 @@ public void testActions() throws Exception {
assertEquals(intOverAction, actionConfigs.get("TestInterceptorParamOverride"));
}
- public void testInvalidActions() throws Exception {
- final String filename = "com/opensymphony/xwork2/config/providers/xwork-test-action-invalid.xml";
+ public void testInvalidActions() {
+ final String filename = "org/apache/struts2/config/providers/xwork-test-action-invalid.xml";
try {
- ConfigurationProvider provider = buildConfigurationProvider(filename);
+ buildConfigurationProvider(filename);
fail("Should have thrown an exception");
} catch (ConfigurationException ex) {
// it worked correctly
}
}
- public void testPackageDefaultClassRef() throws Exception {
- final String filename = "com/opensymphony/xwork2/config/providers/xwork-test-actions-packagedefaultclassref.xml";
- final String testDefaultClassName = "com.opensymphony.xwork2.UserSpecifiedDefaultAction";
+ public void testPackageDefaultClassRef() {
+ final String filename = "org/apache/struts2/config/providers/xwork-test-actions-packagedefaultclassref.xml";
ConfigurationProvider provider = buildConfigurationProvider(filename);
@@ -175,16 +179,15 @@ public void testPackageDefaultClassRef() throws Exception {
provider.init(configuration);
PackageConfig pkg = configuration.getPackageConfig("default");
- Map actionConfigs = pkg.getActionConfigs();
+ Map actionConfigs = pkg.getActionConfigs();
// assertions
assertEquals(1, actionConfigs.size());
assertEquals(barWithPackageDefaultClassRefConfig, actionConfigs.get("Bar"));
}
- public void testDefaultActionClass() throws Exception {
- final String filename = "com/opensymphony/xwork2/config/providers/xwork-test-actions.xml";
- final String testDefaultClassName = "com.opensymphony.xwork2.ActionSupport";
+ public void testDefaultActionClass() {
+ final String filename = "org/apache/struts2/config/providers/xwork-test-actions.xml";
ConfigurationProvider provider = buildConfigurationProvider(filename);
@@ -201,7 +204,7 @@ public void testDefaultActionClass() throws Exception {
provider.init(configuration);
PackageConfig pkg = configuration.getPackageConfig("default");
- Map actionConfigs = pkg.getActionConfigs();
+ Map actionConfigs = pkg.getActionConfigs();
// assertions
assertEquals(7, actionConfigs.size());
diff --git a/core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderAllowedMethodsTest.java b/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderAllowedMethodsTest.java
similarity index 93%
rename from core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderAllowedMethodsTest.java
rename to core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderAllowedMethodsTest.java
index 1ac2315bc4..462b7a03e4 100644
--- a/core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderAllowedMethodsTest.java
+++ b/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderAllowedMethodsTest.java
@@ -16,12 +16,12 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.config.providers;
+package org.apache.struts2.config.providers;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.config.ConfigurationProvider;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.config.entities.PackageConfig;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.config.ConfigurationProvider;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.config.entities.PackageConfig;
import java.util.Map;
@@ -31,7 +31,7 @@
public class XmlConfigurationProviderAllowedMethodsTest extends ConfigurationTestBase {
public void testDefaultAllowedMethods() throws ConfigurationException {
- final String filename = "com/opensymphony/xwork2/config/providers/xwork-test-allowed-methods.xml";
+ final String filename = "org/apache/struts2/config/providers/xwork-test-allowed-methods.xml";
ConfigurationProvider provider = buildConfigurationProvider(filename);
// execute the configuration
@@ -96,7 +96,7 @@ public void testDefaultAllowedMethods() throws ConfigurationException {
}
public void testStrictAllowedMethods() throws ConfigurationException {
- final String filename = "com/opensymphony/xwork2/config/providers/xwork-test-allowed-methods.xml";
+ final String filename = "org/apache/struts2/config/providers/xwork-test-allowed-methods.xml";
ConfigurationProvider provider = buildConfigurationProvider(filename);
// execute the configuration
diff --git a/core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderEnvsSubstitutionTest.java b/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderEnvsSubstitutionTest.java
similarity index 94%
rename from core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderEnvsSubstitutionTest.java
rename to core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderEnvsSubstitutionTest.java
index 7fb20f0dee..f9d076ba85 100644
--- a/core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderEnvsSubstitutionTest.java
+++ b/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderEnvsSubstitutionTest.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.config.providers;
+package org.apache.struts2.config.providers;
import org.apache.commons.lang3.SystemUtils;
import org.apache.struts2.StrutsConstants;
@@ -28,7 +28,7 @@ protected void setUp() throws Exception {
super.setUp();
configurationManager.addContainerProvider(buildConfigurationProvider(
- "com/opensymphony/xwork2/config/providers/xwork-test-envs-substitution.xml"));
+ "org/apache/struts2/config/providers/xwork-test-envs-substitution.xml"));
configurationManager.reload();
configuration = configurationManager.getConfiguration();
container = configuration.getContainer();
diff --git a/core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderExceptionMappingsTest.java b/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderExceptionMappingsTest.java
similarity index 78%
rename from core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderExceptionMappingsTest.java
rename to core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderExceptionMappingsTest.java
index 26b99d537a..d120e91d25 100644
--- a/core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderExceptionMappingsTest.java
+++ b/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderExceptionMappingsTest.java
@@ -16,17 +16,17 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.config.providers;
+package org.apache.struts2.config.providers;
-import com.opensymphony.xwork2.ActionChainResult;
-import com.opensymphony.xwork2.SimpleAction;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.config.ConfigurationProvider;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.config.entities.ExceptionMappingConfig;
-import com.opensymphony.xwork2.config.entities.PackageConfig;
-import com.opensymphony.xwork2.config.entities.ResultConfig;
-import com.opensymphony.xwork2.mock.MockResult;
+import org.apache.struts2.ActionChainResult;
+import org.apache.struts2.SimpleAction;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.config.ConfigurationProvider;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.config.entities.ExceptionMappingConfig;
+import org.apache.struts2.config.entities.PackageConfig;
+import org.apache.struts2.config.entities.ResultConfig;
+import org.apache.struts2.mock.MockResult;
import java.util.ArrayList;
import java.util.HashMap;
@@ -41,7 +41,7 @@
public class XmlConfigurationProviderExceptionMappingsTest extends ConfigurationTestBase {
public void testActions() throws ConfigurationException {
- final String filename = "com/opensymphony/xwork2/config/providers/xwork-test-exception-mappings.xml";
+ final String filename = "org/apache/struts2/config/providers/xwork-test-exception-mappings.xml";
ConfigurationProvider provider = buildConfigurationProvider(filename);
List exceptionMappings = new ArrayList<>();
@@ -49,7 +49,7 @@ public void testActions() throws ConfigurationException {
HashMap results = new HashMap<>();
exceptionMappings.add(
- new ExceptionMappingConfig.Builder("spooky-result", "com.opensymphony.xwork2.SpookyException", "spooky-result")
+ new ExceptionMappingConfig.Builder("spooky-result", "org.apache.struts2.SpookyException", "spooky-result")
.build());
results.put("spooky-result", new ResultConfig.Builder("spooky-result", MockResult.class.getName()).build());
diff --git a/core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderGlobalResultInheritenceTest.java b/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderGlobalResultInheritenceTest.java
similarity index 86%
rename from core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderGlobalResultInheritenceTest.java
rename to core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderGlobalResultInheritenceTest.java
index a5c12f31c3..9fbb287310 100644
--- a/core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderGlobalResultInheritenceTest.java
+++ b/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderGlobalResultInheritenceTest.java
@@ -16,15 +16,15 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.config.providers;
+package org.apache.struts2.config.providers;
-import com.opensymphony.xwork2.config.Configuration;
-import com.opensymphony.xwork2.config.ConfigurationManager;
-import com.opensymphony.xwork2.config.ConfigurationProvider;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.config.entities.ResultConfig;
-import com.opensymphony.xwork2.inject.Container;
+import org.apache.struts2.config.Configuration;
+import org.apache.struts2.config.ConfigurationManager;
+import org.apache.struts2.config.ConfigurationProvider;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.config.entities.ResultConfig;
+import org.apache.struts2.inject.Container;
/**
* XmlConfigurationProviderGlobalResultInheritenceTest
@@ -36,7 +36,7 @@
public class XmlConfigurationProviderGlobalResultInheritenceTest extends ConfigurationTestBase {
public void testGlobalResultInheritenceTest() throws Exception {
- ConfigurationProvider provider = buildConfigurationProvider("com/opensymphony/xwork2/config/providers/xwork-test-global-result-inheritence.xml");
+ ConfigurationProvider provider = buildConfigurationProvider("org/apache/struts2/config/providers/xwork-test-global-result-inheritence.xml");
ConfigurationManager configurationManager = new ConfigurationManager(Container.DEFAULT_NAME);
configurationManager.addContainerProvider(new StrutsDefaultConfigurationProvider());
diff --git a/core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderInterceptorParamOverridingTest.java b/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderInterceptorParamOverridingTest.java
similarity index 88%
rename from core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderInterceptorParamOverridingTest.java
rename to core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderInterceptorParamOverridingTest.java
index aab4a50ca5..dda2cc8ff2 100644
--- a/core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderInterceptorParamOverridingTest.java
+++ b/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderInterceptorParamOverridingTest.java
@@ -16,16 +16,16 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.config.providers;
-
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.config.ContainerProvider;
-import com.opensymphony.xwork2.config.RuntimeConfiguration;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.config.entities.InterceptorMapping;
-import com.opensymphony.xwork2.config.impl.DefaultConfiguration;
-import com.opensymphony.xwork2.util.fs.DefaultFileManager;
-import com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory;
+package org.apache.struts2.config.providers;
+
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.config.ContainerProvider;
+import org.apache.struts2.config.RuntimeConfiguration;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.config.entities.InterceptorMapping;
+import org.apache.struts2.config.impl.DefaultConfiguration;
+import org.apache.struts2.util.fs.DefaultFileManager;
+import org.apache.struts2.util.fs.DefaultFileManagerFactory;
import org.apache.struts2.config.StrutsXmlConfigurationProvider;
import java.util.ArrayList;
@@ -39,7 +39,7 @@ public class XmlConfigurationProviderInterceptorParamOverridingTest extends XWor
public void testInterceptorParamOveriding() throws Exception {
DefaultConfiguration conf = new DefaultConfiguration();
- final XmlConfigurationProvider p = new StrutsXmlConfigurationProvider("com/opensymphony/xwork2/config/providers/xwork-test-interceptor-param-overriding.xml");
+ final XmlConfigurationProvider p = new StrutsXmlConfigurationProvider("org/apache/struts2/config/providers/xwork-test-interceptor-param-overriding.xml");
DefaultFileManagerFactory factory = new DefaultFileManagerFactory();
factory.setContainer(container);
factory.setFileManager(new DefaultFileManager());
diff --git a/core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderInterceptorStackParamOverridingTest.java b/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderInterceptorStackParamOverridingTest.java
similarity index 88%
rename from core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderInterceptorStackParamOverridingTest.java
rename to core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderInterceptorStackParamOverridingTest.java
index e629d4486b..b801bfd6bd 100644
--- a/core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderInterceptorStackParamOverridingTest.java
+++ b/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderInterceptorStackParamOverridingTest.java
@@ -16,16 +16,16 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.config.providers;
-
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.config.ContainerProvider;
-import com.opensymphony.xwork2.config.RuntimeConfiguration;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.config.entities.InterceptorMapping;
-import com.opensymphony.xwork2.config.impl.DefaultConfiguration;
-import com.opensymphony.xwork2.util.fs.DefaultFileManager;
-import com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory;
+package org.apache.struts2.config.providers;
+
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.config.ContainerProvider;
+import org.apache.struts2.config.RuntimeConfiguration;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.config.entities.InterceptorMapping;
+import org.apache.struts2.config.impl.DefaultConfiguration;
+import org.apache.struts2.util.fs.DefaultFileManager;
+import org.apache.struts2.util.fs.DefaultFileManagerFactory;
import org.apache.struts2.config.StrutsXmlConfigurationProvider;
import java.util.ArrayList;
@@ -41,7 +41,7 @@ public class XmlConfigurationProviderInterceptorStackParamOverridingTest extends
public void testInterceptorStackParamOveriding() throws Exception {
DefaultConfiguration conf = new DefaultConfiguration();
- final XmlConfigurationProvider p = new StrutsXmlConfigurationProvider("com/opensymphony/xwork2/config/providers/xwork-test-interceptor-stack-param-overriding.xml");
+ final XmlConfigurationProvider p = new StrutsXmlConfigurationProvider("org/apache/struts2/config/providers/xwork-test-interceptor-stack-param-overriding.xml");
DefaultFileManagerFactory factory = new DefaultFileManagerFactory();
factory.setContainer(container);
factory.setFileManager(new DefaultFileManager());
diff --git a/core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderInterceptorsSpringTest.java b/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderInterceptorsSpringTest.java
similarity index 85%
rename from core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderInterceptorsSpringTest.java
rename to core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderInterceptorsSpringTest.java
index 2f17a0de06..8a950247a0 100644
--- a/core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderInterceptorsSpringTest.java
+++ b/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderInterceptorsSpringTest.java
@@ -16,13 +16,13 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.config.providers;
+package org.apache.struts2.config.providers;
-import com.opensymphony.xwork2.ObjectFactory;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.config.ConfigurationProvider;
-import com.opensymphony.xwork2.config.entities.InterceptorConfig;
-import com.opensymphony.xwork2.config.entities.PackageConfig;
+import org.apache.struts2.ObjectFactory;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.config.ConfigurationProvider;
+import org.apache.struts2.config.entities.InterceptorConfig;
+import org.apache.struts2.config.entities.PackageConfig;
import org.apache.struts2.interceptor.NoOpInterceptor;
import org.springframework.beans.MutablePropertyValues;
import org.springframework.context.support.StaticApplicationContext;
@@ -47,7 +47,7 @@ public class XmlConfigurationProviderInterceptorsSpringTest extends Configuratio
public void testInterceptorsLoadedFromSpringApplicationContext() throws ConfigurationException {
sac.registerSingleton("noop-interceptor", NoOpInterceptor.class, new MutablePropertyValues());
- final String filename = "com/opensymphony/xwork2/config/providers/xwork-test-interceptors-spring.xml";
+ final String filename = "org/apache/struts2/config/providers/xwork-test-interceptors-spring.xml";
// Expect a ConfigurationException to be thrown if the interceptor reference
// cannot be resolved
diff --git a/core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderInterceptorsTest.java b/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderInterceptorsTest.java
similarity index 90%
rename from core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderInterceptorsTest.java
rename to core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderInterceptorsTest.java
index fd52d2fb25..d67fdfcc44 100644
--- a/core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderInterceptorsTest.java
+++ b/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderInterceptorsTest.java
@@ -16,20 +16,20 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.config.providers;
-
-import com.opensymphony.xwork2.ObjectFactory;
-import com.opensymphony.xwork2.SimpleAction;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.config.ConfigurationProvider;
-import com.opensymphony.xwork2.config.RuntimeConfiguration;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.config.entities.InterceptorConfig;
-import com.opensymphony.xwork2.config.entities.InterceptorMapping;
-import com.opensymphony.xwork2.config.entities.InterceptorStackConfig;
-import com.opensymphony.xwork2.config.entities.PackageConfig;
-import com.opensymphony.xwork2.interceptor.LoggingInterceptor;
-import com.opensymphony.xwork2.mock.MockInterceptor;
+package org.apache.struts2.config.providers;
+
+import org.apache.struts2.ObjectFactory;
+import org.apache.struts2.SimpleAction;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.config.ConfigurationProvider;
+import org.apache.struts2.config.RuntimeConfiguration;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.config.entities.InterceptorConfig;
+import org.apache.struts2.config.entities.InterceptorMapping;
+import org.apache.struts2.config.entities.InterceptorStackConfig;
+import org.apache.struts2.config.entities.PackageConfig;
+import org.apache.struts2.interceptor.LoggingInterceptor;
+import org.apache.struts2.mock.MockInterceptor;
import org.apache.struts2.config.StrutsXmlConfigurationProvider;
import org.apache.struts2.interceptor.NoOpInterceptor;
@@ -60,7 +60,7 @@ public void setUp() throws Exception {
public void testBasicInterceptors() throws ConfigurationException {
- final String filename = "com/opensymphony/xwork2/config/providers/xwork-test-interceptors-basic.xml";
+ final String filename = "org/apache/struts2/config/providers/xwork-test-interceptors-basic.xml";
ConfigurationProvider provider = buildConfigurationProvider(filename);
// setup expectations
@@ -105,7 +105,7 @@ public void testBasicInterceptors() throws ConfigurationException {
}
public void testInterceptorDefaultRefs() throws ConfigurationException {
- XmlConfigurationProvider provider = new StrutsXmlConfigurationProvider("com/opensymphony/xwork2/config/providers/xwork-test-interceptor-defaultref.xml");
+ XmlConfigurationProvider provider = new StrutsXmlConfigurationProvider("org/apache/struts2/config/providers/xwork-test-interceptor-defaultref.xml");
container.inject(provider);
loadConfigurationProviders(provider);
@@ -152,7 +152,7 @@ public void testInterceptorInheritance() throws ConfigurationException {
.addInterceptor(new InterceptorMapping("noop", objectFactory.buildInterceptor(noopInterceptor, new HashMap())))
.build();
- ConfigurationProvider provider = buildConfigurationProvider("com/opensymphony/xwork2/config/providers/xwork-test-interceptor-inheritance.xml");
+ ConfigurationProvider provider = buildConfigurationProvider("org/apache/struts2/config/providers/xwork-test-interceptor-inheritance.xml");
// assertions
PackageConfig defaultPkg = configuration.getPackageConfig("default");
@@ -212,7 +212,7 @@ public void testInterceptorParamOverriding() throws Exception {
.addInterceptors(interceptors)
.build();
- ConfigurationProvider provider = buildConfigurationProvider("com/opensymphony/xwork2/config/providers/xwork-test-interceptor-params.xml");
+ ConfigurationProvider provider = buildConfigurationProvider("org/apache/struts2/config/providers/xwork-test-interceptor-params.xml");
PackageConfig pkg = configuration.getPackageConfig("default");
diff --git a/core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderInvalidFileTest.java b/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderInvalidFileTest.java
similarity index 82%
rename from core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderInvalidFileTest.java
rename to core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderInvalidFileTest.java
index 4c9085d3b1..9f4926c206 100644
--- a/core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderInvalidFileTest.java
+++ b/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderInvalidFileTest.java
@@ -16,10 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.config.providers;
+package org.apache.struts2.config.providers;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.config.ConfigurationProvider;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.config.ConfigurationProvider;
/**
@@ -31,7 +31,7 @@
public class XmlConfigurationProviderInvalidFileTest extends ConfigurationTestBase {
public void testInvalidFileThrowsException() {
- final String filename = "com/opensymphony/xwork2/config/providers/xwork-test-invalid-file.xml";
+ final String filename = "org/apache/struts2/config/providers/xwork-test-invalid-file.xml";
try {
ConfigurationProvider provider = buildConfigurationProvider(filename);
diff --git a/core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderMultilevelTest.java b/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderMultilevelTest.java
similarity index 84%
rename from core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderMultilevelTest.java
rename to core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderMultilevelTest.java
index c76ada3cb0..cd6827fa11 100644
--- a/core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderMultilevelTest.java
+++ b/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderMultilevelTest.java
@@ -16,14 +16,14 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.config.providers;
+package org.apache.struts2.config.providers;
-import com.opensymphony.xwork2.ActionChainResult;
-import com.opensymphony.xwork2.config.ConfigurationProvider;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.config.entities.InterceptorMapping;
-import com.opensymphony.xwork2.config.entities.PackageConfig;
-import com.opensymphony.xwork2.config.entities.ResultConfig;
+import org.apache.struts2.ActionChainResult;
+import org.apache.struts2.config.ConfigurationProvider;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.config.entities.InterceptorMapping;
+import org.apache.struts2.config.entities.PackageConfig;
+import org.apache.struts2.config.entities.ResultConfig;
import org.apache.struts2.interceptor.parameter.ParametersInterceptor;
import org.junit.Assert;
@@ -43,7 +43,7 @@ public class XmlConfigurationProviderMultilevelTest extends ConfigurationTestBas
* @throws Exception
*/
public void testMultiLevelInheritance() throws Exception {
- final String filename = "com/opensymphony/xwork2/config/providers/xwork-test-multilevel.xml";
+ final String filename = "org/apache/struts2/config/providers/xwork-test-multilevel.xml";
ConfigurationProvider provider = buildConfigurationProvider(filename);
provider.init(configuration);
provider.loadPackages();
diff --git a/core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderPackagesTest.java b/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderPackagesTest.java
similarity index 95%
rename from core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderPackagesTest.java
rename to core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderPackagesTest.java
index ed8910bfab..0c4bd9714f 100644
--- a/core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderPackagesTest.java
+++ b/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderPackagesTest.java
@@ -16,12 +16,12 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.config.providers;
+package org.apache.struts2.config.providers;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.config.ConfigurationProvider;
-import com.opensymphony.xwork2.config.RuntimeConfiguration;
-import com.opensymphony.xwork2.config.entities.PackageConfig;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.config.ConfigurationProvider;
+import org.apache.struts2.config.RuntimeConfiguration;
+import org.apache.struts2.config.entities.PackageConfig;
import java.util.List;
@@ -182,7 +182,7 @@ public void testExtendsFinalPackageThrowsConfigurationException() throws Configu
public void testDefaultClassRef() throws ConfigurationException {
final String hasDefaultClassRefPkgName = "hasDefaultClassRef";
final String noDefaultClassRefPkgName = "noDefaultClassRef";
- final String testDefaultClassRef = "com.opensymphony.xwork2.ActionSupport";
+ final String testDefaultClassRef = "org.apache.struts2.ActionSupport";
ConfigurationProvider provider = buildConfigurationProvider(getXmlConfigFilePath("xwork-test-defaultclassref-package.xml"));
provider.init(configuration);
@@ -199,6 +199,6 @@ public void testDefaultClassRef() throws ConfigurationException {
}
private String getXmlConfigFilePath(String fileName) {
- return "com/opensymphony/xwork2/config/providers/" + fileName;
+ return "org/apache/struts2/config/providers/" + fileName;
}
}
diff --git a/core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderResultTypesTest.java b/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderResultTypesTest.java
similarity index 85%
rename from core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderResultTypesTest.java
rename to core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderResultTypesTest.java
index 878dec1586..b6566ae345 100644
--- a/core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderResultTypesTest.java
+++ b/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderResultTypesTest.java
@@ -16,42 +16,42 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.config.providers;
+package org.apache.struts2.config.providers;
-import com.opensymphony.xwork2.config.ConfigurationProvider;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.config.entities.PackageConfig;
-import com.opensymphony.xwork2.config.entities.ResultConfig;
-import com.opensymphony.xwork2.config.entities.ResultTypeConfig;
-import com.opensymphony.xwork2.mock.MockResult;
+import org.apache.struts2.config.ConfigurationProvider;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.config.entities.PackageConfig;
+import org.apache.struts2.config.entities.ResultConfig;
+import org.apache.struts2.config.entities.ResultTypeConfig;
+import org.apache.struts2.mock.MockResult;
import java.util.Map;
/**
* Test XmlConfigurationProvider's ...
- *
+ *
* @author tm_jee
* @version $Date$ $Id$
*/
public class XmlConfigurationProviderResultTypesTest extends ConfigurationTestBase {
public void testPlainResultTypesParams() throws Exception {
- ConfigurationProvider configurationProvider = buildConfigurationProvider("com/opensymphony/xwork2/config/providers/xwork-test-result-types.xml");
-
+ ConfigurationProvider configurationProvider = buildConfigurationProvider("org/apache/struts2/config/providers/xwork-test-result-types.xml");
+
PackageConfig packageConfig = configuration.getPackageConfig("xworkResultTypesTestPackage1");
Map resultTypesConfigMap = packageConfig.getResultTypeConfigs();
-
+
assertEquals(resultTypesConfigMap.size(), 2);
assertTrue(resultTypesConfigMap.containsKey("result1"));
assertTrue(resultTypesConfigMap.containsKey("result2"));
assertFalse(resultTypesConfigMap.containsKey("result3"));
-
+
ResultTypeConfig result1ResultTypeConfig = (ResultTypeConfig) resultTypesConfigMap.get("result1");
Map result1ParamsMap = result1ResultTypeConfig.getParams();
ResultTypeConfig result2ResultTypeConfig = (ResultTypeConfig) resultTypesConfigMap.get("result2");
Map result2ParamsMap = result2ResultTypeConfig.getParams();
-
+
assertEquals(result1ResultTypeConfig.getName(), "result1");
assertEquals(result1ResultTypeConfig.getClassName(), MockResult.class.getName());
assertEquals(result2ResultTypeConfig.getName(), "result2");
@@ -71,28 +71,28 @@ public void testPlainResultTypesParams() throws Exception {
assertEquals(result2ParamsMap.get("paramA"), "valueA");
assertEquals(result2ParamsMap.get("paramB"), "valueB");
}
-
+
public void testInheritedResultTypesParams() throws Exception {
- ConfigurationProvider configurationProvider = buildConfigurationProvider("com/opensymphony/xwork2/config/providers/xwork-test-result-types.xml");
-
+ ConfigurationProvider configurationProvider = buildConfigurationProvider("org/apache/struts2/config/providers/xwork-test-result-types.xml");
+
PackageConfig packageConfig = configuration.getPackageConfig("xworkResultTypesTestPackage2");
Map actionConfigMap = packageConfig.getActionConfigs();
-
-
+
+
ActionConfig action1ActionConfig = (ActionConfig) actionConfigMap.get("action1");
ActionConfig action2ActionConfig = (ActionConfig) actionConfigMap.get("action2");
-
+
ResultConfig action1Result = (ResultConfig) action1ActionConfig.getResults().get("success");
ResultConfig action2Result = (ResultConfig) action2ActionConfig.getResults().get("success");
-
+
assertEquals(action1Result.getName(), "success");
- assertEquals(action1Result.getClassName(), "com.opensymphony.xwork2.mock.MockResult");
+ assertEquals(action1Result.getClassName(), "org.apache.struts2.mock.MockResult");
assertEquals(action1Result.getName(), "success");
- assertEquals(action1Result.getClassName(), "com.opensymphony.xwork2.mock.MockResult");
-
+ assertEquals(action1Result.getClassName(), "org.apache.struts2.mock.MockResult");
+
Map action1ResultMap = action1Result.getParams();
Map action2ResultMap = action2Result.getParams();
-
+
assertEquals(action1ResultMap.size(), 5);
assertTrue(action1ResultMap.containsKey("param1"));
assertTrue(action1ResultMap.containsKey("param2"));
@@ -105,7 +105,7 @@ public void testInheritedResultTypesParams() throws Exception {
assertEquals(action1ResultMap.get("param3"), "newValue3");
assertEquals(action1ResultMap.get("param10"), "value10");
assertEquals(action1ResultMap.get("param11"), "value11");
-
+
assertEquals(action2ResultMap.size(), 3);
assertTrue(action2ResultMap.containsKey("paramA"));
assertTrue(action2ResultMap.containsKey("paramB"));
@@ -114,8 +114,8 @@ public void testInheritedResultTypesParams() throws Exception {
assertEquals(action2ResultMap.get("paramA"), "valueA");
assertEquals(action2ResultMap.get("paramB"), "newValueB");
assertEquals(action2ResultMap.get("paramZ"), "valueZ");
-
-
+
+
}
}
diff --git a/core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderResultsTest.java b/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderResultsTest.java
similarity index 86%
rename from core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderResultsTest.java
rename to core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderResultsTest.java
index 983acf17e4..5c3d4b55c4 100644
--- a/core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderResultsTest.java
+++ b/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderResultsTest.java
@@ -16,18 +16,18 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.config.providers;
-
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionChainResult;
-import com.opensymphony.xwork2.SimpleAction;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.config.ConfigurationProvider;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.config.entities.PackageConfig;
-import com.opensymphony.xwork2.config.entities.ResultConfig;
-import com.opensymphony.xwork2.config.entities.ResultTypeConfig;
-import com.opensymphony.xwork2.mock.MockResult;
+package org.apache.struts2.config.providers;
+
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionChainResult;
+import org.apache.struts2.SimpleAction;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.config.ConfigurationProvider;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.config.entities.PackageConfig;
+import org.apache.struts2.config.entities.ResultConfig;
+import org.apache.struts2.config.entities.ResultTypeConfig;
+import org.apache.struts2.mock.MockResult;
import java.util.HashMap;
import java.util.Map;
@@ -43,7 +43,7 @@
public class XmlConfigurationProviderResultsTest extends ConfigurationTestBase {
public void testActions() throws ConfigurationException {
- final String filename = "com/opensymphony/xwork2/config/providers/xwork-test-results.xml";
+ final String filename = "org/apache/struts2/config/providers/xwork-test-results.xml";
ConfigurationProvider provider = buildConfigurationProvider(filename);
HashMap parameters = new HashMap<>();
@@ -88,7 +88,7 @@ public void testActions() throws ConfigurationException {
}
public void testResultInheritance() throws ConfigurationException {
- final String filename = "com/opensymphony/xwork2/config/providers/xwork-test-result-inheritance.xml";
+ final String filename = "org/apache/struts2/config/providers/xwork-test-result-inheritance.xml";
ConfigurationProvider provider = buildConfigurationProvider(filename);
// expectations
@@ -102,7 +102,7 @@ public void testResultInheritance() throws ConfigurationException {
}
public void testResultTypes() throws ConfigurationException {
- final String filename = "com/opensymphony/xwork2/config/providers/xwork-test-results.xml";
+ final String filename = "org/apache/struts2/config/providers/xwork-test-results.xml";
ConfigurationProvider provider = buildConfigurationProvider(filename);
// setup expectations
@@ -124,7 +124,7 @@ public void testResultTypes() throws ConfigurationException {
}
public void testResultNames() throws ConfigurationException {
- final String filename = "com/opensymphony/xwork2/config/providers/xwork-test-result-names.xml";
+ final String filename = "org/apache/struts2/config/providers/xwork-test-result-names.xml";
ConfigurationProvider provider = buildConfigurationProvider(filename);
// execute the configuration
@@ -133,42 +133,42 @@ public void testResultNames() throws ConfigurationException {
PackageConfig pkg = configuration.getPackageConfig("default");
Map actionConfigs = pkg.getActionConfigs();
-
+
// assertions
assertNotNull(actionConfigs);
-
+
Map resultConfigs = actionConfigs.get("noname").getResults();
assertEquals(1, resultConfigs.size());
assertTrue(resultConfigs.containsKey(Action.SUCCESS));
-
+
resultConfigs = actionConfigs.get("success").getResults();
assertEquals(1, resultConfigs.size());
assertTrue(resultConfigs.containsKey(Action.SUCCESS));
-
+
resultConfigs = actionConfigs.get("empty").getResults();
assertEquals(1, resultConfigs.size());
assertTrue(resultConfigs.containsKey(Action.SUCCESS));
-
+
resultConfigs = actionConfigs.get("comma").getResults();
assertEquals(1, resultConfigs.size());
assertTrue(resultConfigs.containsKey(" , "));
-
+
resultConfigs = actionConfigs.get("error-input").getResults();
assertEquals(2, resultConfigs.size());
assertTrue(resultConfigs.containsKey(Action.ERROR));
assertTrue(resultConfigs.containsKey(Action.INPUT));
-
+
resultConfigs = actionConfigs.get("error-input2").getResults();
assertEquals(2, resultConfigs.size());
assertTrue(resultConfigs.containsKey(Action.ERROR));
assertTrue(resultConfigs.containsKey(Action.INPUT));
-
+
resultConfigs = actionConfigs.get("noname-error-input").getResults();
assertEquals(3, resultConfigs.size());
assertTrue(resultConfigs.containsKey(Action.SUCCESS));
assertTrue(resultConfigs.containsKey(Action.ERROR));
assertTrue(resultConfigs.containsKey(Action.INPUT));
-
+
resultConfigs = actionConfigs.get("noname-error-input2").getResults();
assertEquals(3, resultConfigs.size());
assertTrue(resultConfigs.containsKey(Action.SUCCESS));
diff --git a/core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderTest.java b/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderTest.java
similarity index 94%
rename from core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderTest.java
rename to core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderTest.java
index 6d228f74da..0ad6198d6d 100644
--- a/core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderTest.java
+++ b/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderTest.java
@@ -16,18 +16,18 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.config.providers;
-
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.FileManagerFactory;
-import com.opensymphony.xwork2.ObjectFactory;
-import com.opensymphony.xwork2.config.ConfigurationProvider;
-import com.opensymphony.xwork2.config.RuntimeConfiguration;
-import com.opensymphony.xwork2.config.entities.PackageConfig;
-import com.opensymphony.xwork2.config.entities.ResultConfig;
-import com.opensymphony.xwork2.config.entities.ResultTypeConfig;
-import com.opensymphony.xwork2.config.impl.MockConfiguration;
-import com.opensymphony.xwork2.util.ClassLoaderUtil;
+package org.apache.struts2.config.providers;
+
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.FileManagerFactory;
+import org.apache.struts2.ObjectFactory;
+import org.apache.struts2.config.ConfigurationProvider;
+import org.apache.struts2.config.RuntimeConfiguration;
+import org.apache.struts2.config.entities.PackageConfig;
+import org.apache.struts2.config.entities.ResultConfig;
+import org.apache.struts2.config.entities.ResultTypeConfig;
+import org.apache.struts2.config.impl.MockConfiguration;
+import org.apache.struts2.util.ClassLoaderUtil;
import org.apache.struts2.config.StrutsXmlConfigurationProvider;
import org.apache.struts2.result.ServletDispatcherResult;
import org.w3c.dom.Attr;
@@ -66,9 +66,9 @@ public void testLoadOrder() throws Exception {
@Override
protected Iterator getConfigurationUrls(String fileName) throws IOException {
List urls = new ArrayList<>();
- urls.add(ClassLoaderUtil.getResource("com/opensymphony/xwork2/config/providers/loadorder1/xwork-test-load-order.xml", XmlConfigurationProvider.class));
- urls.add(ClassLoaderUtil.getResource("com/opensymphony/xwork2/config/providers/loadorder2/xwork-test-load-order.xml", XmlConfigurationProvider.class));
- urls.add(ClassLoaderUtil.getResource("com/opensymphony/xwork2/config/providers/loadorder3/xwork-test-load-order.xml", XmlConfigurationProvider.class));
+ urls.add(ClassLoaderUtil.getResource("org/apache/struts2/config/providers/loadorder1/xwork-test-load-order.xml", XmlConfigurationProvider.class));
+ urls.add(ClassLoaderUtil.getResource("org/apache/struts2/config/providers/loadorder2/xwork-test-load-order.xml", XmlConfigurationProvider.class));
+ urls.add(ClassLoaderUtil.getResource("org/apache/struts2/config/providers/loadorder3/xwork-test-load-order.xml", XmlConfigurationProvider.class));
return urls.iterator();
}
};
@@ -97,7 +97,7 @@ private static void changeFileTime(String filename, File f) throws Exception {
}
public void testNeedsReload() throws Exception {
- final String filename = "com/opensymphony/xwork2/config/providers/xwork-test-actions.xml";
+ final String filename = "org/apache/struts2/config/providers/xwork-test-actions.xml";
ConfigurationProvider provider = new StrutsXmlConfigurationProvider(filename);
container.inject(provider);
provider.init(configuration);
@@ -114,7 +114,7 @@ public void testNeedsReload() throws Exception {
}
public void testReload() throws Exception {
- final String filename = "com/opensymphony/xwork2/config/providers/xwork-test-reload.xml";
+ final String filename = "org/apache/struts2/config/providers/xwork-test-reload.xml";
ConfigurationProvider provider = new StrutsXmlConfigurationProvider(filename);
loadConfigurationProviders(provider);
@@ -144,7 +144,7 @@ public void testReload() throws Exception {
}
public void testNeedsReloadNotReloadingConfigs() throws Exception {
- final String filename = "com/opensymphony/xwork2/config/providers/xwork-test-actions.xml";
+ final String filename = "org/apache/struts2/config/providers/xwork-test-actions.xml";
buildConfigurationProvider(filename);
ConfigurationProvider provider = new StrutsXmlConfigurationProvider(filename);
container.getInstance(FileManagerFactory.class).getFileManager().setReloadingConfigs(false);
@@ -162,7 +162,7 @@ public void testNeedsReloadNotReloadingConfigs() throws Exception {
}
public void testInheritence() throws Exception {
- final String filename = "com/opensymphony/xwork2/config/providers/xwork-include-parent.xml";
+ final String filename = "org/apache/struts2/config/providers/xwork-include-parent.xml";
ConfigurationProvider provider = buildConfigurationProvider(filename);
provider.init(configuration);
@@ -223,7 +223,7 @@ public void testGuessResultType() {
}
public void testEmptySpaces() throws Exception {
- final String filename = "com/opensymphony/xwork2/config/providers/xwork- test.xml";
+ final String filename = "org/apache/struts2/config/providers/xwork- test.xml";
ConfigurationProvider provider = new StrutsXmlConfigurationProvider(filename);
container.inject(provider);
provider.init(configuration);
@@ -243,7 +243,7 @@ public void testEmptySpaces() throws Exception {
}
public void testEmptySpacesNotReloadingConfigs() throws Exception {
- final String filename = "com/opensymphony/xwork2/config/providers/xwork- test.xml";
+ final String filename = "org/apache/struts2/config/providers/xwork- test.xml";
buildConfigurationProvider(filename);
ConfigurationProvider provider = new StrutsXmlConfigurationProvider(filename);
container.getInstance(FileManagerFactory.class).getFileManager().setReloadingConfigs(false);
@@ -296,17 +296,17 @@ private void testProvider(String configFile) throws Exception {
}
public void testIncludeWithWildcard() throws Exception {
- String configFile = "com/opensymphony/xwork2/config/providers/xwork-test-include-wildcard.xml";
+ String configFile = "org/apache/struts2/config/providers/xwork-test-include-wildcard.xml";
buildConfigurationProvider(configFile);
Set loadedFileNames = configuration.getLoadedFileNames();
assertEquals(8, loadedFileNames.size());
- assertTrue(loadedFileNames.contains("com/opensymphony/xwork2/config/providers/xwork-include-after-package.xml"));
- assertTrue(loadedFileNames.contains("com/opensymphony/xwork2/config/providers/xwork-include-after-package-2.xml"));
- assertTrue(loadedFileNames.contains("com/opensymphony/xwork2/config/providers/xwork-include-before-package.xml"));
- assertTrue(loadedFileNames.contains("com/opensymphony/xwork2/config/providers/xwork-include-before-package-2.xml"));
- assertTrue(loadedFileNames.contains("com/opensymphony/xwork2/config/providers/xwork-include-parent.xml"));
- assertTrue(loadedFileNames.contains("com/opensymphony/xwork2/config/providers/xwork-test-include-wildcard.xml"));
+ assertTrue(loadedFileNames.contains("org/apache/struts2/config/providers/xwork-include-after-package.xml"));
+ assertTrue(loadedFileNames.contains("org/apache/struts2/config/providers/xwork-include-after-package-2.xml"));
+ assertTrue(loadedFileNames.contains("org/apache/struts2/config/providers/xwork-include-before-package.xml"));
+ assertTrue(loadedFileNames.contains("org/apache/struts2/config/providers/xwork-include-before-package-2.xml"));
+ assertTrue(loadedFileNames.contains("org/apache/struts2/config/providers/xwork-include-parent.xml"));
+ assertTrue(loadedFileNames.contains("org/apache/struts2/config/providers/xwork-test-include-wildcard.xml"));
assertTrue(loadedFileNames.contains("xwork-test-beans.xml"));
assertTrue(loadedFileNames.contains("xwork-test-default.xml"));
}
@@ -351,7 +351,7 @@ public void testBuildAllowedMethods() throws Exception {
Node.TEXT_NODE, mockActionElementChildrenMultiple, null);
// Attempt the method using both types of Elements (single child and multiple child) and confirm
// the result is the same for both. Also confirm the results are as expected.
- XmlConfigurationProvider prov = new StrutsXmlConfigurationProvider("com/opensymphony/xwork2/config/providers/xwork- test.xml");
+ XmlConfigurationProvider prov = new StrutsXmlConfigurationProvider("org/apache/struts2/config/providers/xwork- test.xml");
Set singleChildResult = prov.buildAllowedMethods(mockActionElementSingle, testPackageConfigBuilder);
Set multipleChildResult = prov.buildAllowedMethods(mockActionElementMultiple, testPackageConfigBuilder);
assertNotNull("singleChildResult is null ?", singleChildResult);
@@ -404,7 +404,7 @@ public void testLoadGlobalAllowedMethods() throws Exception {
Element mockPackageElementMultiple = new MockElement("package", "fakeBody", "package", "fakeValue",
Node.TEXT_NODE, mockPackageElementChildrenMultiple, null);
// Attempt the method using the single child Element and confirm the result is as expected.
- XmlConfigurationProvider prov = new StrutsXmlConfigurationProvider("com/opensymphony/xwork2/config/providers/xwork- test.xml");
+ XmlConfigurationProvider prov = new StrutsXmlConfigurationProvider("org/apache/struts2/config/providers/xwork- test.xml");
prov.loadGlobalAllowedMethods(testPackageConfigBuilder, mockPackageElementSingle);
Set currentGlobalResult = testPackageConfigBuilder.getGlobalAllowedMethods();
assertNotNull("currentGlobalResult is null ?", currentGlobalResult);
@@ -496,7 +496,7 @@ public void testBuildResults() throws Exception {
Node.TEXT_NODE, mockActionElementChildrenMultiple, null);
// Attempt the method using both types of Elements (single child and multiple child) and confirm
// the result is the same for both. Also confirm the results are as expected.
- XmlConfigurationProvider prov = new StrutsXmlConfigurationProvider("com/opensymphony/xwork2/config/providers/xwork- test.xml");
+ XmlConfigurationProvider prov = new StrutsXmlConfigurationProvider("org/apache/struts2/config/providers/xwork- test.xml");
Map singleChildResult = prov.buildResults(mockActionElementSingle, testPackageConfigBuilder);
Map multipleChildResult = prov.buildResults(mockActionElementMultiple, testPackageConfigBuilder);
assertNotNull("singleChildResult is null ?", singleChildResult);
@@ -594,7 +594,7 @@ public void testLoadGlobalResults() throws Exception {
Element mockPackageElementMultiple = new MockElement("package", "fakeBody", "package", "fakeValue",
Node.TEXT_NODE, mockPackageElementChildrenMultiple, null);
// Attempt the global laod method using single child Elements first, and confirm the results are as expected.
- XmlConfigurationProvider prov = new StrutsXmlConfigurationProvider("com/opensymphony/xwork2/config/providers/xwork- test.xml");
+ XmlConfigurationProvider prov = new StrutsXmlConfigurationProvider("org/apache/struts2/config/providers/xwork- test.xml");
prov.loadGlobalResults(testPackageConfigBuilder, mockPackageElementSingle);
PackageConfig testPackageConfig = testPackageConfigBuilder.build();
Map currentGlobalResults = testPackageConfig.getAllGlobalResults();
diff --git a/core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderUnknownHandlerStackTest.java b/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderUnknownHandlerStackTest.java
similarity index 78%
rename from core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderUnknownHandlerStackTest.java
rename to core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderUnknownHandlerStackTest.java
index bdd090ae8c..4052fdf3ec 100644
--- a/core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderUnknownHandlerStackTest.java
+++ b/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderUnknownHandlerStackTest.java
@@ -16,20 +16,20 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.config.providers;
+package org.apache.struts2.config.providers;
-import com.opensymphony.xwork2.UnknownHandlerManager;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.config.ConfigurationProvider;
-import com.opensymphony.xwork2.config.entities.UnknownHandlerConfig;
-import com.opensymphony.xwork2.DefaultUnknownHandlerManager;
+import org.apache.struts2.UnknownHandlerManager;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.config.ConfigurationProvider;
+import org.apache.struts2.config.entities.UnknownHandlerConfig;
+import org.apache.struts2.DefaultUnknownHandlerManager;
import java.util.List;
public class XmlConfigurationProviderUnknownHandlerStackTest extends ConfigurationTestBase {
public void testStackWithElements() throws ConfigurationException {
- final String filename = "com/opensymphony/xwork2/config/providers/xwork-unknownhandler-stack.xml";
+ final String filename = "org/apache/struts2/config/providers/xwork-unknownhandler-stack.xml";
ConfigurationProvider provider = buildConfigurationProvider(filename);
loadConfigurationProviders(provider);
configurationManager.reload();
@@ -47,7 +47,7 @@ public void testStackWithElements() throws ConfigurationException {
}
public void testEmptyStack() throws ConfigurationException {
- final String filename = "com/opensymphony/xwork2/config/providers/xwork-unknownhandler-stack-empty.xml";
+ final String filename = "org/apache/struts2/config/providers/xwork-unknownhandler-stack-empty.xml";
ConfigurationProvider provider = buildConfigurationProvider(filename);
loadConfigurationProviders(provider);
configurationManager.reload();
diff --git a/core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderWildCardIncludeTest.java b/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderWildCardIncludeTest.java
similarity index 84%
rename from core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderWildCardIncludeTest.java
rename to core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderWildCardIncludeTest.java
index c355ba7ef2..4a29e76b51 100644
--- a/core/src/test/java/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderWildCardIncludeTest.java
+++ b/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderWildCardIncludeTest.java
@@ -16,16 +16,16 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.config.providers;
+package org.apache.struts2.config.providers;
-import com.opensymphony.xwork2.config.ConfigurationProvider;
-import com.opensymphony.xwork2.config.entities.PackageConfig;
+import org.apache.struts2.config.ConfigurationProvider;
+import org.apache.struts2.config.entities.PackageConfig;
public class XmlConfigurationProviderWildCardIncludeTest extends ConfigurationTestBase {
-
+
public void testWildCardInclude() throws Exception {
- final String filename = "com/opensymphony/xwork2/config/providers/xwork-test-wildcard-include.xml";
+ final String filename = "org/apache/struts2/config/providers/xwork-test-wildcard-include.xml";
ConfigurationProvider provider = buildConfigurationProvider(filename);
provider.init(configuration);
@@ -39,10 +39,10 @@ public void testWildCardInclude() throws Exception {
PackageConfig defaultOnePackage = configuration.getPackageConfig("default-1");
assertNotNull(defaultOnePackage);
assertEquals("default-1", defaultOnePackage.getName());
-
+
PackageConfig defaultTwoPackage = configuration.getPackageConfig("default-2");
assertNotNull(defaultTwoPackage);
- assertEquals("default-2", defaultTwoPackage.getName());
+ assertEquals("default-2", defaultTwoPackage.getName());
PackageConfig defaultPackage = configuration.getPackageConfig("default");
assertNotNull(defaultPackage);
diff --git a/core/src/test/java/com/opensymphony/xwork2/config/providers/XmlHelperTest.java b/core/src/test/java/org/apache/struts2/config/providers/XmlHelperTest.java
similarity index 96%
rename from core/src/test/java/com/opensymphony/xwork2/config/providers/XmlHelperTest.java
rename to core/src/test/java/org/apache/struts2/config/providers/XmlHelperTest.java
index 7a0cfe3017..054ab50c5b 100644
--- a/core/src/test/java/com/opensymphony/xwork2/config/providers/XmlHelperTest.java
+++ b/core/src/test/java/org/apache/struts2/config/providers/XmlHelperTest.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.config.providers;
+package org.apache.struts2.config.providers;
-import com.opensymphony.xwork2.XWorkTestCase;
+import org.apache.struts2.XWorkTestCase;
import static org.easymock.EasyMock.*;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
@@ -59,7 +59,7 @@ public void testGetContent1() throws Exception {
String result = XmlHelper.getContent(mockElement);
assertEquals(result, "testing testing 123");
-
+
verify(mockNode, mockNodeList, mockElement);
}
@@ -101,13 +101,13 @@ public void testGetContent2() throws Exception {
NodeList mockNodeList = (NodeList) createMock(NodeList.class);
expect(mockNodeList.getLength()).andStubReturn(6);
-
+
expect(mockNodeList.item(0)).andStubReturn(mockNode1);
expect(mockNodeList.item(1)).andStubReturn(mockNode2);
expect(mockNodeList.item(2)).andStubReturn(mockNode3);
expect(mockNodeList.item(3)).andStubReturn(mockNode4);
expect(mockNodeList.item(4)).andStubReturn(mockNode5);
- expect(mockNodeList.item(5)).andStubReturn(mockNode6);
+ expect(mockNodeList.item(5)).andStubReturn(mockNode6);
// set up Element
Element mockElement = (Element) createMock(Element.class);
@@ -116,13 +116,13 @@ public void testGetContent2() throws Exception {
replay(mockNode1, mockNode2, mockNode3, mockNode4, mockNode5, mockNode6, mockNodeList, mockElement);
-
+
String result = XmlHelper.getContent(mockElement);
assertEquals(result, "testing testing 123tmjeephil");
-
+
verify(mockNode1, mockNode2, mockNode3, mockNode4, mockNode5, mockNode6, mockNodeList, mockElement);
-
+
}
@@ -165,7 +165,7 @@ public void testGetParams() throws Exception {
expect(mockNodeList2.item(0)).andStubReturn(mockNode2);
Element mockParamElement2 = (Element) createMock(Element.class);
-
+
expect(mockParamElement2.getNodeName()).andStubReturn("param");
expect(mockParamElement2.getNodeType()).andStubReturn(Node.ELEMENT_NODE);
@@ -181,7 +181,7 @@ public void testGetParams() throws Exception {
NodeList mockElementNodeList = (NodeList) createMock(NodeList.class);
expect(mockElementNodeList.getLength()).andStubReturn(2);
-
+
expect(mockElementNodeList.item(0)).andStubReturn(mockParamElement2);
expect(mockElementNodeList.item(1)).andStubReturn(mockParamElement1);
@@ -198,6 +198,6 @@ public void testGetParams() throws Exception {
assertEquals(params.get("param1"), "value1");
assertEquals(params.get("param2"), "value2");
- verify(mockNode1, mockNodeList1, mockParamElement1, mockNode2, mockNodeList2, mockParamElement2, mockElementNodeList, element);
+ verify(mockNode1, mockNodeList1, mockParamElement1, mockNode2, mockNodeList2, mockParamElement2, mockElementNodeList, element);
}
}
diff --git a/core/src/test/java/com/opensymphony/xwork2/conversion/ConversionTestAction.java b/core/src/test/java/org/apache/struts2/conversion/ConversionTestAction.java
similarity index 85%
rename from core/src/test/java/com/opensymphony/xwork2/conversion/ConversionTestAction.java
rename to core/src/test/java/org/apache/struts2/conversion/ConversionTestAction.java
index fec3cb3695..8d779256bd 100644
--- a/core/src/test/java/com/opensymphony/xwork2/conversion/ConversionTestAction.java
+++ b/core/src/test/java/org/apache/struts2/conversion/ConversionTestAction.java
@@ -16,13 +16,13 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.conversion;
+package org.apache.struts2.conversion;
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.conversion.annotations.Conversion;
-import com.opensymphony.xwork2.conversion.annotations.ConversionRule;
-import com.opensymphony.xwork2.conversion.annotations.ConversionType;
-import com.opensymphony.xwork2.conversion.annotations.TypeConversion;
+import org.apache.struts2.Action;
+import org.apache.struts2.conversion.annotations.Conversion;
+import org.apache.struts2.conversion.annotations.ConversionRule;
+import org.apache.struts2.conversion.annotations.ConversionType;
+import org.apache.struts2.conversion.annotations.TypeConversion;
import java.math.BigInteger;
import java.util.HashMap;
@@ -62,7 +62,7 @@ public String getConvertDouble() {
return convertDouble;
}
- @TypeConversion(converter = "com.opensymphony.xwork2.util.XWorkBasicConverter")
+ @TypeConversion(converter = "org.apache.struts2.util.XWorkBasicConverter")
public void setConvertDouble( String convertDouble ) {
this.convertDouble = convertDouble;
}
diff --git a/core/src/test/java/com/opensymphony/xwork2/conversion/impl/AnnotationXWorkConverterTest.java b/core/src/test/java/org/apache/struts2/conversion/impl/AnnotationXWorkConverterTest.java
similarity index 96%
rename from core/src/test/java/com/opensymphony/xwork2/conversion/impl/AnnotationXWorkConverterTest.java
rename to core/src/test/java/org/apache/struts2/conversion/impl/AnnotationXWorkConverterTest.java
index e9b024730a..81142a1d9a 100644
--- a/core/src/test/java/com/opensymphony/xwork2/conversion/impl/AnnotationXWorkConverterTest.java
+++ b/core/src/test/java/org/apache/struts2/conversion/impl/AnnotationXWorkConverterTest.java
@@ -16,14 +16,19 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.conversion.impl;
-
-import com.opensymphony.xwork2.*;
-import com.opensymphony.xwork2.test.AnnotationUser;
-import com.opensymphony.xwork2.test.ModelDrivenAnnotationAction2;
-import com.opensymphony.xwork2.util.Bar;
-import com.opensymphony.xwork2.util.ValueStack;
-import com.opensymphony.xwork2.util.reflection.ReflectionContextState;
+package org.apache.struts2.conversion.impl;
+
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.AnnotatedTestBean;
+import org.apache.struts2.GenericsBean;
+import org.apache.struts2.ModelDrivenAnnotationAction;
+import org.apache.struts2.SimpleAnnotationAction;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.test.AnnotationUser;
+import org.apache.struts2.test.ModelDrivenAnnotationAction2;
+import org.apache.struts2.util.Bar;
+import org.apache.struts2.util.ValueStack;
+import org.apache.struts2.util.reflection.ReflectionContextState;
import ognl.OgnlRuntime;
import java.math.BigDecimal;
@@ -35,17 +40,11 @@
import static org.junit.Assert.assertArrayEquals;
-
-/**
- * @author $Author$
- * @author Rainer Hermanns
- * @version $Revision$
- */
public class AnnotationXWorkConverterTest extends XWorkTestCase {
- ActionContext ac;
- Map context;
- XWorkConverter converter;
+ private ActionContext ac;
+ private Map context;
+ private XWorkConverter converter;
// public void testConversionToSetKeepsOriginalSetAndReplacesContents() {
// ValueStack stack = ValueStackFactory.getFactory().createValueStack();
@@ -427,7 +426,6 @@ public void testGenericPropertiesFromGetter() {
}
-
// FIXME: Implement nested Generics such as: List of Generics List, Map of Generic keys/values, etc...
public void no_testGenericPropertiesWithNestedGenerics() {
GenericsBean gb = new GenericsBean();
diff --git a/core/src/test/java/com/opensymphony/xwork2/conversion/impl/DateConverterTest.java b/core/src/test/java/org/apache/struts2/conversion/impl/DateConverterTest.java
similarity index 97%
rename from core/src/test/java/com/opensymphony/xwork2/conversion/impl/DateConverterTest.java
rename to core/src/test/java/org/apache/struts2/conversion/impl/DateConverterTest.java
index 3218729d08..f08bba740b 100644
--- a/core/src/test/java/com/opensymphony/xwork2/conversion/impl/DateConverterTest.java
+++ b/core/src/test/java/org/apache/struts2/conversion/impl/DateConverterTest.java
@@ -16,12 +16,12 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.conversion.impl;
+package org.apache.struts2.conversion.impl;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.StubTextProvider;
-import com.opensymphony.xwork2.StubValueStack;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.StubTextProvider;
+import org.apache.struts2.StubValueStack;
+import org.apache.struts2.util.ValueStack;
import org.apache.struts2.StrutsInternalTestCase;
import org.apache.struts2.conversion.TypeConversionException;
@@ -51,7 +51,7 @@ public class DateConverterTest extends StrutsInternalTestCase {
private final static String LOCALDATETIME_CONVERTED = "2020-03-20T00:00";
private final static String LOCALDATE_STR = "2020-03-20";
private final static String LOCALTIME_STR = "01:59:10";
-
+
private final static String INVALID_LOCALDATETIME = "2010-99-99T00:00";
private final static String MESSAGE_PARSE_ERROR = "Could not parse date";
private final static String MESSAGE_DEFAULT_CONSTRUCTOR_ERROR = "Couldn't create class null using default (long) constructor";
@@ -165,7 +165,7 @@ public void testLocalDateTimeTypeConversionExceptionWhenParseError() {
assertEquals(MESSAGE_PARSE_ERROR, ex.getMessage());
}
}
-
+
public void testLocalDateType() {
DateConverter converter = new DateConverter();
@@ -175,7 +175,7 @@ public void testLocalDateType() {
LocalDate.class);
assertTrue(value.toString().startsWith(LOCALDATE_STR));
}
-
+
public void testLocalTimeType() {
DateConverter converter = new DateConverter();
diff --git a/core/src/test/java/com/opensymphony/xwork2/conversion/impl/FooBarConverter.java b/core/src/test/java/org/apache/struts2/conversion/impl/FooBarConverter.java
similarity index 88%
rename from core/src/test/java/com/opensymphony/xwork2/conversion/impl/FooBarConverter.java
rename to core/src/test/java/org/apache/struts2/conversion/impl/FooBarConverter.java
index e8e709ea82..ec2cbe85c2 100644
--- a/core/src/test/java/com/opensymphony/xwork2/conversion/impl/FooBarConverter.java
+++ b/core/src/test/java/org/apache/struts2/conversion/impl/FooBarConverter.java
@@ -16,21 +16,15 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.conversion.impl;
+package org.apache.struts2.conversion.impl;
-import com.opensymphony.xwork2.util.AnnotatedCat;
-import com.opensymphony.xwork2.util.Bar;
-import com.opensymphony.xwork2.util.Cat;
+import org.apache.struts2.util.AnnotatedCat;
+import org.apache.struts2.util.Bar;
+import org.apache.struts2.util.Cat;
import java.lang.reflect.Member;
import java.util.Map;
-
-/**
- * @author Pat Lightbody
- * @author $Author$
- * @version $Revision$
- */
public class FooBarConverter extends DefaultTypeConverter {
@Override
diff --git a/core/src/test/java/com/opensymphony/xwork2/conversion/impl/FooNumberConverter.java b/core/src/test/java/org/apache/struts2/conversion/impl/FooNumberConverter.java
similarity index 96%
rename from core/src/test/java/com/opensymphony/xwork2/conversion/impl/FooNumberConverter.java
rename to core/src/test/java/org/apache/struts2/conversion/impl/FooNumberConverter.java
index 079fcfd24f..cd9ee41cf7 100644
--- a/core/src/test/java/com/opensymphony/xwork2/conversion/impl/FooNumberConverter.java
+++ b/core/src/test/java/org/apache/struts2/conversion/impl/FooNumberConverter.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.conversion.impl;
+package org.apache.struts2.conversion.impl;
import java.util.Map;
diff --git a/core/src/test/java/com/opensymphony/xwork2/conversion/impl/InstantiatingNullHandlerTest.java b/core/src/test/java/org/apache/struts2/conversion/impl/InstantiatingNullHandlerTest.java
similarity index 97%
rename from core/src/test/java/com/opensymphony/xwork2/conversion/impl/InstantiatingNullHandlerTest.java
rename to core/src/test/java/org/apache/struts2/conversion/impl/InstantiatingNullHandlerTest.java
index 20997e5ed0..76c4076901 100644
--- a/core/src/test/java/com/opensymphony/xwork2/conversion/impl/InstantiatingNullHandlerTest.java
+++ b/core/src/test/java/org/apache/struts2/conversion/impl/InstantiatingNullHandlerTest.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.conversion.impl;
+package org.apache.struts2.conversion.impl;
import junit.framework.TestCase;
diff --git a/core/src/test/java/com/opensymphony/xwork2/conversion/impl/NumberConverterTest.java b/core/src/test/java/org/apache/struts2/conversion/impl/NumberConverterTest.java
similarity index 98%
rename from core/src/test/java/com/opensymphony/xwork2/conversion/impl/NumberConverterTest.java
rename to core/src/test/java/org/apache/struts2/conversion/impl/NumberConverterTest.java
index b0271ea7ca..b90b820bec 100644
--- a/core/src/test/java/com/opensymphony/xwork2/conversion/impl/NumberConverterTest.java
+++ b/core/src/test/java/org/apache/struts2/conversion/impl/NumberConverterTest.java
@@ -16,10 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.conversion.impl;
+package org.apache.struts2.conversion.impl;
-import com.opensymphony.xwork2.SimpleFooAction;
-import com.opensymphony.xwork2.XWorkTestCase;
+import org.apache.struts2.SimpleFooAction;
+import org.apache.struts2.XWorkTestCase;
import org.apache.struts2.conversion.TypeConversionException;
import org.apache.commons.lang3.StringUtils;
diff --git a/core/src/test/java/com/opensymphony/xwork2/conversion/impl/ParentClass.java b/core/src/test/java/org/apache/struts2/conversion/impl/ParentClass.java
similarity index 96%
rename from core/src/test/java/com/opensymphony/xwork2/conversion/impl/ParentClass.java
rename to core/src/test/java/org/apache/struts2/conversion/impl/ParentClass.java
index 224e5a1555..a0b552e273 100644
--- a/core/src/test/java/com/opensymphony/xwork2/conversion/impl/ParentClass.java
+++ b/core/src/test/java/org/apache/struts2/conversion/impl/ParentClass.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.conversion.impl;
+package org.apache.struts2.conversion.impl;
/**
* ParentClass
diff --git a/core/src/test/java/com/opensymphony/xwork2/conversion/impl/StringConverterTest.java b/core/src/test/java/org/apache/struts2/conversion/impl/StringConverterTest.java
similarity index 99%
rename from core/src/test/java/com/opensymphony/xwork2/conversion/impl/StringConverterTest.java
rename to core/src/test/java/org/apache/struts2/conversion/impl/StringConverterTest.java
index 92d0814d66..a0310de191 100644
--- a/core/src/test/java/com/opensymphony/xwork2/conversion/impl/StringConverterTest.java
+++ b/core/src/test/java/org/apache/struts2/conversion/impl/StringConverterTest.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.conversion.impl;
+package org.apache.struts2.conversion.impl;
import org.apache.commons.lang3.StringUtils;
import org.apache.struts2.StrutsInternalTestCase;
diff --git a/core/src/test/java/com/opensymphony/xwork2/conversion/impl/XWorkBasicConverterTest.java b/core/src/test/java/org/apache/struts2/conversion/impl/XWorkBasicConverterTest.java
similarity index 97%
rename from core/src/test/java/com/opensymphony/xwork2/conversion/impl/XWorkBasicConverterTest.java
rename to core/src/test/java/org/apache/struts2/conversion/impl/XWorkBasicConverterTest.java
index bef05ca89f..1744d3a3f3 100644
--- a/core/src/test/java/com/opensymphony/xwork2/conversion/impl/XWorkBasicConverterTest.java
+++ b/core/src/test/java/org/apache/struts2/conversion/impl/XWorkBasicConverterTest.java
@@ -16,16 +16,16 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.conversion.impl;
+package org.apache.struts2.conversion.impl;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.StubTextProvider;
-import com.opensymphony.xwork2.StubValueStack;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.StubTextProvider;
+import org.apache.struts2.StubValueStack;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.util.ValueStack;
import org.apache.struts2.conversion.TypeConversionException;
-import com.opensymphony.xwork2.inject.Container;
-import com.opensymphony.xwork2.test.annotations.Person;
+import org.apache.struts2.inject.Container;
+import org.apache.struts2.test.annotations.Person;
import org.apache.struts2.StrutsException;
import org.mockito.Mockito;
@@ -186,7 +186,7 @@ public void testXW49ConvertDoubleToString() {
// output should be formatted according to Danish locale using , as decimal seperator
assertEquals("123,99", value);
- }
+ }
public void testDoubleValues() {
NumberConverter numberConverter = new NumberConverter();
@@ -282,17 +282,17 @@ public void testBigDecimal() {
assertEquals(BigDecimal.ZERO, convertedObject);
assertTrue(convertedObject instanceof BigDecimal);
assertEquals(0, BigDecimal.ZERO.compareTo((BigDecimal) convertedObject));
-
+
convertedObject = basicConverter.convertValue(new BigDecimal(0), BigDecimal.class);
assertEquals(BigDecimal.ZERO, convertedObject);
assertTrue(convertedObject instanceof BigDecimal);
assertEquals(0, BigDecimal.ZERO.compareTo((BigDecimal) convertedObject));
-
+
convertedObject = basicConverter.convertValue(BigDecimal.valueOf(0), BigDecimal.class);
assertEquals(BigDecimal.ZERO, convertedObject);
assertTrue(convertedObject instanceof BigDecimal);
assertEquals(0, BigDecimal.ZERO.compareTo((BigDecimal) convertedObject));
-
+
convertedObject = basicConverter.convertValue(BigDecimal.valueOf(0.0), BigDecimal.class);
assertEquals(BigDecimal.valueOf(0.0), convertedObject);
assertTrue(convertedObject instanceof BigDecimal);
@@ -323,7 +323,7 @@ public void testConvert() {
Class> toType = String.class;
basicConverter.convertValue(context, value, null, s, value, toType);
}
-
+
public void testExceptionWhenCantCreateTypeFromValue() {
try{
basicConverter.convertValue(new HashMap<>(), null, null, null, 4, Date.class);
@@ -333,7 +333,7 @@ public void testExceptionWhenCantCreateTypeFromValue() {
assertTrue(ex.getMessage().startsWith("Cannot create type"));
}
}
-
+
public void testExceptionInDoConvertToClass() {
try{
basicConverter.convertValue(new HashMap<>(), null, null, null, "Foo", Class.class);
@@ -342,7 +342,7 @@ public void testExceptionInDoConvertToClass() {
assertEquals(TypeConversionException.class, ex.getClass());
}
}
-
+
public void testExceptionInDoConvertToCollection() {
try{
Mockito.when(mockedContainer.getInstanceNames(CollectionConverter.class)).thenReturn(null);
@@ -354,7 +354,7 @@ public void testExceptionInDoConvertToCollection() {
assertTrue(ex.getMessage().startsWith(MSG_TYPE_CONVERTER_EXCEPTION));
}
}
-
+
public void testExceptionInDoConvertToArray() {
try{
int[] arrayInt = new int[1];
@@ -367,7 +367,7 @@ public void testExceptionInDoConvertToArray() {
assertTrue(ex.getMessage().startsWith(MSG_TYPE_CONVERTER_EXCEPTION));
}
}
-
+
public void testExceptionInDoConvertToDate() {
try{
Mockito.when(mockedContainer.getInstanceNames(DateConverter.class)).thenReturn(null);
@@ -379,7 +379,7 @@ public void testExceptionInDoConvertToDate() {
assertTrue(ex.getMessage().startsWith(MSG_TYPE_CONVERTER_EXCEPTION));
}
}
-
+
public void testExceptionInDoConvertToNumber() {
try{
Mockito.when(mockedContainer.getInstanceNames(NumberConverter.class)).thenReturn(null);
@@ -391,7 +391,7 @@ public void testExceptionInDoConvertToNumber() {
assertTrue(ex.getMessage().startsWith(MSG_TYPE_CONVERTER_EXCEPTION));
}
}
-
+
public void testExceptionInDoConvertToString() {
try{
Mockito.when(mockedContainer.getInstanceNames(StringConverter.class)).thenReturn(null);
@@ -416,5 +416,5 @@ protected void tearDown() throws Exception {
super.tearDown();
ActionContext.clear();
}
-
+
}
diff --git a/core/src/test/java/com/opensymphony/xwork2/conversion/impl/XWorkConverterTest.java b/core/src/test/java/org/apache/struts2/conversion/impl/XWorkConverterTest.java
similarity index 96%
rename from core/src/test/java/com/opensymphony/xwork2/conversion/impl/XWorkConverterTest.java
rename to core/src/test/java/org/apache/struts2/conversion/impl/XWorkConverterTest.java
index 192fe87030..7838d46a16 100644
--- a/core/src/test/java/com/opensymphony/xwork2/conversion/impl/XWorkConverterTest.java
+++ b/core/src/test/java/org/apache/struts2/conversion/impl/XWorkConverterTest.java
@@ -16,21 +16,27 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.conversion.impl;
-
-import com.opensymphony.xwork2.*;
-import com.opensymphony.xwork2.ognl.OgnlValueStack;
-import com.opensymphony.xwork2.test.ModelDrivenAction2;
-import com.opensymphony.xwork2.test.User;
-import com.opensymphony.xwork2.util.Bar;
-import com.opensymphony.xwork2.util.Cat;
-import com.opensymphony.xwork2.util.Foo;
-import com.opensymphony.xwork2.util.FurColor;
-import com.opensymphony.xwork2.util.ValueStack;
-import com.opensymphony.xwork2.util.reflection.ReflectionContextState;
+package org.apache.struts2.conversion.impl;
+
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ModelDrivenAction;
+import org.apache.struts2.SimpleAction;
+import org.apache.struts2.StubTextProvider;
+import org.apache.struts2.StubValueStack;
+import org.apache.struts2.TestBean;
+import org.apache.struts2.TextProvider;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.ognl.OgnlValueStack;
+import org.apache.struts2.test.ModelDrivenAction2;
+import org.apache.struts2.test.User;
+import org.apache.struts2.util.Bar;
+import org.apache.struts2.util.Cat;
+import org.apache.struts2.util.Foo;
+import org.apache.struts2.util.FurColor;
+import org.apache.struts2.util.ValueStack;
+import org.apache.struts2.util.reflection.ReflectionContextState;
import ognl.OgnlRuntime;
-import ognl.TypeConverter;
-import org.apache.struts2.components.*;
+import org.apache.struts2.conversion.TypeConverter;
import java.io.IOException;
import java.math.BigDecimal;
@@ -49,9 +55,9 @@
public class XWorkConverterTest extends XWorkTestCase {
- Map context;
- XWorkConverter converter;
- OgnlValueStack stack;
+ private Map context;
+ private XWorkConverter converter;
+ private OgnlValueStack stack;
public void testArrayToNumberConversion() {
String[] value = new String[]{"12345"};
@@ -105,7 +111,7 @@ public void testDateConversionWithDefault() throws ParseException {
String dateToFormat = "2017---06--15";
Object unparseableDate = converter.convertValue(context, null, null, null, dateToFormat, Date.class);
- assertEquals(unparseableDate, com.opensymphony.xwork2.conversion.TypeConverter.NO_CONVERSION_POSSIBLE);
+ assertEquals(unparseableDate, TypeConverter.NO_CONVERSION_POSSIBLE);
lookupMap.put(org.apache.struts2.components.Date.DATETAG_PROPERTY, "yyyy---MM--dd");
@@ -466,8 +472,9 @@ public void testStringToCustomTypeUsingCustomConverterFromProperties() throws Ex
@Override
public Enumeration getResources(String name) throws IOException {
if ("struts-conversion.properties".equals(name)) {
- return new Enumeration() {
+ return new Enumeration<>() {
boolean done = false;
+
public boolean hasMoreElements() {
return !done;
}
@@ -475,12 +482,12 @@ public boolean hasMoreElements() {
public URL nextElement() {
if (done) {
throw new RuntimeException("Conversion configuration loading " +
- "failed because it asked the enumeration for the next URL " +
- "too many times");
+ "failed because it asked the enumeration for the next URL " +
+ "too many times");
}
done = true;
- return getClass().getResource("/com/opensymphony/xwork2/conversion/impl/test-struts-conversion.properties");
+ return getClass().getResource("/org/apache/struts2/conversion/impl/test-struts-conversion.properties");
}
};
} else {
@@ -697,10 +704,10 @@ public void testConvertClass() {
Class> clazz = (Class>) converter.convertValue(context, "java.util.Date", Class.class);
assertEquals(Date.class.getName(), clazz.getName());
- Class> clazz2 = (Class>) converter.convertValue(context, "com.opensymphony.xwork2.util.Bar", Class.class);
+ Class> clazz2 = (Class>) converter.convertValue(context, "org.apache.struts2.util.Bar", Class.class);
assertEquals(Bar.class.getName(), clazz2.getName());
- assertEquals(OgnlRuntime.NoConversionPossible, converter.convertValue(context, "com.opensymphony.xwork2.util.IDoNotExist", Class.class));
+ assertEquals(OgnlRuntime.NoConversionPossible, converter.convertValue(context, "org.apache.struts2.util.IDoNotExist", Class.class));
assertEquals(OgnlRuntime.NoConversionPossible, converter.convertValue(context, new Bar(), Class.class)); // only supports string values
}
diff --git a/core/src/test/java/com/opensymphony/xwork2/conversion/impl/XWorkListTest.java b/core/src/test/java/org/apache/struts2/conversion/impl/XWorkListTest.java
similarity index 96%
rename from core/src/test/java/com/opensymphony/xwork2/conversion/impl/XWorkListTest.java
rename to core/src/test/java/org/apache/struts2/conversion/impl/XWorkListTest.java
index a94d63caa6..cdb7ee1856 100644
--- a/core/src/test/java/com/opensymphony/xwork2/conversion/impl/XWorkListTest.java
+++ b/core/src/test/java/org/apache/struts2/conversion/impl/XWorkListTest.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.conversion.impl;
+package org.apache.struts2.conversion.impl;
-import com.opensymphony.xwork2.XWorkTestCase;
+import org.apache.struts2.XWorkTestCase;
import java.util.ArrayList;
diff --git a/core/src/test/java/org/apache/struts2/dispatcher/DispatcherTest.java b/core/src/test/java/org/apache/struts2/dispatcher/DispatcherTest.java
index 07a9b37b81..4545520eb4 100644
--- a/core/src/test/java/org/apache/struts2/dispatcher/DispatcherTest.java
+++ b/core/src/test/java/org/apache/struts2/dispatcher/DispatcherTest.java
@@ -18,22 +18,22 @@
*/
package org.apache.struts2.dispatcher;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.LocalizedTextProvider;
-import com.opensymphony.xwork2.ObjectFactory;
-import com.opensymphony.xwork2.StubValueStack;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.config.ConfigurationManager;
-import com.opensymphony.xwork2.config.entities.InterceptorMapping;
-import com.opensymphony.xwork2.config.entities.InterceptorStackConfig;
-import com.opensymphony.xwork2.config.entities.PackageConfig;
-import com.opensymphony.xwork2.inject.Container;
-import com.opensymphony.xwork2.inject.ContainerBuilder;
-import com.opensymphony.xwork2.interceptor.Interceptor;
-import com.opensymphony.xwork2.mock.MockActionInvocation;
-import com.opensymphony.xwork2.mock.MockActionProxy;
-import com.opensymphony.xwork2.test.StubConfigurationProvider;
-import com.opensymphony.xwork2.util.location.LocatableProperties;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.LocalizedTextProvider;
+import org.apache.struts2.ObjectFactory;
+import org.apache.struts2.StubValueStack;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.config.ConfigurationManager;
+import org.apache.struts2.config.entities.InterceptorMapping;
+import org.apache.struts2.config.entities.InterceptorStackConfig;
+import org.apache.struts2.config.entities.PackageConfig;
+import org.apache.struts2.inject.Container;
+import org.apache.struts2.inject.ContainerBuilder;
+import org.apache.struts2.interceptor.Interceptor;
+import org.apache.struts2.mock.MockActionInvocation;
+import org.apache.struts2.mock.MockActionProxy;
+import org.apache.struts2.test.StubConfigurationProvider;
+import org.apache.struts2.util.location.LocatableProperties;
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.StrutsConstants;
import org.apache.struts2.StrutsJUnit4InternalTestCase;
diff --git a/core/src/test/java/org/apache/struts2/dispatcher/NullActionMapper.java b/core/src/test/java/org/apache/struts2/dispatcher/NullActionMapper.java
index ad3738cd28..b264ec0870 100644
--- a/core/src/test/java/org/apache/struts2/dispatcher/NullActionMapper.java
+++ b/core/src/test/java/org/apache/struts2/dispatcher/NullActionMapper.java
@@ -23,7 +23,7 @@
import org.apache.struts2.dispatcher.mapper.ActionMapper;
import org.apache.struts2.dispatcher.mapper.ActionMapping;
-import com.opensymphony.xwork2.config.ConfigurationManager;
+import org.apache.struts2.config.ConfigurationManager;
/**
diff --git a/core/src/test/java/org/apache/struts2/dispatcher/PrepareOperationsTest.java b/core/src/test/java/org/apache/struts2/dispatcher/PrepareOperationsTest.java
index bc8470206c..abc060c4c2 100644
--- a/core/src/test/java/org/apache/struts2/dispatcher/PrepareOperationsTest.java
+++ b/core/src/test/java/org/apache/struts2/dispatcher/PrepareOperationsTest.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts2.dispatcher;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.StubValueStack;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.StubValueStack;
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.StrutsInternalTestCase;
import org.springframework.mock.web.MockHttpServletRequest;
diff --git a/core/src/test/java/org/apache/struts2/dispatcher/StrutsPrepareAndExecuteFilterIntegrationTest.java b/core/src/test/java/org/apache/struts2/dispatcher/StrutsPrepareAndExecuteFilterIntegrationTest.java
index 470c6d47ef..1aa0227142 100644
--- a/core/src/test/java/org/apache/struts2/dispatcher/StrutsPrepareAndExecuteFilterIntegrationTest.java
+++ b/core/src/test/java/org/apache/struts2/dispatcher/StrutsPrepareAndExecuteFilterIntegrationTest.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.dispatcher;
-import com.opensymphony.xwork2.ActionContext;
+import org.apache.struts2.ActionContext;
import org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter;
import org.junit.Test;
import org.springframework.mock.web.MockFilterChain;
diff --git a/core/src/test/java/org/apache/struts2/dispatcher/TwoFilterIntegrationTest.java b/core/src/test/java/org/apache/struts2/dispatcher/TwoFilterIntegrationTest.java
index 36a07e3d4b..a824cd787d 100644
--- a/core/src/test/java/org/apache/struts2/dispatcher/TwoFilterIntegrationTest.java
+++ b/core/src/test/java/org/apache/struts2/dispatcher/TwoFilterIntegrationTest.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.dispatcher;
-import com.opensymphony.xwork2.ActionContext;
+import org.apache.struts2.ActionContext;
import org.apache.struts2.dispatcher.filter.StrutsExecuteFilter;
import org.apache.struts2.dispatcher.filter.StrutsPrepareFilter;
import org.junit.Before;
diff --git a/core/src/test/java/org/apache/struts2/dispatcher/mapper/CompositeActionMapperTest.java b/core/src/test/java/org/apache/struts2/dispatcher/mapper/CompositeActionMapperTest.java
index 570fe7bcde..462bb87cf4 100644
--- a/core/src/test/java/org/apache/struts2/dispatcher/mapper/CompositeActionMapperTest.java
+++ b/core/src/test/java/org/apache/struts2/dispatcher/mapper/CompositeActionMapperTest.java
@@ -20,8 +20,8 @@
import com.mockobjects.dynamic.C;
import com.mockobjects.dynamic.Mock;
-import com.opensymphony.xwork2.config.ConfigurationManager;
-import com.opensymphony.xwork2.inject.Container;
+import org.apache.struts2.config.ConfigurationManager;
+import org.apache.struts2.inject.Container;
import junit.framework.TestCase;
import org.springframework.mock.web.MockHttpServletRequest;
@@ -34,11 +34,11 @@
public class CompositeActionMapperTest extends TestCase {
Mock mockContainer;
-
+
public void setUp() throws Exception {
mockContainer = new Mock(Container.class);
}
-
+
public void testGetActionMappingAndUri1() throws Exception {
ActionMapper mapper1 = new InnerActionMapper1();
ActionMapper mapper2 = new InnerActionMapper2();
@@ -47,16 +47,16 @@ public void testGetActionMappingAndUri1() throws Exception {
mockContainer.expectAndReturn("getInstance", C.args(C.eq(ActionMapper.class), C.eq("mapper2")), mapper3);
mockContainer.expectAndReturn("getInstance", C.args(C.eq(ActionMapper.class), C.eq("mapper3")), mapper2);
CompositeActionMapper compositeActionMapper = new CompositeActionMapper((Container) mockContainer.proxy(), "mapper1,mapper2,mapper3");
-
+
ActionMapping actionMapping = compositeActionMapper.getMapping(new MockHttpServletRequest(), new ConfigurationManager(Container.DEFAULT_NAME));
String uri = compositeActionMapper.getUriFromActionMapping(new ActionMapping());
mockContainer.verify();
-
+
assertNotNull(actionMapping);
assertNotNull(uri);
assertTrue(actionMapping == InnerActionMapper3.actionMapping);
assertTrue(uri == InnerActionMapper3.uri);
-
+
}
public void testGetActionMappingAndUri2() throws Exception {
diff --git a/core/src/test/java/org/apache/struts2/dispatcher/mapper/DefaultActionMapperTest.java b/core/src/test/java/org/apache/struts2/dispatcher/mapper/DefaultActionMapperTest.java
index c60a8905f9..c047ec4335 100644
--- a/core/src/test/java/org/apache/struts2/dispatcher/mapper/DefaultActionMapperTest.java
+++ b/core/src/test/java/org/apache/struts2/dispatcher/mapper/DefaultActionMapperTest.java
@@ -28,14 +28,14 @@
import org.apache.struts2.views.jsp.StrutsMockHttpServletRequest;
import org.springframework.mock.web.MockHttpServletRequest;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.config.Configuration;
-import com.opensymphony.xwork2.config.ConfigurationManager;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.config.entities.PackageConfig;
-import com.opensymphony.xwork2.config.entities.ResultConfig;
-import com.opensymphony.xwork2.config.impl.DefaultConfiguration;
-import com.opensymphony.xwork2.inject.Container;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.config.Configuration;
+import org.apache.struts2.config.ConfigurationManager;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.config.entities.PackageConfig;
+import org.apache.struts2.config.entities.ResultConfig;
+import org.apache.struts2.config.impl.DefaultConfiguration;
+import org.apache.struts2.inject.Container;
/**
* DefaultActionMapper test case.
@@ -69,8 +69,8 @@ public Configuration getConfiguration() {
public void testGetMapping() {
req.setRequestURI("/my/namespace/actionName.action");
req.setServletPath("/my/namespace/actionName.action");
-
-
+
+
DefaultActionMapper mapper = new DefaultActionMapper();
ActionMapping mapping = mapper.getMapping(req, configManager);
@@ -85,8 +85,8 @@ public void testGetMappingWithMethod() {
req.setParameters(new HashMap());
req.setRequestURI("/my/namespace/actionName!add.action");
req.setServletPath("/my/namespace/actionName!add.action");
-
-
+
+
DefaultActionMapper mapper = new DefaultActionMapper();
mapper.setAllowDynamicMethodCalls("true");
@@ -101,8 +101,8 @@ public void testGetMappingWithSlashedName() {
req.setRequestURI("/my/foo/actionName.action");
req.setServletPath("/my/foo/actionName.action");
-
-
+
+
DefaultActionMapper mapper = new DefaultActionMapper();
mapper.setSlashesInActionNames("true");
@@ -117,8 +117,8 @@ public void testGetMappingWithSlashedNameAtRootButNoSlashPackage() {
req.setRequestURI("/foo/actionName.action");
req.setServletPath("/foo/actionName.action");
-
-
+
+
DefaultActionMapper mapper = new DefaultActionMapper();
mapper.setSlashesInActionNames("true");
@@ -146,8 +146,8 @@ public Configuration getConfiguration() {
req.setRequestURI("/foo/actionName.action");
req.setServletPath("/foo/actionName.action");
-
-
+
+
DefaultActionMapper mapper = new DefaultActionMapper();
mapper.setSlashesInActionNames("true");
@@ -163,8 +163,8 @@ public void testGetMappingWithNamespaceSlash() {
req.setRequestURI("/my-hh/abc.action");
req.setServletPath("/my-hh/abc.action");
-
-
+
+
DefaultActionMapper mapper = new DefaultActionMapper();
ActionMapping mapping = mapper.getMapping(req, configManager);
@@ -172,8 +172,8 @@ public void testGetMappingWithNamespaceSlash() {
assertEquals("", mapping.getNamespace());
assertEquals("abc", mapping.getName());
-
-
+
+
mapper = new DefaultActionMapper();
mapper.setSlashesInActionNames("true");
mapping = mapper.getMapping(req, configManager);
@@ -185,8 +185,8 @@ public void testGetMappingWithNamespaceSlash() {
public void testGetMappingWithUnknownNamespace() {
req.setRequestURI("/bo/foo/actionName.action");
req.setServletPath("/bo/foo/actionName.action");
-
-
+
+
DefaultActionMapper mapper = new DefaultActionMapper();
ActionMapping mapping = mapper.getMapping(req, configManager);
@@ -199,8 +199,8 @@ public void testGetMappingWithUnknownNamespace() {
public void testGetMappingWithUnknownNamespaceButFullNamespaceSelect() {
req.setRequestURI("/bo/foo/actionName.action");
req.setServletPath("/bo/foo/actionName.action");
-
-
+
+
DefaultActionMapper mapper = new DefaultActionMapper();
mapper.setAlwaysSelectFullNamespace("true");
@@ -262,8 +262,8 @@ public void testGetUri() {
req.setParameters(new HashMap());
req.setRequestURI("/my/namespace/actionName.action");
req.setServletPath("/my/namespace/actionName.action");
-
-
+
+
DefaultActionMapper mapper = new DefaultActionMapper();
ActionMapping mapping = mapper.getMapping(req, configManager);
@@ -275,8 +275,8 @@ public void testGetUriWithSemicolonPresent() {
req.setParameters(new HashMap());
req.setRequestURI("/my/namespace/actionName.action;abc=123rty56");
req.setServletPath("/my/namespace/actionName.action;abc=123rty56");
-
-
+
+
DefaultActionMapper mapper = new DefaultActionMapper();
ActionMapping mapping = mapper.getMapping(req, configManager);
@@ -288,8 +288,8 @@ public void testGetUriWithMethod() {
req.setParameters(new HashMap());
req.setRequestURI("/my/namespace/actionName!add.action");
req.setServletPath("/my/namespace/actionName!add.action");
-
-
+
+
DefaultActionMapper mapper = new DefaultActionMapper();
ActionMapping mapping = mapper.getMapping(req, configManager);
@@ -313,8 +313,8 @@ public void testGetMappingWithNoExtension() {
req.setParameters(new HashMap());
req.setRequestURI("/my/namespace/actionName");
req.setServletPath("/my/namespace/actionName");
-
-
+
+
DefaultActionMapper mapper = new DefaultActionMapper();
mapper.setExtensions("");
@@ -330,8 +330,8 @@ public void testGetMappingWithNoExtensionButUriHasExtension() {
req.setParameters(new HashMap());
req.setRequestURI("/my/namespace/actionName.html");
req.setServletPath("/my/namespace/actionName.html");
-
-
+
+
DefaultActionMapper mapper = new DefaultActionMapper();
mapper.setExtensions("");
@@ -979,5 +979,5 @@ public void testTestAllowedMethodNameAndFallbackToDefault() {
// then
assertEquals("error", result);
}
-
+
}
diff --git a/core/src/test/java/org/apache/struts2/dispatcher/mapper/Restful2ActionMapperTest.java b/core/src/test/java/org/apache/struts2/dispatcher/mapper/Restful2ActionMapperTest.java
index e4201c41c2..b037922e03 100644
--- a/core/src/test/java/org/apache/struts2/dispatcher/mapper/Restful2ActionMapperTest.java
+++ b/core/src/test/java/org/apache/struts2/dispatcher/mapper/Restful2ActionMapperTest.java
@@ -24,11 +24,11 @@
import org.apache.struts2.url.StrutsUrlDecoder;
import org.springframework.mock.web.MockHttpServletRequest;
-import com.opensymphony.xwork2.config.Configuration;
-import com.opensymphony.xwork2.config.ConfigurationManager;
-import com.opensymphony.xwork2.config.entities.PackageConfig;
-import com.opensymphony.xwork2.config.impl.DefaultConfiguration;
-import com.opensymphony.xwork2.inject.Container;
+import org.apache.struts2.config.Configuration;
+import org.apache.struts2.config.ConfigurationManager;
+import org.apache.struts2.config.entities.PackageConfig;
+import org.apache.struts2.config.impl.DefaultConfiguration;
+import org.apache.struts2.inject.Container;
public class Restful2ActionMapperTest extends StrutsInternalTestCase {
diff --git a/core/src/test/java/org/apache/struts2/factory/PrefixBasedActionProxyFactoryTest.java b/core/src/test/java/org/apache/struts2/factory/PrefixBasedActionProxyFactoryTest.java
index 01d2bd4f25..9ca0aed080 100644
--- a/core/src/test/java/org/apache/struts2/factory/PrefixBasedActionProxyFactoryTest.java
+++ b/core/src/test/java/org/apache/struts2/factory/PrefixBasedActionProxyFactoryTest.java
@@ -18,18 +18,18 @@
*/
package org.apache.struts2.factory;
-import com.opensymphony.xwork2.ActionProxy;
-import com.opensymphony.xwork2.ActionProxyFactory;
-import com.opensymphony.xwork2.DefaultActionProxyFactory;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.config.ConfigurationProvider;
-import com.opensymphony.xwork2.inject.ContainerBuilder;
-import com.opensymphony.xwork2.inject.Context;
-import com.opensymphony.xwork2.inject.Factory;
-import com.opensymphony.xwork2.inject.Scope;
-import com.opensymphony.xwork2.mock.MockActionProxy;
-import com.opensymphony.xwork2.test.StubConfigurationProvider;
-import com.opensymphony.xwork2.util.location.LocatableProperties;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.ActionProxyFactory;
+import org.apache.struts2.DefaultActionProxyFactory;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.config.ConfigurationProvider;
+import org.apache.struts2.inject.ContainerBuilder;
+import org.apache.struts2.inject.Context;
+import org.apache.struts2.inject.Factory;
+import org.apache.struts2.inject.Scope;
+import org.apache.struts2.mock.MockActionProxy;
+import org.apache.struts2.test.StubConfigurationProvider;
+import org.apache.struts2.util.location.LocatableProperties;
import org.apache.struts2.StrutsInternalTestCase;
import org.apache.struts2.config.StrutsXmlConfigurationProvider;
diff --git a/core/src/test/java/org/apache/struts2/factory/StrutsResultFactoryTest.java b/core/src/test/java/org/apache/struts2/factory/StrutsResultFactoryTest.java
index 37f43c5e18..196ab2f353 100644
--- a/core/src/test/java/org/apache/struts2/factory/StrutsResultFactoryTest.java
+++ b/core/src/test/java/org/apache/struts2/factory/StrutsResultFactoryTest.java
@@ -18,13 +18,12 @@
*/
package org.apache.struts2.factory;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.Result;
-import com.opensymphony.xwork2.config.entities.ResultConfig;
-import com.opensymphony.xwork2.factory.ResultFactory;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.Result;
+import org.apache.struts2.config.entities.ResultConfig;
import org.apache.struts2.StrutsInternalTestCase;
-import com.opensymphony.xwork2.result.ParamNameAwareResult;
+import org.apache.struts2.result.ParamNameAwareResult;
import java.util.HashMap;
import java.util.Map;
diff --git a/core/src/test/java/com/opensymphony/xwork2/inject/ContainerImplTest.java b/core/src/test/java/org/apache/struts2/inject/ContainerImplTest.java
similarity index 99%
rename from core/src/test/java/com/opensymphony/xwork2/inject/ContainerImplTest.java
rename to core/src/test/java/org/apache/struts2/inject/ContainerImplTest.java
index 85ef9ace89..a98c6f1dae 100644
--- a/core/src/test/java/com/opensymphony/xwork2/inject/ContainerImplTest.java
+++ b/core/src/test/java/org/apache/struts2/inject/ContainerImplTest.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.inject;
+package org.apache.struts2.inject;
import org.apache.commons.lang3.JavaVersion;
import org.apache.commons.lang3.SystemUtils;
diff --git a/core/src/test/java/com/opensymphony/xwork2/inject/EarlyInitializableBean.java b/core/src/test/java/org/apache/struts2/inject/EarlyInitializableBean.java
similarity index 96%
rename from core/src/test/java/com/opensymphony/xwork2/inject/EarlyInitializableBean.java
rename to core/src/test/java/org/apache/struts2/inject/EarlyInitializableBean.java
index 6b7752799f..131f31219c 100644
--- a/core/src/test/java/com/opensymphony/xwork2/inject/EarlyInitializableBean.java
+++ b/core/src/test/java/org/apache/struts2/inject/EarlyInitializableBean.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.inject;
+package org.apache.struts2.inject;
class EarlyInitializableBean implements EarlyInitializable {
private String message = "";
diff --git a/core/src/test/java/com/opensymphony/xwork2/inject/InitializableBean.java b/core/src/test/java/org/apache/struts2/inject/InitializableBean.java
similarity index 96%
rename from core/src/test/java/com/opensymphony/xwork2/inject/InitializableBean.java
rename to core/src/test/java/org/apache/struts2/inject/InitializableBean.java
index 4fb7cd970b..286d9bc1b5 100644
--- a/core/src/test/java/com/opensymphony/xwork2/inject/InitializableBean.java
+++ b/core/src/test/java/org/apache/struts2/inject/InitializableBean.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.inject;
+package org.apache.struts2.inject;
public class InitializableBean implements Initializable {
private String message = "";
diff --git a/core/src/test/java/org/apache/struts2/interceptor/ActionFileUploadInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/ActionFileUploadInterceptorTest.java
index ec1195490f..7dfb0e201c 100644
--- a/core/src/test/java/org/apache/struts2/interceptor/ActionFileUploadInterceptorTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/ActionFileUploadInterceptorTest.java
@@ -18,13 +18,13 @@
*/
package org.apache.struts2.interceptor;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionSupport;
-import com.opensymphony.xwork2.DefaultLocaleProvider;
-import com.opensymphony.xwork2.ValidationAwareSupport;
-import com.opensymphony.xwork2.mock.MockActionInvocation;
-import com.opensymphony.xwork2.mock.MockActionProxy;
-import com.opensymphony.xwork2.util.ClassLoaderUtil;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionSupport;
+import org.apache.struts2.DefaultLocaleProvider;
+import org.apache.struts2.ValidationAwareSupport;
+import org.apache.struts2.mock.MockActionInvocation;
+import org.apache.struts2.mock.MockActionProxy;
+import org.apache.struts2.util.ClassLoaderUtil;
import org.apache.commons.fileupload2.jakarta.servlet6.JakartaServletDiskFileUpload;
import org.apache.commons.fileupload2.jakarta.servlet6.JakartaServletFileUpload;
import org.apache.struts2.StrutsInternalTestCase;
diff --git a/core/src/test/java/org/apache/struts2/interceptor/ActionMappingParametersInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/ActionMappingParametersInterceptorTest.java
index 5a102b0d5f..f008f489db 100644
--- a/core/src/test/java/org/apache/struts2/interceptor/ActionMappingParametersInterceptorTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/ActionMappingParametersInterceptorTest.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts2.interceptor;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.XWorkTestCase;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.XWorkTestCase;
import org.apache.struts2.dispatcher.HttpParameters;
import org.apache.struts2.ServletActionContext;
@@ -187,8 +187,8 @@ public void testParametersNoNestedWrapping() {
/**
* Create and configure an ActionMappingParametersInterceptor instance
- *
- * @return
+ *
+ * @return
*/
private ActionMappingParametersInterceptor createActionMappingParametersInterceptor() {
ActionMappingParametersInterceptor ampi = new ActionMappingParametersInterceptor();
diff --git a/core/src/test/java/com/opensymphony/xwork2/interceptor/AliasInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/AliasInterceptorTest.java
similarity index 91%
rename from core/src/test/java/com/opensymphony/xwork2/interceptor/AliasInterceptorTest.java
rename to core/src/test/java/org/apache/struts2/interceptor/AliasInterceptorTest.java
index 16108ef290..ed05389b99 100644
--- a/core/src/test/java/com/opensymphony/xwork2/interceptor/AliasInterceptorTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/AliasInterceptorTest.java
@@ -16,26 +16,26 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.interceptor;
-
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionProxy;
-import com.opensymphony.xwork2.SimpleAction;
-import com.opensymphony.xwork2.SimpleFooAction;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.config.providers.XmlConfigurationProvider;
-import com.opensymphony.xwork2.mock.MockActionInvocation;
-import com.opensymphony.xwork2.mock.MockActionProxy;
+package org.apache.struts2.interceptor;
+
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.SimpleAction;
+import org.apache.struts2.SimpleFooAction;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.config.providers.XmlConfigurationProvider;
+import org.apache.struts2.mock.MockActionInvocation;
+import org.apache.struts2.mock.MockActionProxy;
import org.apache.struts2.config.StrutsXmlConfigurationProvider;
import org.apache.struts2.dispatcher.HttpParameters;
import java.util.HashMap;
import java.util.Map;
-import static com.opensymphony.xwork2.security.DefaultAcceptedPatternsCheckerTest.ACCEPT_ALL_PATTERNS_CHECKER;
-import static com.opensymphony.xwork2.security.DefaultExcludedPatternsCheckerTest.NO_EXCLUSION_PATTERNS_CHECKER;
+import static org.apache.struts2.security.DefaultAcceptedPatternsCheckerTest.ACCEPT_ALL_PATTERNS_CHECKER;
+import static org.apache.struts2.security.DefaultExcludedPatternsCheckerTest.NO_EXCLUSION_PATTERNS_CHECKER;
import static org.junit.Assert.assertNotEquals;
@@ -48,7 +48,7 @@
*
* e.g.
*
- *
+ *
* #{ "aliasSource" : "aliasDest", "bar":"baz" }
*
*
diff --git a/core/src/test/java/com/opensymphony/xwork2/interceptor/ChainingInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/ChainingInterceptorTest.java
similarity index 89%
rename from core/src/test/java/com/opensymphony/xwork2/interceptor/ChainingInterceptorTest.java
rename to core/src/test/java/org/apache/struts2/interceptor/ChainingInterceptorTest.java
index 0c6fd274a1..efdd77b583 100644
--- a/core/src/test/java/com/opensymphony/xwork2/interceptor/ChainingInterceptorTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/ChainingInterceptorTest.java
@@ -16,27 +16,29 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.interceptor;
+package org.apache.struts2.interceptor;
import com.mockobjects.dynamic.Mock;
-import com.opensymphony.xwork2.*;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionChainResult;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.SimpleAction;
+import org.apache.struts2.TestBean;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.util.ValueStack;
import java.util.*;
-
/**
* Unit test for {@link ChainingInterceptor}.
- *
- * @author Jason Carreira
*/
public class ChainingInterceptorTest extends XWorkTestCase {
- ActionInvocation invocation;
- ChainingInterceptor interceptor;
- Mock mockInvocation;
- ValueStack stack;
-
+ private ActionInvocation invocation;
+ private ChainingInterceptor interceptor;
+ private Mock mockInvocation;
+ private ValueStack stack;
public void testActionErrorsCanBeAddedAfterChain() throws Exception {
SimpleAction action1 = new SimpleAction();
@@ -131,11 +133,11 @@ public void testTwoExcludesPropertiesChained() throws Exception {
interceptor.setExcludes(excludes);
interceptor.intercept(invocation);
assertEquals(bean.getBirth(), action.getBirth());
- assertEquals(null, action.getName());
+ assertNull(action.getName());
assertEquals(0, action.getCount());
assertTrue(interceptor.getExcludes().contains("count"));
assertTrue(interceptor.getExcludes().contains("name"));
- assertTrue(interceptor.getExcludes().size() == 2);
+ assertEquals(2, interceptor.getExcludes().size());
}
public void testNullCompoundRootElementAllowsProcessToContinue() throws Exception {
@@ -162,7 +164,7 @@ protected void setUp() throws Exception {
}
- private class TestBeanAction extends TestBean implements Action {
+ private static class TestBeanAction extends TestBean implements Action {
public String execute() throws Exception {
return SUCCESS;
}
diff --git a/core/src/test/java/com/opensymphony/xwork2/interceptor/ChainingInterceptorWithConfigTest.java b/core/src/test/java/org/apache/struts2/interceptor/ChainingInterceptorWithConfigTest.java
similarity index 81%
rename from core/src/test/java/com/opensymphony/xwork2/interceptor/ChainingInterceptorWithConfigTest.java
rename to core/src/test/java/org/apache/struts2/interceptor/ChainingInterceptorWithConfigTest.java
index ab1bfbf5f7..5d2e21dbcf 100644
--- a/core/src/test/java/com/opensymphony/xwork2/interceptor/ChainingInterceptorWithConfigTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/ChainingInterceptorWithConfigTest.java
@@ -16,27 +16,27 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.interceptor;
-
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionChainResult;
-import com.opensymphony.xwork2.ActionProxy;
-import com.opensymphony.xwork2.ActionProxyFactory;
-import com.opensymphony.xwork2.DefaultActionProxyFactory;
-import com.opensymphony.xwork2.ObjectFactory;
-import com.opensymphony.xwork2.SimpleAction;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.config.Configuration;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.config.ConfigurationProvider;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.config.entities.InterceptorConfig;
-import com.opensymphony.xwork2.config.entities.InterceptorMapping;
-import com.opensymphony.xwork2.config.entities.PackageConfig;
-import com.opensymphony.xwork2.config.entities.ResultConfig;
-import com.opensymphony.xwork2.config.providers.XmlConfigurationProvider;
-import com.opensymphony.xwork2.inject.ContainerBuilder;
-import com.opensymphony.xwork2.util.location.LocatableProperties;
+package org.apache.struts2.interceptor;
+
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionChainResult;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.ActionProxyFactory;
+import org.apache.struts2.DefaultActionProxyFactory;
+import org.apache.struts2.ObjectFactory;
+import org.apache.struts2.SimpleAction;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.config.Configuration;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.config.ConfigurationProvider;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.config.entities.InterceptorConfig;
+import org.apache.struts2.config.entities.InterceptorMapping;
+import org.apache.struts2.config.entities.PackageConfig;
+import org.apache.struts2.config.entities.ResultConfig;
+import org.apache.struts2.config.providers.XmlConfigurationProvider;
+import org.apache.struts2.inject.ContainerBuilder;
+import org.apache.struts2.util.location.LocatableProperties;
import org.apache.struts2.TestResult;
import org.apache.struts2.config.StrutsXmlConfigurationProvider;
diff --git a/core/src/test/java/org/apache/struts2/interceptor/CheckboxInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/CheckboxInterceptorTest.java
index 0fe526864d..d9f1c0aa4c 100644
--- a/core/src/test/java/org/apache/struts2/interceptor/CheckboxInterceptorTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/CheckboxInterceptorTest.java
@@ -21,11 +21,11 @@
import java.util.HashMap;
import java.util.Map;
-import com.opensymphony.xwork2.ActionInvocation;
+import org.apache.struts2.ActionInvocation;
import org.apache.struts2.StrutsInternalTestCase;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.mock.MockActionInvocation;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.mock.MockActionInvocation;
import org.apache.struts2.dispatcher.HttpParameters;
/**
diff --git a/core/src/test/java/org/apache/struts2/interceptor/ClearSessionInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/ClearSessionInterceptorTest.java
index 8bd4e60dd3..37f0cb8f55 100644
--- a/core/src/test/java/org/apache/struts2/interceptor/ClearSessionInterceptorTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/ClearSessionInterceptorTest.java
@@ -23,8 +23,8 @@
import org.apache.struts2.StrutsInternalTestCase;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.mock.MockActionInvocation;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.mock.MockActionInvocation;
/**
* Test case for ClearSessionInterceptor.
diff --git a/core/src/test/java/org/apache/struts2/interceptor/CoepInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/CoepInterceptorTest.java
index 72ea1a024c..760740606e 100644
--- a/core/src/test/java/org/apache/struts2/interceptor/CoepInterceptorTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/CoepInterceptorTest.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts2.interceptor;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.mock.MockActionInvocation;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.mock.MockActionInvocation;
import org.apache.logging.log4j.util.Strings;
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.StrutsInternalTestCase;
diff --git a/core/src/test/java/com/opensymphony/xwork2/interceptor/ConversionErrorInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/ConversionErrorInterceptorTest.java
similarity index 92%
rename from core/src/test/java/com/opensymphony/xwork2/interceptor/ConversionErrorInterceptorTest.java
rename to core/src/test/java/org/apache/struts2/interceptor/ConversionErrorInterceptorTest.java
index 22a9c28efb..677f248d31 100644
--- a/core/src/test/java/com/opensymphony/xwork2/interceptor/ConversionErrorInterceptorTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/ConversionErrorInterceptorTest.java
@@ -16,23 +16,25 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.interceptor;
+package org.apache.struts2.interceptor;
import com.mockobjects.dynamic.C;
import com.mockobjects.dynamic.Mock;
-import com.opensymphony.xwork2.*;
-import com.opensymphony.xwork2.conversion.impl.ConversionData;
-import com.opensymphony.xwork2.mock.MockActionInvocation;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.ActionSupport;
+import org.apache.struts2.SimpleAction;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.conversion.impl.ConversionData;
+import org.apache.struts2.mock.MockActionInvocation;
+import org.apache.struts2.util.ValueStack;
import java.util.HashMap;
import java.util.Map;
-
/**
* Unit test for {@link ConversionErrorInterceptor}.
- *
- * @author Jason Carreira
*/
public class ConversionErrorInterceptorTest extends XWorkTestCase {
diff --git a/core/src/test/java/org/apache/struts2/interceptor/CookieInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/CookieInterceptorTest.java
index adb5496d17..13c9bbc7ae 100644
--- a/core/src/test/java/org/apache/struts2/interceptor/CookieInterceptorTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/CookieInterceptorTest.java
@@ -18,13 +18,13 @@
*/
package org.apache.struts2.interceptor;
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.ActionSupport;
-import com.opensymphony.xwork2.mock.MockActionInvocation;
-import com.opensymphony.xwork2.security.DefaultAcceptedPatternsChecker;
-import com.opensymphony.xwork2.security.DefaultExcludedPatternsChecker;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.ActionSupport;
+import org.apache.struts2.mock.MockActionInvocation;
+import org.apache.struts2.security.DefaultAcceptedPatternsChecker;
+import org.apache.struts2.security.DefaultExcludedPatternsChecker;
import jakarta.servlet.http.Cookie;
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.StrutsInternalTestCase;
diff --git a/core/src/test/java/org/apache/struts2/interceptor/CookieProviderInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/CookieProviderInterceptorTest.java
index 421cdca68b..6975ef7845 100644
--- a/core/src/test/java/org/apache/struts2/interceptor/CookieProviderInterceptorTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/CookieProviderInterceptorTest.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts2.interceptor;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.XWorkTestCase;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.XWorkTestCase;
import org.easymock.EasyMock;
import jakarta.servlet.http.Cookie;
diff --git a/core/src/test/java/org/apache/struts2/interceptor/CoopInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/CoopInterceptorTest.java
index 544e7b5d88..f6cd09341a 100644
--- a/core/src/test/java/org/apache/struts2/interceptor/CoopInterceptorTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/CoopInterceptorTest.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts2.interceptor;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.mock.MockActionInvocation;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.mock.MockActionInvocation;
import org.apache.logging.log4j.util.Strings;
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.StrutsInternalTestCase;
diff --git a/core/src/test/java/org/apache/struts2/interceptor/CreateSessionInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/CreateSessionInterceptorTest.java
index 2690adaf3a..43a098a0dd 100644
--- a/core/src/test/java/org/apache/struts2/interceptor/CreateSessionInterceptorTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/CreateSessionInterceptorTest.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts2.interceptor;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.mock.MockActionInvocation;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.mock.MockActionInvocation;
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.StrutsInternalTestCase;
import org.jmock.Mock;
diff --git a/core/src/test/java/org/apache/struts2/interceptor/CspInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/CspInterceptorTest.java
index 94d86cf46e..597c953940 100644
--- a/core/src/test/java/org/apache/struts2/interceptor/CspInterceptorTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/CspInterceptorTest.java
@@ -18,9 +18,9 @@
*/
package org.apache.struts2.interceptor;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.mock.MockActionInvocation;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.mock.MockActionInvocation;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpSession;
import org.apache.logging.log4j.util.Strings;
diff --git a/core/src/test/java/org/apache/struts2/interceptor/DateTextFieldInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/DateTextFieldInterceptorTest.java
index d603335290..afc398580b 100644
--- a/core/src/test/java/org/apache/struts2/interceptor/DateTextFieldInterceptorTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/DateTextFieldInterceptorTest.java
@@ -25,8 +25,8 @@
import org.apache.struts2.StrutsInternalTestCase;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.mock.MockActionInvocation;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.mock.MockActionInvocation;
import org.apache.struts2.dispatcher.HttpParameters;
/**
diff --git a/core/src/test/java/com/opensymphony/xwork2/interceptor/DefaultWorkflowInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/DefaultWorkflowInterceptorTest.java
similarity index 93%
rename from core/src/test/java/com/opensymphony/xwork2/interceptor/DefaultWorkflowInterceptorTest.java
rename to core/src/test/java/org/apache/struts2/interceptor/DefaultWorkflowInterceptorTest.java
index 628c069186..83cdcfabad 100644
--- a/core/src/test/java/com/opensymphony/xwork2/interceptor/DefaultWorkflowInterceptorTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/DefaultWorkflowInterceptorTest.java
@@ -16,12 +16,18 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.interceptor;
-
-import com.opensymphony.xwork2.*;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.config.entities.InterceptorConfig;
-import com.opensymphony.xwork2.validator.ValidationInterceptor;
+package org.apache.struts2.interceptor;
+
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.ObjectFactory;
+import org.apache.struts2.Validateable;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.config.entities.InterceptorConfig;
+import org.apache.struts2.validator.ValidationInterceptor;
import org.easymock.EasyMock;
import java.util.HashMap;
@@ -59,7 +65,7 @@ public void testExcludesMethod() throws Exception {
validationInterceptor.setExcludeMethods("execute");
interceptor.setExcludeMethods("execute");
validationInterceptor.intercept(invocation);
-
+
assertEquals(result, interceptor.intercept(invocation));
}
@@ -78,7 +84,7 @@ public void testIncludesMethodWithWildcard() throws Exception {
ValidationInterceptor validationInterceptor = create();
validationInterceptor.setIncludeMethods("*");
validationInterceptor.intercept(invocation);
-
+
assertEquals(result, interceptor.intercept(invocation));
}
@@ -89,67 +95,67 @@ public void testIncludesMethod() throws Exception {
ValidationInterceptor validationInterceptor = create();
validationInterceptor.setIncludeMethods("execute");
validationInterceptor.intercept(invocation);
-
+
assertEquals(result, interceptor.intercept(invocation));
}
public void testIncludesAndExcludesMethod() throws Exception {
interceptor.setExcludeMethods("execute,input,validate");
interceptor.setIncludeMethods("execute");
-
+
ValidationInterceptor validationInterceptor = create();
validationInterceptor.setExcludeMethods("execute,input,validate");
validationInterceptor.setIncludeMethods("execute");
validationInterceptor.intercept(invocation);
-
+
assertEquals(result, interceptor.intercept(invocation));
}
public void testIncludesAndExcludesMethodAllWildCarded() throws Exception {
interceptor.setExcludeMethods("*");
interceptor.setIncludeMethods("*");
-
+
ValidationInterceptor validationInterceptor = create();
validationInterceptor.setExcludeMethods("*");
validationInterceptor.setIncludeMethods("*");
validationInterceptor.intercept(invocation);
-
+
assertEquals(result, interceptor.intercept(invocation));
}
public void testIncludesAndExcludesMethodWithExcludeWildcard() throws Exception {
interceptor.setExcludeMethods("*");
interceptor.setIncludeMethods("execute");
-
+
ValidationInterceptor validationInterceptor = create();
validationInterceptor.setExcludeMethods("*");
validationInterceptor.setIncludeMethods("execute");
validationInterceptor.intercept(invocation);
-
+
assertEquals(result, interceptor.intercept(invocation));
}
public void testIncludesAndExcludesMethodWithIncludeWildcardAndNoMatches() throws Exception {
interceptor.setExcludeMethods("execute,input,validate");
interceptor.setIncludeMethods("*");
-
+
ValidationInterceptor validationInterceptor = create();
validationInterceptor.setExcludeMethods("execute,input,validate");
validationInterceptor.setIncludeMethods("*");
validationInterceptor.intercept(invocation);
-
+
assertEquals(result, interceptor.intercept(invocation));
}
public void testIncludesAndExcludesMethodWithIncludeWildcard() throws Exception {
interceptor.setExcludeMethods("input,validate");
interceptor.setIncludeMethods("*");
-
+
ValidationInterceptor validationInterceptor = create();
validationInterceptor.setExcludeMethods("input,validate");
validationInterceptor.setIncludeMethods("*");
validationInterceptor.intercept(invocation);
-
+
assertEquals(result, interceptor.intercept(invocation));
}
@@ -158,11 +164,11 @@ public void testNoValidateAction() throws Exception {
validationInterceptor.setExcludeMethods("execute,input,validate");
validationInterceptor.setIncludeMethods("execute");
validationInterceptor.intercept(invocation);
-
+
assertEquals(result, interceptor.intercept(invocation));
}
-
-
+
+
@Override
protected void setUp() throws Exception {
super.setUp();
@@ -192,15 +198,15 @@ protected void setUp() throws Exception {
protected void tearDown() throws Exception {
super.tearDown();
}
-
+
protected ValidationInterceptor create() {
ObjectFactory objectFactory = container.getInstance(ObjectFactory.class);
return (ValidationInterceptor) objectFactory.buildInterceptor(
new InterceptorConfig.Builder("model", ValidationInterceptor.class.getName()).build(), new HashMap<>());
}
-
-
+
+
private interface ValidateAction extends Action, Validateable, ValidationAware {
}
diff --git a/core/src/test/java/com/opensymphony/xwork2/interceptor/ExceptionMappingInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/ExceptionMappingInterceptorTest.java
similarity index 94%
rename from core/src/test/java/com/opensymphony/xwork2/interceptor/ExceptionMappingInterceptorTest.java
rename to core/src/test/java/org/apache/struts2/interceptor/ExceptionMappingInterceptorTest.java
index 5ef177d9b6..a7e799b49d 100644
--- a/core/src/test/java/com/opensymphony/xwork2/interceptor/ExceptionMappingInterceptorTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/ExceptionMappingInterceptorTest.java
@@ -16,30 +16,31 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.interceptor;
+package org.apache.struts2.interceptor;
import com.mockobjects.dynamic.Mock;
-import com.opensymphony.xwork2.*;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.config.entities.ExceptionMappingConfig;
-import com.opensymphony.xwork2.util.ValueStack;
-import com.opensymphony.xwork2.validator.ValidationException;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.config.entities.ExceptionMappingConfig;
+import org.apache.struts2.util.ValueStack;
+import org.apache.struts2.validator.ValidationException;
import org.apache.struts2.StrutsException;
-import java.util.HashMap;
-
/**
* Unit test for ExceptionMappingInterceptor.
- *
+ *
* @author Matthew E. Porter (matthew dot porter at metissian dot com)
*/
public class ExceptionMappingInterceptorTest extends XWorkTestCase {
- ActionInvocation invocation;
- ExceptionMappingInterceptor interceptor;
- Mock mockInvocation;
- ValueStack stack;
-
+ private ActionInvocation invocation;
+ private ExceptionMappingInterceptor interceptor;
+ private Mock mockInvocation;
+ private ValueStack stack;
public void testThrownExceptionMatching() throws Exception {
this.setUpWithExceptionMappings();
@@ -148,7 +149,7 @@ public void testThrownExceptionNoMatchLoggingCategoryLevelFatal() {
} catch (Exception e) {
assertEquals(e, exception);
}
-
+
assertEquals("fatal", interceptor.getLogLevel());
assertTrue(interceptor.isLogEnabled());
assertEquals("showcase.unhandled", interceptor.getLogCategory());
diff --git a/core/src/test/java/org/apache/struts2/interceptor/ExecuteAndWaitDelayAction.java b/core/src/test/java/org/apache/struts2/interceptor/ExecuteAndWaitDelayAction.java
index 67e2707316..d6caace33b 100644
--- a/core/src/test/java/org/apache/struts2/interceptor/ExecuteAndWaitDelayAction.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/ExecuteAndWaitDelayAction.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.interceptor;
-import com.opensymphony.xwork2.Action;
+import org.apache.struts2.Action;
/**
* Used by ExecuteAndWaitInterceptorTest.
diff --git a/core/src/test/java/org/apache/struts2/interceptor/ExecuteAndWaitInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/ExecuteAndWaitInterceptorTest.java
index 3a6a25227c..a8da7b1e6b 100644
--- a/core/src/test/java/org/apache/struts2/interceptor/ExecuteAndWaitInterceptorTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/ExecuteAndWaitInterceptorTest.java
@@ -18,23 +18,23 @@
*/
package org.apache.struts2.interceptor;
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionProxy;
-import com.opensymphony.xwork2.ActionProxyFactory;
-import com.opensymphony.xwork2.DefaultActionProxyFactory;
-import com.opensymphony.xwork2.ObjectFactory;
-import com.opensymphony.xwork2.config.Configuration;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.config.ConfigurationProvider;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.config.entities.InterceptorMapping;
-import com.opensymphony.xwork2.config.entities.PackageConfig;
-import com.opensymphony.xwork2.config.entities.ResultConfig;
-import com.opensymphony.xwork2.inject.ContainerBuilder;
-import com.opensymphony.xwork2.mock.MockResult;
-import com.opensymphony.xwork2.ognl.OgnlUtil;
-import com.opensymphony.xwork2.util.location.LocatableProperties;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.ActionProxyFactory;
+import org.apache.struts2.DefaultActionProxyFactory;
+import org.apache.struts2.ObjectFactory;
+import org.apache.struts2.config.Configuration;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.config.ConfigurationProvider;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.config.entities.InterceptorMapping;
+import org.apache.struts2.config.entities.PackageConfig;
+import org.apache.struts2.config.entities.ResultConfig;
+import org.apache.struts2.inject.ContainerBuilder;
+import org.apache.struts2.mock.MockResult;
+import org.apache.struts2.ognl.OgnlUtil;
+import org.apache.struts2.util.location.LocatableProperties;
import jakarta.servlet.http.HttpSession;
import org.apache.struts2.StrutsInternalTestCase;
import org.apache.struts2.dispatcher.HttpParameters;
diff --git a/core/src/test/java/org/apache/struts2/interceptor/FetchMetadataInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/FetchMetadataInterceptorTest.java
index afbe7be46c..42dc6f2671 100644
--- a/core/src/test/java/org/apache/struts2/interceptor/FetchMetadataInterceptorTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/FetchMetadataInterceptorTest.java
@@ -18,16 +18,15 @@
*/
package org.apache.struts2.interceptor;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.config.RuntimeConfiguration;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.config.entities.InterceptorMapping;
-import com.opensymphony.xwork2.config.entities.InterceptorStackConfig;
-import com.opensymphony.xwork2.config.entities.PackageConfig;
-import com.opensymphony.xwork2.config.providers.XmlConfigurationProvider;
-import com.opensymphony.xwork2.mock.MockActionInvocation;
-import org.apache.logging.log4j.util.Strings;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.config.RuntimeConfiguration;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.config.entities.InterceptorMapping;
+import org.apache.struts2.config.entities.InterceptorStackConfig;
+import org.apache.struts2.config.entities.PackageConfig;
+import org.apache.struts2.config.providers.XmlConfigurationProvider;
+import org.apache.struts2.mock.MockActionInvocation;
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.config.StrutsXmlConfigurationProvider;
import org.springframework.mock.web.MockHttpServletRequest;
diff --git a/core/src/test/java/org/apache/struts2/interceptor/I18nInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/I18nInterceptorTest.java
index 3e71af74e1..879924f6ed 100644
--- a/core/src/test/java/org/apache/struts2/interceptor/I18nInterceptorTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/I18nInterceptorTest.java
@@ -18,12 +18,12 @@
*/
package org.apache.struts2.interceptor;
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.DefaultLocaleProviderFactory;
-import com.opensymphony.xwork2.mock.MockActionInvocation;
-import com.opensymphony.xwork2.mock.MockActionProxy;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.DefaultLocaleProviderFactory;
+import org.apache.struts2.mock.MockActionInvocation;
+import org.apache.struts2.mock.MockActionProxy;
import junit.framework.TestCase;
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.StrutsStatics;
diff --git a/core/src/test/java/org/apache/struts2/interceptor/MessageStoreInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/MessageStoreInterceptorTest.java
index 6abcd89c58..86bc96286e 100644
--- a/core/src/test/java/org/apache/struts2/interceptor/MessageStoreInterceptorTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/MessageStoreInterceptorTest.java
@@ -18,10 +18,10 @@
*/
package org.apache.struts2.interceptor;
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.ActionSupport;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.ActionSupport;
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.StrutsInternalTestCase;
import org.apache.struts2.dispatcher.HttpParameters;
diff --git a/core/src/test/java/org/apache/struts2/interceptor/MessageStorePreResultListenerTest.java b/core/src/test/java/org/apache/struts2/interceptor/MessageStorePreResultListenerTest.java
index 50d46ebd15..e640231ee1 100644
--- a/core/src/test/java/org/apache/struts2/interceptor/MessageStorePreResultListenerTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/MessageStorePreResultListenerTest.java
@@ -18,13 +18,13 @@
*/
package org.apache.struts2.interceptor;
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.ActionSupport;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.config.entities.ResultConfig;
-import com.opensymphony.xwork2.mock.MockActionProxy;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.ActionSupport;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.config.entities.ResultConfig;
+import org.apache.struts2.mock.MockActionProxy;
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.StrutsInternalTestCase;
import org.apache.struts2.dispatcher.HttpParameters;
@@ -34,7 +34,7 @@
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.servlet.http.HttpSession;
-import java.util.HashMap;
+
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
diff --git a/core/src/test/java/com/opensymphony/xwork2/interceptor/MethodFilterInterceptorUtilTest.java b/core/src/test/java/org/apache/struts2/interceptor/MethodFilterInterceptorUtilTest.java
similarity index 95%
rename from core/src/test/java/com/opensymphony/xwork2/interceptor/MethodFilterInterceptorUtilTest.java
rename to core/src/test/java/org/apache/struts2/interceptor/MethodFilterInterceptorUtilTest.java
index 6896e87c28..179cda9bf0 100644
--- a/core/src/test/java/com/opensymphony/xwork2/interceptor/MethodFilterInterceptorUtilTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/MethodFilterInterceptorUtilTest.java
@@ -16,14 +16,14 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.interceptor;
+package org.apache.struts2.interceptor;
-import com.opensymphony.xwork2.XWorkTestCase;
+import org.apache.struts2.XWorkTestCase;
import java.util.HashSet;
public class MethodFilterInterceptorUtilTest extends XWorkTestCase {
-
+
public void testApplyMethodNoWildcards() {
HashSet included = new HashSet<>();
@@ -33,7 +33,7 @@ public void testApplyMethodNoWildcards() {
HashSet excluded = new HashSet<>();
excluded.add("excluded");
excluded.add("excludedAgain");
-
+
// test expected behavior
assertFalse(MethodFilterInterceptorUtil.applyMethod(excluded, included, "excluded"));
assertTrue(MethodFilterInterceptorUtil.applyMethod(excluded, included, "included"));
@@ -51,7 +51,7 @@ public void testApplyMethodWithWildcards() {
HashSet excluded = new HashSet<>();
excluded.add("excluded*");
-
+
assertTrue(MethodFilterInterceptorUtil.applyMethod(excluded, included, "includedMethod"));
assertFalse(MethodFilterInterceptorUtil.applyMethod(excluded, included, "excludedMethod"));
@@ -60,7 +60,7 @@ public void testApplyMethodWithWildcards() {
excluded.clear();
included.add("wildIncluded");
excluded.add("wild*");
-
+
assertTrue(MethodFilterInterceptorUtil.applyMethod(excluded, included, "wildIncluded"));
assertFalse(MethodFilterInterceptorUtil.applyMethod(excluded, included, "wildNotIncluded"));
diff --git a/core/src/test/java/com/opensymphony/xwork2/interceptor/ModelDrivenInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/ModelDrivenInterceptorTest.java
similarity index 94%
rename from core/src/test/java/com/opensymphony/xwork2/interceptor/ModelDrivenInterceptorTest.java
rename to core/src/test/java/org/apache/struts2/interceptor/ModelDrivenInterceptorTest.java
index 65b21c86d1..e1f0c6c47f 100644
--- a/core/src/test/java/com/opensymphony/xwork2/interceptor/ModelDrivenInterceptorTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/ModelDrivenInterceptorTest.java
@@ -16,17 +16,17 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.interceptor;
+package org.apache.struts2.interceptor;
import com.mockobjects.dynamic.ConstraintMatcher;
import com.mockobjects.dynamic.Mock;
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.ActionSupport;
-import com.opensymphony.xwork2.ModelDriven;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.ActionSupport;
+import org.apache.struts2.ModelDriven;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.util.ValueStack;
import java.util.Date;
diff --git a/core/src/test/java/org/apache/struts2/interceptor/MultiselectInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/MultiselectInterceptorTest.java
index 43c9a819fd..e393efffce 100644
--- a/core/src/test/java/org/apache/struts2/interceptor/MultiselectInterceptorTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/MultiselectInterceptorTest.java
@@ -22,8 +22,8 @@
import java.util.HashMap;
import java.util.Map;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.mock.MockActionInvocation;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.mock.MockActionInvocation;
import org.apache.struts2.StrutsInternalTestCase;
import org.apache.struts2.dispatcher.HttpParameters;
diff --git a/core/src/test/java/com/opensymphony/xwork2/interceptor/ParameterRemoverInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/ParameterRemoverInterceptorTest.java
similarity index 94%
rename from core/src/test/java/com/opensymphony/xwork2/interceptor/ParameterRemoverInterceptorTest.java
rename to core/src/test/java/org/apache/struts2/interceptor/ParameterRemoverInterceptorTest.java
index 60131d919e..5e3fbf13a2 100644
--- a/core/src/test/java/com/opensymphony/xwork2/interceptor/ParameterRemoverInterceptorTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/ParameterRemoverInterceptorTest.java
@@ -16,15 +16,15 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.interceptor;
+package org.apache.struts2.interceptor;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.ActionSupport;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.ActionSupport;
import junit.framework.TestCase;
import org.apache.struts2.dispatcher.HttpParameters;
-import java.util.HashMap;
+import java.io.Serial;
import java.util.LinkedHashMap;
import static org.easymock.EasyMock.createMock;
@@ -32,10 +32,6 @@
import static org.easymock.EasyMock.replay;
import static org.easymock.EasyMock.verify;
-/**
- * @author tmjee
- * @version $Date$ $Id$
- */
public class ParameterRemoverInterceptorTest extends TestCase {
private ActionContext context;
@@ -126,6 +122,7 @@ public void testInterception3() throws Exception {
}
static class SampleAction extends ActionSupport {
+ @Serial
private static final long serialVersionUID = 7489487258845368260L;
}
}
diff --git a/core/src/test/java/com/opensymphony/xwork2/interceptor/PreResultListenerTest.java b/core/src/test/java/org/apache/struts2/interceptor/PreResultListenerTest.java
similarity index 84%
rename from core/src/test/java/com/opensymphony/xwork2/interceptor/PreResultListenerTest.java
rename to core/src/test/java/org/apache/struts2/interceptor/PreResultListenerTest.java
index 9116d3f794..0b397ab6f6 100644
--- a/core/src/test/java/com/opensymphony/xwork2/interceptor/PreResultListenerTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/PreResultListenerTest.java
@@ -16,18 +16,25 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.interceptor;
+package org.apache.struts2.interceptor;
import com.mockobjects.dynamic.C;
import com.mockobjects.dynamic.Mock;
-import com.opensymphony.xwork2.*;
-import com.opensymphony.xwork2.config.Configuration;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.config.ConfigurationProvider;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.config.entities.PackageConfig;
-import com.opensymphony.xwork2.inject.ContainerBuilder;
-import com.opensymphony.xwork2.util.location.LocatableProperties;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.ActionProxyFactory;
+import org.apache.struts2.DefaultActionProxyFactory;
+import org.apache.struts2.ObjectFactory;
+import org.apache.struts2.SimpleFooAction;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.config.Configuration;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.config.ConfigurationProvider;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.config.entities.PackageConfig;
+import org.apache.struts2.inject.ContainerBuilder;
+import org.apache.struts2.util.location.LocatableProperties;
import java.util.HashMap;
@@ -73,7 +80,7 @@ protected void setUp() throws Exception {
Configuration configuration;
public void destroy() {
}
-
+
public void init(Configuration config) {
this.configuration = config;
}
@@ -95,7 +102,7 @@ public boolean needsReload() {
public void register(ContainerBuilder builder, LocatableProperties props) throws ConfigurationException {
builder.factory(ActionProxyFactory.class, DefaultActionProxyFactory.class);
builder.factory(ObjectFactory.class);
-
+
}
});
}
diff --git a/core/src/test/java/com/opensymphony/xwork2/interceptor/PrefixMethodInvocationUtilTest.java b/core/src/test/java/org/apache/struts2/interceptor/PrefixMethodInvocationUtilTest.java
similarity index 92%
rename from core/src/test/java/com/opensymphony/xwork2/interceptor/PrefixMethodInvocationUtilTest.java
rename to core/src/test/java/org/apache/struts2/interceptor/PrefixMethodInvocationUtilTest.java
index d8ad2e6c8c..c4aab63dca 100644
--- a/core/src/test/java/com/opensymphony/xwork2/interceptor/PrefixMethodInvocationUtilTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/PrefixMethodInvocationUtilTest.java
@@ -16,10 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.interceptor;
+package org.apache.struts2.interceptor;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.ActionProxy;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.ActionProxy;
import junit.framework.TestCase;
import static org.easymock.EasyMock.*;
@@ -27,7 +27,7 @@
/**
* Test case for PrefixMethodInovcationUtil.
- *
+ *
* @author tm_jee
* @version $Date$ $Id$
*/
@@ -35,12 +35,12 @@ public class PrefixMethodInvocationUtilTest extends TestCase {
// === capitalizeMethodName ===
public void testCapitalizeMethodName() throws Exception {
- assertEquals("SomeMethod",
+ assertEquals("SomeMethod",
PrefixMethodInvocationUtil.capitalizeMethodName("someMethod"));
- assertEquals("AnotherMethod",
+ assertEquals("AnotherMethod",
PrefixMethodInvocationUtil.capitalizeMethodName("anotherMethod"));
}
-
+
// === getPrefixMethod ===
public void testGetPrefixMethod1() throws Exception {
Object action = new PrefixMethodInvocationUtilTest.Action1();
@@ -49,7 +49,7 @@ public void testGetPrefixMethod1() throws Exception {
assertNotNull(m);
assertEquals(m.getName(), "prepareSave");
}
-
+
public void testGetPrefixMethod2() throws Exception {
Object action = new PrefixMethodInvocationUtilTest.Action1();
Method m = PrefixMethodInvocationUtil.getPrefixedMethod(
@@ -57,7 +57,7 @@ public void testGetPrefixMethod2() throws Exception {
assertNotNull(m);
assertEquals(m.getName(), "prepareSubmit");
}
-
+
public void testGetPrefixMethod3() throws Exception {
Object action = new PrefixMethodInvocationUtilTest.Action1();
Method m = PrefixMethodInvocationUtil.getPrefixedMethod(
@@ -65,102 +65,102 @@ public void testGetPrefixMethod3() throws Exception {
assertNotNull(m);
assertEquals(m.getName(), "prepareDoCancel");
}
-
+
public void testGetPrefixMethod4() throws Exception {
Object action = new PrefixMethodInvocationUtilTest.Action1();
Method m = PrefixMethodInvocationUtil.getPrefixedMethod(
new String[] { "prepare", "prepareDo" }, "noSuchMethod", action);
assertNull(m);
}
-
+
public void testGetPrefixMethod5() throws Exception {
Object action = new PrefixMethodInvocationUtilTest.Action1();
Method m = PrefixMethodInvocationUtil.getPrefixedMethod(
new String[] { "noSuchPrefix", "noSuchPrefixDo" }, "save", action);
assertNull(m);
}
-
-
- // === invokePrefixMethod ===
+
+
+ // === invokePrefixMethod ===
public void testInvokePrefixMethod1() throws Exception {
PrefixMethodInvocationUtilTest.Action1 action = new PrefixMethodInvocationUtilTest.Action1();
-
+
// ActionProxy
- ActionProxy mockActionProxy = (ActionProxy) createMock(ActionProxy.class);
-
+ ActionProxy mockActionProxy = (ActionProxy) createMock(ActionProxy.class);
+
expect(mockActionProxy.getMethod()).andStubReturn("save");
-
-
+
+
// ActionInvocation
ActionInvocation mockActionInvocation = (ActionInvocation) createMock(ActionInvocation.class);
-
+
expect(mockActionInvocation.getAction()).andStubReturn(action);
expect(mockActionInvocation.getProxy()).andStubReturn(mockActionProxy);
-
+
replay(mockActionProxy, mockActionInvocation);
-
-
+
+
PrefixMethodInvocationUtil.invokePrefixMethod(
- mockActionInvocation,
+ mockActionInvocation,
new String[] { "prepare", "prepareDo" });
-
+
assertTrue(action.prepareSaveInvoked);
assertFalse(action.prepareDoSaveInvoked);
assertFalse(action.prepareSubmitInvoked);
assertFalse(action.prepareDoCancelInvoked);
-
+
verify(mockActionProxy, mockActionInvocation);
}
-
+
public void testInvokePrefixMethod2() throws Exception {
PrefixMethodInvocationUtilTest.Action1 action = new PrefixMethodInvocationUtilTest.Action1();
-
+
// ActionProxy
- ActionProxy mockActionProxy = (ActionProxy) createMock(ActionProxy.class);
+ ActionProxy mockActionProxy = (ActionProxy) createMock(ActionProxy.class);
expect(mockActionProxy.getMethod()).andStubReturn("submit");
-
-
+
+
// ActionInvocation
ActionInvocation mockActionInvocation = (ActionInvocation) createMock(ActionInvocation.class);
-
+
expect(mockActionInvocation.getAction()).andStubReturn(action);
expect(mockActionInvocation.getProxy()).andStubReturn(mockActionProxy);
-
+
replay(mockActionProxy, mockActionInvocation);
-
+
PrefixMethodInvocationUtil.invokePrefixMethod(
- mockActionInvocation,
+ mockActionInvocation,
new String[] { "prepare", "prepareDo" });
-
-
+
+
assertFalse(action.prepareSaveInvoked);
assertFalse(action.prepareDoSaveInvoked);
assertTrue(action.prepareSubmitInvoked);
assertFalse(action.prepareDoCancelInvoked);
-
+
verify(mockActionProxy, mockActionInvocation);
}
-
+
public void testInvokePrefixMethod3() throws Exception {
PrefixMethodInvocationUtilTest.Action1 action = new PrefixMethodInvocationUtilTest.Action1();
-
+
// ActionProxy
- ActionProxy mockActionProxy = (ActionProxy) createMock(ActionProxy.class);
-
+ ActionProxy mockActionProxy = (ActionProxy) createMock(ActionProxy.class);
+
expect(mockActionProxy.getMethod()).andStubReturn("cancel");
-
+
// ActionInvocation
ActionInvocation mockActionInvocation = (ActionInvocation) createMock(ActionInvocation.class);
-
+
expect(mockActionInvocation.getAction()).andStubReturn(action);
expect(mockActionInvocation.getProxy()).andStubReturn(mockActionProxy);
-
+
replay(mockActionProxy, mockActionInvocation);
-
+
PrefixMethodInvocationUtil.invokePrefixMethod(
- mockActionInvocation,
+ mockActionInvocation,
new String[] { "prepare", "prepareDo" });
-
+
assertFalse(action.prepareSaveInvoked);
assertFalse(action.prepareDoSaveInvoked);
@@ -169,84 +169,84 @@ public void testInvokePrefixMethod3() throws Exception {
verify(mockActionProxy, mockActionInvocation);
}
-
+
public void testInvokePrefixMethod4() throws Exception {
PrefixMethodInvocationUtilTest.Action1 action = new PrefixMethodInvocationUtilTest.Action1();
-
+
// ActionProxy
- ActionProxy mockActionProxy = (ActionProxy) createMock(ActionProxy.class);
-
+ ActionProxy mockActionProxy = (ActionProxy) createMock(ActionProxy.class);
+
expect(mockActionProxy.getMethod()).andStubReturn("noSuchMethod");
-
-
+
+
// ActionInvocation
ActionInvocation mockActionInvocation = (ActionInvocation) createMock(ActionInvocation.class);
-
+
expect(mockActionInvocation.getAction()).andStubReturn(action);
expect(mockActionInvocation.getProxy()).andStubReturn(mockActionProxy);
-
+
replay(mockActionProxy, mockActionInvocation);
-
-
+
+
PrefixMethodInvocationUtil.invokePrefixMethod(
- mockActionInvocation,
+ mockActionInvocation,
new String[] { "prepare", "prepareDo" });
-
+
assertFalse(action.prepareSaveInvoked);
assertFalse(action.prepareDoSaveInvoked);
assertFalse(action.prepareSubmitInvoked);
assertFalse(action.prepareDoCancelInvoked);
-
+
verify(mockActionProxy, mockActionInvocation);
}
-
+
public void testInvokePrefixMethod5() throws Exception {
PrefixMethodInvocationUtilTest.Action1 action = new PrefixMethodInvocationUtilTest.Action1();
-
+
// ActionProxy
- ActionProxy mockActionProxy = (ActionProxy) createMock(ActionProxy.class);
-
+ ActionProxy mockActionProxy = (ActionProxy) createMock(ActionProxy.class);
+
expect(mockActionProxy.getMethod()).andStubReturn("save");
-
-
+
+
// ActionInvocation
ActionInvocation mockActionInvocation = (ActionInvocation) createMock(ActionInvocation.class);
-
+
expect(mockActionInvocation.getAction()).andStubReturn(action);
expect(mockActionInvocation.getProxy()).andStubReturn(mockActionProxy);
replay(mockActionProxy, mockActionInvocation);
-
-
+
+
PrefixMethodInvocationUtil.invokePrefixMethod(
- mockActionInvocation,
+ mockActionInvocation,
new String[] { "noSuchPrefix", "noSuchPrefixDo" });
-
+
assertFalse(action.prepareSaveInvoked);
assertFalse(action.prepareDoSaveInvoked);
assertFalse(action.prepareSubmitInvoked);
assertFalse(action.prepareDoCancelInvoked);
-
+
verify(mockActionProxy, mockActionInvocation);
}
-
-
-
-
+
+
+
+
/**
* Just a simple object for testing method invocation on its methods.
- *
+ *
* @author tm_jee
* @version $Date$ $Id$
*/
public static class Action1 {
-
+
boolean prepareSaveInvoked = false;
boolean prepareDoSaveInvoked = false;
boolean prepareSubmitInvoked = false;
boolean prepareDoCancelInvoked = false;
-
-
+
+
// save
public void prepareSave() {
prepareSaveInvoked = true;
@@ -254,12 +254,12 @@ public void prepareSave() {
public void prepareDoSave() {
prepareDoSaveInvoked = true;
}
-
+
// submit
public void prepareSubmit() {
prepareSubmitInvoked = true;
}
-
+
// cancel
public void prepareDoCancel() {
prepareDoCancelInvoked = true;
diff --git a/core/src/test/java/com/opensymphony/xwork2/interceptor/PrepareInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/PrepareInterceptorTest.java
similarity index 67%
rename from core/src/test/java/com/opensymphony/xwork2/interceptor/PrepareInterceptorTest.java
rename to core/src/test/java/org/apache/struts2/interceptor/PrepareInterceptorTest.java
index fd6b432e9b..85e62126de 100644
--- a/core/src/test/java/com/opensymphony/xwork2/interceptor/PrepareInterceptorTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/PrepareInterceptorTest.java
@@ -16,14 +16,23 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.interceptor;
+package org.apache.struts2.interceptor;
import com.mockobjects.dynamic.Mock;
-import com.opensymphony.xwork2.*;
-import com.opensymphony.xwork2.mock.MockActionInvocation;
-import com.opensymphony.xwork2.mock.MockActionProxy;
import junit.framework.TestCase;
-import static org.easymock.EasyMock.*;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.Preparable;
+import org.apache.struts2.SimpleFooAction;
+import org.apache.struts2.mock.MockActionInvocation;
+import org.apache.struts2.mock.MockActionProxy;
+
+import static org.easymock.EasyMock.createMock;
+import static org.easymock.EasyMock.expect;
+import static org.easymock.EasyMock.expectLastCall;
+import static org.easymock.EasyMock.replay;
+import static org.easymock.EasyMock.verify;
/**
@@ -36,7 +45,7 @@ public class PrepareInterceptorTest extends TestCase {
private Mock mock;
private PrepareInterceptor interceptor;
-
+
ActionInterface mockAction;
public void testPrepareCalledDefault() throws Exception {
@@ -105,66 +114,65 @@ public void testNoPrepareCalled() throws Exception {
interceptor.doIntercept(mai);
}
-
+
public void testPrefixInvocation1() throws Exception {
-
-
-
- ActionProxy mockActionProxy = (ActionProxy) createMock(ActionProxy.class);
-
- expect(mockActionProxy.getMethod()).andStubReturn("submit");
-
-
- ActionInvocation mockActionInvocation = (ActionInvocation) createMock(ActionInvocation.class);
-
- expect(mockActionInvocation.getAction()).andStubReturn(mockAction);
- expect(mockActionInvocation.invoke()).andStubReturn("okok");
- expect(mockActionInvocation.getProxy()).andStubReturn(mockActionProxy);
-
+
+
+ ActionProxy mockActionProxy = createMock(ActionProxy.class);
+
+ expect(mockActionProxy.getMethod()).andStubReturn("submit");
+
+
+ ActionInvocation mockActionInvocation = createMock(ActionInvocation.class);
+
+ expect(mockActionInvocation.getAction()).andStubReturn(mockAction);
+ expect(mockActionInvocation.invoke()).andStubReturn("okok");
+ expect(mockActionInvocation.getProxy()).andStubReturn(mockActionProxy);
+
mockAction.prepareSubmit();
expectLastCall().times(1);
- mockAction.prepare();
+ mockAction.prepare();
expectLastCall().times(1);
-
- replay(mockAction, mockActionProxy, mockActionInvocation);
-
- PrepareInterceptor interceptor = new PrepareInterceptor();
- String result = interceptor.intercept(mockActionInvocation);
-
- assertEquals("okok", result);
-
- verify(mockAction, mockActionProxy, mockActionInvocation);
+
+ replay(mockAction, mockActionProxy, mockActionInvocation);
+
+ PrepareInterceptor interceptor = new PrepareInterceptor();
+ String result = interceptor.intercept(mockActionInvocation);
+
+ assertEquals("okok", result);
+
+ verify(mockAction, mockActionProxy, mockActionInvocation);
}
-
+
public void testPrefixInvocation2() throws Exception {
-
- ActionProxy mockActionProxy = (ActionProxy) createMock(ActionProxy.class);
-
- expect(mockActionProxy.getMethod()).andStubReturn("save");
-
-
- ActionInvocation mockActionInvocation = (ActionInvocation) createMock(ActionInvocation.class);
-
- expect(mockActionInvocation.getAction()).andStubReturn(mockAction);
- expect(mockActionInvocation.invoke()).andStubReturn("okok");
- expect(mockActionInvocation.getProxy()).andStubReturn(mockActionProxy);
-
- mockAction.prepare();
- expectLastCall().times(1);
-
+
+ ActionProxy mockActionProxy = createMock(ActionProxy.class);
+
+ expect(mockActionProxy.getMethod()).andStubReturn("save");
+
+
+ ActionInvocation mockActionInvocation = createMock(ActionInvocation.class);
+
+ expect(mockActionInvocation.getAction()).andStubReturn(mockAction);
+ expect(mockActionInvocation.invoke()).andStubReturn("okok");
+ expect(mockActionInvocation.getProxy()).andStubReturn(mockActionProxy);
+
+ mockAction.prepare();
+ expectLastCall().times(1);
+
replay(mockAction, mockActionProxy, mockActionInvocation);
-
- PrepareInterceptor interceptor = new PrepareInterceptor();
- String result = interceptor.intercept(mockActionInvocation);
-
- assertEquals("okok", result);
-
- verify(mockAction, mockActionProxy, mockActionInvocation);
+
+ PrepareInterceptor interceptor = new PrepareInterceptor();
+ String result = interceptor.intercept(mockActionInvocation);
+
+ assertEquals("okok", result);
+
+ verify(mockAction, mockActionProxy, mockActionInvocation);
}
-
- public void testPrepareThrowException() throws Exception {
+
+ public void testPrepareThrowException() {
MockActionInvocation mai = new MockActionInvocation();
MockActionProxy mockActionProxy = new MockActionProxy();
mockActionProxy.setMethod("submit");
@@ -187,9 +195,9 @@ public void testPrepareThrowException() throws Exception {
protected void setUp() throws Exception {
mock = new Mock(ActionInterface.class);
interceptor = new PrepareInterceptor();
- mockAction = (ActionInterface) createMock(ActionInterface.class);
+ mockAction = createMock(ActionInterface.class);
}
-
+
@Override
protected void tearDown() throws Exception {
@@ -197,16 +205,15 @@ protected void tearDown() throws Exception {
mock.verify();
}
-
-
+
/**
- * Simple interface to test prefix action invocation
+ * Simple interface to test prefix action invocation
* eg. prepareSubmit(), prepareSave() etc.
*
* @author tm_jee
*/
public interface ActionInterface extends Action, Preparable {
- void prepareSubmit() throws Exception;
+ void prepareSubmit() throws Exception;
}
}
diff --git a/core/src/test/java/com/opensymphony/xwork2/interceptor/ScopedModelDrivenInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/ScopedModelDrivenInterceptorTest.java
similarity index 91%
rename from core/src/test/java/com/opensymphony/xwork2/interceptor/ScopedModelDrivenInterceptorTest.java
rename to core/src/test/java/org/apache/struts2/interceptor/ScopedModelDrivenInterceptorTest.java
index 577f663214..f9e2777aca 100644
--- a/core/src/test/java/com/opensymphony/xwork2/interceptor/ScopedModelDrivenInterceptorTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/ScopedModelDrivenInterceptorTest.java
@@ -16,19 +16,19 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.interceptor;
-
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ObjectFactory;
-import com.opensymphony.xwork2.ProxyObjectFactory;
-import com.opensymphony.xwork2.SimpleAction;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.mock.MockActionInvocation;
-import com.opensymphony.xwork2.mock.MockActionProxy;
-import com.opensymphony.xwork2.test.Equidae;
-import com.opensymphony.xwork2.test.User;
+package org.apache.struts2.interceptor;
+
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ObjectFactory;
+import org.apache.struts2.ProxyObjectFactory;
+import org.apache.struts2.SimpleAction;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.mock.MockActionInvocation;
+import org.apache.struts2.mock.MockActionProxy;
+import org.apache.struts2.test.Equidae;
+import org.apache.struts2.test.User;
import java.util.HashMap;
import java.util.Map;
@@ -85,7 +85,7 @@ public void testScopedModelDrivenAction() throws Exception {
assertNotNull(action.getModel());
assertNotNull(action.getScopeKey());
- assertEquals("com.opensymphony.xwork2.test.User", action.getScopeKey());
+ assertEquals("org.apache.struts2.test.User", action.getScopeKey());
Object model = ActionContext.getContext().get(action.getScopeKey());
assertNotNull(model);
@@ -94,7 +94,7 @@ public void testScopedModelDrivenAction() throws Exception {
public void testScopedModelDrivenActionWithSetClassName() throws Exception {
inter.setScope("request");
- inter.setClassName("com.opensymphony.xwork2.test.Equidae");
+ inter.setClassName("org.apache.struts2.test.Equidae");
inter.setName("queen");
ScopedModelDriven action = new MyEquidaeScopedModelDrivenAction();
diff --git a/core/src/test/java/org/apache/struts2/interceptor/ServletConfigInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/ServletConfigInterceptorTest.java
index dd57019ac5..e1238709c0 100644
--- a/core/src/test/java/org/apache/struts2/interceptor/ServletConfigInterceptorTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/ServletConfigInterceptorTest.java
@@ -18,9 +18,9 @@
*/
package org.apache.struts2.interceptor;
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.mock.MockActionInvocation;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.mock.MockActionInvocation;
import org.apache.struts2.StrutsInternalTestCase;
import org.apache.struts2.StrutsStatics;
import org.apache.struts2.action.ApplicationAware;
diff --git a/core/src/test/java/com/opensymphony/xwork2/interceptor/StaticParametersInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/StaticParametersInterceptorTest.java
similarity index 95%
rename from core/src/test/java/com/opensymphony/xwork2/interceptor/StaticParametersInterceptorTest.java
rename to core/src/test/java/org/apache/struts2/interceptor/StaticParametersInterceptorTest.java
index e393ce2cc6..8b54c52c93 100644
--- a/core/src/test/java/com/opensymphony/xwork2/interceptor/StaticParametersInterceptorTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/StaticParametersInterceptorTest.java
@@ -16,16 +16,16 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.interceptor;
+package org.apache.struts2.interceptor;
import com.mockobjects.dynamic.Mock;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.SimpleFooAction;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.config.entities.Parameterizable;
-import com.opensymphony.xwork2.mock.MockActionInvocation;
-import com.opensymphony.xwork2.mock.MockActionProxy;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.SimpleFooAction;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.config.entities.Parameterizable;
+import org.apache.struts2.mock.MockActionInvocation;
+import org.apache.struts2.mock.MockActionProxy;
import org.apache.struts2.dispatcher.HttpParameters;
import java.util.HashMap;
diff --git a/core/src/test/java/org/apache/struts2/interceptor/StrutsConversionErrorInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/StrutsConversionErrorInterceptorTest.java
index 17d5fb4a21..399774c6a2 100644
--- a/core/src/test/java/org/apache/struts2/interceptor/StrutsConversionErrorInterceptorTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/StrutsConversionErrorInterceptorTest.java
@@ -20,12 +20,12 @@
import com.mockobjects.dynamic.C;
import com.mockobjects.dynamic.Mock;
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.ActionSupport;
-import com.opensymphony.xwork2.conversion.impl.ConversionData;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.ActionSupport;
+import org.apache.struts2.conversion.impl.ConversionData;
+import org.apache.struts2.util.ValueStack;
import org.apache.struts2.StrutsInternalTestCase;
import java.util.HashMap;
diff --git a/core/src/test/java/org/apache/struts2/interceptor/TokenInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/TokenInterceptorTest.java
index d6d47910a4..2fd00872f2 100644
--- a/core/src/test/java/org/apache/struts2/interceptor/TokenInterceptorTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/TokenInterceptorTest.java
@@ -18,10 +18,10 @@
*/
package org.apache.struts2.interceptor;
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionProxy;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.util.ValueStack;
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.StrutsInternalTestCase;
import org.apache.struts2.TestConfigurationProvider;
diff --git a/core/src/test/java/org/apache/struts2/interceptor/TokenSessionStoreInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/TokenSessionStoreInterceptorTest.java
index d02c8703ff..9ca1006349 100644
--- a/core/src/test/java/org/apache/struts2/interceptor/TokenSessionStoreInterceptorTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/TokenSessionStoreInterceptorTest.java
@@ -20,8 +20,8 @@
import org.apache.struts2.TestConfigurationProvider;
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionProxy;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionProxy;
/**
* Unit test for {@link TokenSessionStoreInterceptor}.
diff --git a/core/src/test/java/com/opensymphony/xwork2/interceptor/ValidationErrorAwareTest.java b/core/src/test/java/org/apache/struts2/interceptor/ValidationErrorAwareTest.java
similarity index 86%
rename from core/src/test/java/com/opensymphony/xwork2/interceptor/ValidationErrorAwareTest.java
rename to core/src/test/java/org/apache/struts2/interceptor/ValidationErrorAwareTest.java
index 642fc348f6..268359c779 100644
--- a/core/src/test/java/com/opensymphony/xwork2/interceptor/ValidationErrorAwareTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/ValidationErrorAwareTest.java
@@ -16,18 +16,18 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.interceptor;
-
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.ActionProxy;
-import com.opensymphony.xwork2.ObjectFactory;
-import com.opensymphony.xwork2.Validateable;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.config.entities.InterceptorConfig;
-import com.opensymphony.xwork2.validator.ValidationInterceptor;
+package org.apache.struts2.interceptor;
+
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.ObjectFactory;
+import org.apache.struts2.Validateable;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.config.entities.InterceptorConfig;
+import org.apache.struts2.validator.ValidationInterceptor;
import org.junit.Assert;
import org.easymock.EasyMock;
diff --git a/core/src/test/java/com/opensymphony/xwork2/interceptor/ValidationInterceptorPrefixMethodInvocationTest.java b/core/src/test/java/org/apache/struts2/interceptor/ValidationInterceptorPrefixMethodInvocationTest.java
similarity index 85%
rename from core/src/test/java/com/opensymphony/xwork2/interceptor/ValidationInterceptorPrefixMethodInvocationTest.java
rename to core/src/test/java/org/apache/struts2/interceptor/ValidationInterceptorPrefixMethodInvocationTest.java
index 5799830e51..6473514461 100644
--- a/core/src/test/java/com/opensymphony/xwork2/interceptor/ValidationInterceptorPrefixMethodInvocationTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/ValidationInterceptorPrefixMethodInvocationTest.java
@@ -16,18 +16,18 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.interceptor;
-
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.ActionProxy;
-import com.opensymphony.xwork2.ObjectFactory;
-import com.opensymphony.xwork2.Validateable;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.config.entities.InterceptorConfig;
-import com.opensymphony.xwork2.validator.ValidationInterceptor;
+package org.apache.struts2.interceptor;
+
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.ObjectFactory;
+import org.apache.struts2.Validateable;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.config.entities.InterceptorConfig;
+import org.apache.struts2.validator.ValidationInterceptor;
import org.easymock.EasyMock;
import java.util.HashMap;
diff --git a/core/src/test/java/com/opensymphony/xwork2/interceptor/annotations/AnnotatedAction.java b/core/src/test/java/org/apache/struts2/interceptor/annotations/AnnotatedAction.java
similarity index 92%
rename from core/src/test/java/com/opensymphony/xwork2/interceptor/annotations/AnnotatedAction.java
rename to core/src/test/java/org/apache/struts2/interceptor/annotations/AnnotatedAction.java
index 2ae01d9f8a..6ac578ae65 100644
--- a/core/src/test/java/com/opensymphony/xwork2/interceptor/annotations/AnnotatedAction.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/annotations/AnnotatedAction.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.interceptor.annotations;
+package org.apache.struts2.interceptor.annotations;
-import com.opensymphony.xwork2.Action;
+import org.apache.struts2.Action;
/**
* @author Zsolt Szasz, zsolt at lorecraft dot com
@@ -31,17 +31,17 @@ public String before() {
log = log + "before";
return null;
}
-
+
public String execute() {
log = log + "-execute";
return Action.SUCCESS;
}
-
+
@BeforeResult
public void beforeResult() throws Exception {
log = log +"-beforeResult";
}
-
+
@After(priority=5)
public void after() {
log = log + "-after";
diff --git a/core/src/test/java/com/opensymphony/xwork2/interceptor/annotations/AnnotationWorkflowInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/annotations/AnnotationWorkflowInterceptorTest.java
similarity index 82%
rename from core/src/test/java/com/opensymphony/xwork2/interceptor/annotations/AnnotationWorkflowInterceptorTest.java
rename to core/src/test/java/org/apache/struts2/interceptor/annotations/AnnotationWorkflowInterceptorTest.java
index 425bdeef1b..37a163a062 100644
--- a/core/src/test/java/com/opensymphony/xwork2/interceptor/annotations/AnnotationWorkflowInterceptorTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/annotations/AnnotationWorkflowInterceptorTest.java
@@ -16,25 +16,25 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.interceptor.annotations;
+package org.apache.struts2.interceptor.annotations;
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionProxy;
-import com.opensymphony.xwork2.ActionProxyFactory;
-import com.opensymphony.xwork2.DefaultActionProxyFactory;
-import com.opensymphony.xwork2.ObjectFactory;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.config.Configuration;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.config.ConfigurationProvider;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.config.entities.InterceptorMapping;
-import com.opensymphony.xwork2.config.entities.PackageConfig;
-import com.opensymphony.xwork2.config.entities.ResultConfig;
-import com.opensymphony.xwork2.config.providers.XmlConfigurationProvider;
-import com.opensymphony.xwork2.inject.ContainerBuilder;
-import com.opensymphony.xwork2.mock.MockResult;
-import com.opensymphony.xwork2.util.location.LocatableProperties;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.ActionProxyFactory;
+import org.apache.struts2.DefaultActionProxyFactory;
+import org.apache.struts2.ObjectFactory;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.config.Configuration;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.config.ConfigurationProvider;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.config.entities.InterceptorMapping;
+import org.apache.struts2.config.entities.PackageConfig;
+import org.apache.struts2.config.entities.ResultConfig;
+import org.apache.struts2.config.providers.XmlConfigurationProvider;
+import org.apache.struts2.inject.ContainerBuilder;
+import org.apache.struts2.mock.MockResult;
+import org.apache.struts2.util.location.LocatableProperties;
import org.apache.struts2.config.StrutsXmlConfigurationProvider;
import java.util.Collections;
diff --git a/core/src/test/java/com/opensymphony/xwork2/interceptor/annotations/BaseAnnotatedAction.java b/core/src/test/java/org/apache/struts2/interceptor/annotations/BaseAnnotatedAction.java
similarity index 96%
rename from core/src/test/java/com/opensymphony/xwork2/interceptor/annotations/BaseAnnotatedAction.java
rename to core/src/test/java/org/apache/struts2/interceptor/annotations/BaseAnnotatedAction.java
index 1fecac8922..08da9821e0 100644
--- a/core/src/test/java/com/opensymphony/xwork2/interceptor/annotations/BaseAnnotatedAction.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/annotations/BaseAnnotatedAction.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.interceptor.annotations;
+package org.apache.struts2.interceptor.annotations;
/**
* @author Zsolt Szasz, zsolt at lorecraft dot com
@@ -25,7 +25,7 @@
public class BaseAnnotatedAction implements InterfaceAnnotatedAction {
protected String log = "";
-
+
@Before
public String baseBefore() {
log = log + "baseBefore-";
diff --git a/core/src/test/java/com/opensymphony/xwork2/interceptor/annotations/InterfaceAnnotatedAction.java b/core/src/test/java/org/apache/struts2/interceptor/annotations/InterfaceAnnotatedAction.java
similarity index 94%
rename from core/src/test/java/com/opensymphony/xwork2/interceptor/annotations/InterfaceAnnotatedAction.java
rename to core/src/test/java/org/apache/struts2/interceptor/annotations/InterfaceAnnotatedAction.java
index efae162942..95ad2fcaac 100644
--- a/core/src/test/java/com/opensymphony/xwork2/interceptor/annotations/InterfaceAnnotatedAction.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/annotations/InterfaceAnnotatedAction.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.interceptor.annotations;
+package org.apache.struts2.interceptor.annotations;
public interface InterfaceAnnotatedAction {
@Before
diff --git a/core/src/test/java/com/opensymphony/xwork2/interceptor/annotations/ShortcircuitedAction.java b/core/src/test/java/org/apache/struts2/interceptor/annotations/ShortcircuitedAction.java
similarity index 86%
rename from core/src/test/java/com/opensymphony/xwork2/interceptor/annotations/ShortcircuitedAction.java
rename to core/src/test/java/org/apache/struts2/interceptor/annotations/ShortcircuitedAction.java
index a076016c7b..6026eedc8f 100644
--- a/core/src/test/java/com/opensymphony/xwork2/interceptor/annotations/ShortcircuitedAction.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/annotations/ShortcircuitedAction.java
@@ -16,21 +16,21 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.interceptor.annotations;
+package org.apache.struts2.interceptor.annotations;
-import com.opensymphony.xwork2.Action;
+import org.apache.struts2.Action;
/**
* @author Zsolt Szasz, zsolt at lorecraft dot com
* @author Rainer Hermanns
*/
-public class ShortcircuitedAction extends BaseAnnotatedAction {
+public class ShortcircuitedAction extends BaseAnnotatedAction {
@Before(priority=5)
public String before() {
log = log + "before";
return "shortcircuit";
}
-
+
public String execute() {
log = log + "-execute-";
return Action.SUCCESS;
diff --git a/core/src/test/java/org/apache/struts2/interceptor/exec/StrutsBackgroundProcessTest.java b/core/src/test/java/org/apache/struts2/interceptor/exec/StrutsBackgroundProcessTest.java
index 3b1617bbde..ad3409bd1b 100644
--- a/core/src/test/java/org/apache/struts2/interceptor/exec/StrutsBackgroundProcessTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/exec/StrutsBackgroundProcessTest.java
@@ -20,7 +20,6 @@
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
-import java.io.NotSerializableException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.security.SecureRandom;
@@ -39,9 +38,9 @@
import org.apache.struts2.StrutsInternalTestCase;
import org.springframework.mock.web.MockHttpServletRequest;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.mock.MockActionInvocation;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.mock.MockActionInvocation;
import static org.awaitility.Awaitility.await;
diff --git a/core/src/test/java/org/apache/struts2/interceptor/httpmethod/HttpMethodInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/httpmethod/HttpMethodInterceptorTest.java
index 98e78c3fa5..8c7aa3cabc 100644
--- a/core/src/test/java/org/apache/struts2/interceptor/httpmethod/HttpMethodInterceptorTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/httpmethod/HttpMethodInterceptorTest.java
@@ -18,9 +18,9 @@
*/
package org.apache.struts2.interceptor.httpmethod;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.mock.MockActionInvocation;
-import com.opensymphony.xwork2.mock.MockActionProxy;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.mock.MockActionInvocation;
+import org.apache.struts2.mock.MockActionProxy;
import org.apache.struts2.HttpMethodsTestAction;
import org.apache.struts2.StrutsInternalTestCase;
import org.apache.struts2.TestAction;
diff --git a/core/src/test/java/org/apache/struts2/interceptor/parameter/ParametersInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/parameter/ParametersInterceptorTest.java
index b5caa3d265..be23fef5d0 100644
--- a/core/src/test/java/org/apache/struts2/interceptor/parameter/ParametersInterceptorTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/parameter/ParametersInterceptorTest.java
@@ -18,30 +18,30 @@
*/
package org.apache.struts2.interceptor.parameter;
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionProxy;
-import com.opensymphony.xwork2.ActionSupport;
-import com.opensymphony.xwork2.ModelDrivenAction;
-import com.opensymphony.xwork2.SimpleAction;
-import com.opensymphony.xwork2.TestBean;
-import com.opensymphony.xwork2.TextProvider;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.config.providers.MockConfigurationProvider;
-import com.opensymphony.xwork2.config.providers.StrutsDefaultConfigurationProvider;
-import com.opensymphony.xwork2.config.providers.XmlConfigurationProvider;
-import com.opensymphony.xwork2.conversion.impl.XWorkConverter;
-import com.opensymphony.xwork2.interceptor.ValidationAware;
-import com.opensymphony.xwork2.mock.MockActionInvocation;
-import com.opensymphony.xwork2.ognl.OgnlValueStack;
-import com.opensymphony.xwork2.ognl.OgnlValueStackFactory;
-import com.opensymphony.xwork2.ognl.SecurityMemberAccess;
-import com.opensymphony.xwork2.ognl.accessor.CompoundRootAccessor;
-import com.opensymphony.xwork2.ognl.accessor.RootAccessor;
-import com.opensymphony.xwork2.util.ValueStack;
-import com.opensymphony.xwork2.util.ValueStackFactory;
-import com.opensymphony.xwork2.util.reflection.ReflectionContextState;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.ActionSupport;
+import org.apache.struts2.ModelDrivenAction;
+import org.apache.struts2.SimpleAction;
+import org.apache.struts2.TestBean;
+import org.apache.struts2.TextProvider;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.config.providers.MockConfigurationProvider;
+import org.apache.struts2.config.providers.StrutsDefaultConfigurationProvider;
+import org.apache.struts2.config.providers.XmlConfigurationProvider;
+import org.apache.struts2.conversion.impl.XWorkConverter;
+import org.apache.struts2.interceptor.ValidationAware;
+import org.apache.struts2.mock.MockActionInvocation;
+import org.apache.struts2.ognl.OgnlValueStack;
+import org.apache.struts2.ognl.OgnlValueStackFactory;
+import org.apache.struts2.ognl.SecurityMemberAccess;
+import org.apache.struts2.ognl.accessor.CompoundRootAccessor;
+import org.apache.struts2.ognl.accessor.RootAccessor;
+import org.apache.struts2.util.ValueStack;
+import org.apache.struts2.util.ValueStackFactory;
+import org.apache.struts2.util.reflection.ReflectionContextState;
import ognl.OgnlContext;
import org.apache.struts2.action.NoParameters;
import org.apache.struts2.action.ParameterNameAware;
diff --git a/core/src/test/java/org/apache/struts2/interceptor/parameter/StrutsParameterAnnotationTest.java b/core/src/test/java/org/apache/struts2/interceptor/parameter/StrutsParameterAnnotationTest.java
index 53fa147170..55e060da93 100644
--- a/core/src/test/java/org/apache/struts2/interceptor/parameter/StrutsParameterAnnotationTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/parameter/StrutsParameterAnnotationTest.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts2.interceptor.parameter;
-import com.opensymphony.xwork2.security.AcceptedPatternsChecker;
-import com.opensymphony.xwork2.security.NotExcludedAcceptedPatternsChecker;
+import org.apache.struts2.security.AcceptedPatternsChecker;
+import org.apache.struts2.security.NotExcludedAcceptedPatternsChecker;
import org.apache.commons.lang3.ClassUtils;
import org.apache.struts2.dispatcher.HttpParameters;
import org.apache.struts2.dispatcher.Parameter;
diff --git a/core/src/test/java/org/apache/struts2/interceptor/validation/AnnotationValidationInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/validation/AnnotationValidationInterceptorTest.java
index ba70d88f33..5ea2c89cde 100644
--- a/core/src/test/java/org/apache/struts2/interceptor/validation/AnnotationValidationInterceptorTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/validation/AnnotationValidationInterceptorTest.java
@@ -19,10 +19,10 @@
package org.apache.struts2.interceptor.validation;
import com.mockobjects.dynamic.Mock;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.ActionProxy;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.config.entities.ActionConfig;
import org.apache.struts2.StrutsInternalTestCase;
public class AnnotationValidationInterceptorTest extends StrutsInternalTestCase {
diff --git a/plugins/spring/src/test/java/com/opensymphony/xwork2/mock/DummyTextProvider.java b/core/src/test/java/org/apache/struts2/mock/DummyTextProvider.java
similarity index 94%
rename from plugins/spring/src/test/java/com/opensymphony/xwork2/mock/DummyTextProvider.java
rename to core/src/test/java/org/apache/struts2/mock/DummyTextProvider.java
index 01bc270a05..9694a0c5f0 100644
--- a/plugins/spring/src/test/java/com/opensymphony/xwork2/mock/DummyTextProvider.java
+++ b/core/src/test/java/org/apache/struts2/mock/DummyTextProvider.java
@@ -16,10 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
- package com.opensymphony.xwork2.mock;
+ package org.apache.struts2.mock;
-import com.opensymphony.xwork2.TextProvider;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.TextProvider;
+import org.apache.struts2.util.ValueStack;
import java.util.List;
import java.util.ResourceBundle;
diff --git a/core/src/test/java/com/opensymphony/xwork2/mock/InjectableAction.java b/core/src/test/java/org/apache/struts2/mock/InjectableAction.java
similarity index 89%
rename from core/src/test/java/com/opensymphony/xwork2/mock/InjectableAction.java
rename to core/src/test/java/org/apache/struts2/mock/InjectableAction.java
index 9ef1d35ba6..1c03ff9f7e 100644
--- a/core/src/test/java/com/opensymphony/xwork2/mock/InjectableAction.java
+++ b/core/src/test/java/org/apache/struts2/mock/InjectableAction.java
@@ -16,10 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
- package com.opensymphony.xwork2.mock;
+ package org.apache.struts2.mock;
-import com.opensymphony.xwork2.TextProvider;
-import com.opensymphony.xwork2.inject.Inject;
+import org.apache.struts2.TextProvider;
+import org.apache.struts2.inject.Inject;
public class InjectableAction {
diff --git a/core/src/test/java/com/opensymphony/xwork2/mock/MockLazyInterceptor.java b/core/src/test/java/org/apache/struts2/mock/MockLazyInterceptor.java
similarity index 78%
rename from core/src/test/java/com/opensymphony/xwork2/mock/MockLazyInterceptor.java
rename to core/src/test/java/org/apache/struts2/mock/MockLazyInterceptor.java
index 566a287cbe..bc7dee2da3 100644
--- a/core/src/test/java/com/opensymphony/xwork2/mock/MockLazyInterceptor.java
+++ b/core/src/test/java/org/apache/struts2/mock/MockLazyInterceptor.java
@@ -16,14 +16,13 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.mock;
+package org.apache.struts2.mock;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.SimpleAction;
-import com.opensymphony.xwork2.interceptor.AbstractInterceptor;
-import com.opensymphony.xwork2.interceptor.Interceptor;
-import com.opensymphony.xwork2.interceptor.WithLazyParams;
-import org.junit.Assert;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.SimpleAction;
+import org.apache.struts2.interceptor.AbstractInterceptor;
+import org.apache.struts2.interceptor.Interceptor;
+import org.apache.struts2.interceptor.WithLazyParams;
public class MockLazyInterceptor extends AbstractInterceptor implements WithLazyParams {
diff --git a/core/src/test/java/com/opensymphony/xwork2/ognl/MyCustomMap.java b/core/src/test/java/org/apache/struts2/ognl/MyCustomMap.java
similarity index 96%
rename from core/src/test/java/com/opensymphony/xwork2/ognl/MyCustomMap.java
rename to core/src/test/java/org/apache/struts2/ognl/MyCustomMap.java
index ef56833868..d6dd7b0892 100644
--- a/core/src/test/java/com/opensymphony/xwork2/ognl/MyCustomMap.java
+++ b/core/src/test/java/org/apache/struts2/ognl/MyCustomMap.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.ognl;
+package org.apache.struts2.ognl;
import java.util.HashMap;
diff --git a/core/src/test/java/org/apache/struts2/ognl/OgnlSetPossiblePropertyTest.java b/core/src/test/java/org/apache/struts2/ognl/OgnlSetPossiblePropertyTest.java
index 546d2fd290..d9ae784fd2 100644
--- a/core/src/test/java/org/apache/struts2/ognl/OgnlSetPossiblePropertyTest.java
+++ b/core/src/test/java/org/apache/struts2/ognl/OgnlSetPossiblePropertyTest.java
@@ -18,9 +18,9 @@
*/
package org.apache.struts2.ognl;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.ognl.OgnlValueStack;
-import com.opensymphony.xwork2.util.ValueStackFactory;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.ognl.OgnlValueStack;
+import org.apache.struts2.util.ValueStackFactory;
import ognl.OgnlRuntime;
import org.apache.struts2.StrutsConstants;
diff --git a/core/src/test/java/com/opensymphony/xwork2/ognl/OgnlUtilStrutsTest.java b/core/src/test/java/org/apache/struts2/ognl/OgnlUtilStrutsTest.java
similarity index 94%
rename from core/src/test/java/com/opensymphony/xwork2/ognl/OgnlUtilStrutsTest.java
rename to core/src/test/java/org/apache/struts2/ognl/OgnlUtilStrutsTest.java
index abaa861448..94555a2246 100644
--- a/core/src/test/java/com/opensymphony/xwork2/ognl/OgnlUtilStrutsTest.java
+++ b/core/src/test/java/org/apache/struts2/ognl/OgnlUtilStrutsTest.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.ognl;
+package org.apache.struts2.ognl;
-import com.opensymphony.xwork2.test.TestArrayBean;
+import org.apache.struts2.test.TestArrayBean;
import org.apache.struts2.StrutsInternalTestCase;
public class OgnlUtilStrutsTest extends StrutsInternalTestCase {
diff --git a/core/src/test/java/com/opensymphony/xwork2/ognl/OgnlUtilTest.java b/core/src/test/java/org/apache/struts2/ognl/OgnlUtilTest.java
similarity index 94%
rename from core/src/test/java/com/opensymphony/xwork2/ognl/OgnlUtilTest.java
rename to core/src/test/java/org/apache/struts2/ognl/OgnlUtilTest.java
index a88860836b..0a7b869cd3 100644
--- a/core/src/test/java/com/opensymphony/xwork2/ognl/OgnlUtilTest.java
+++ b/core/src/test/java/org/apache/struts2/ognl/OgnlUtilTest.java
@@ -16,27 +16,27 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.ognl;
-
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.StubTextProvider;
-import com.opensymphony.xwork2.StubValueStack;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.conversion.impl.XWorkConverter;
-import com.opensymphony.xwork2.inject.ContainerBuilder;
-import com.opensymphony.xwork2.interceptor.ChainingInterceptor;
-import com.opensymphony.xwork2.ognl.accessor.CompoundRootAccessor;
-import com.opensymphony.xwork2.ognl.accessor.RootAccessor;
-import com.opensymphony.xwork2.test.StubConfigurationProvider;
-import com.opensymphony.xwork2.test.User;
-import com.opensymphony.xwork2.util.Bar;
-import com.opensymphony.xwork2.util.CompoundRoot;
-import com.opensymphony.xwork2.util.Foo;
-import com.opensymphony.xwork2.util.Owner;
-import com.opensymphony.xwork2.util.ValueStack;
-import com.opensymphony.xwork2.util.location.LocatableProperties;
-import com.opensymphony.xwork2.util.reflection.ReflectionContextState;
+package org.apache.struts2.ognl;
+
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.StubTextProvider;
+import org.apache.struts2.StubValueStack;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.conversion.impl.XWorkConverter;
+import org.apache.struts2.inject.ContainerBuilder;
+import org.apache.struts2.interceptor.ChainingInterceptor;
+import org.apache.struts2.ognl.accessor.CompoundRootAccessor;
+import org.apache.struts2.ognl.accessor.RootAccessor;
+import org.apache.struts2.test.StubConfigurationProvider;
+import org.apache.struts2.test.User;
+import org.apache.struts2.util.Bar;
+import org.apache.struts2.util.CompoundRoot;
+import org.apache.struts2.util.Foo;
+import org.apache.struts2.util.Owner;
+import org.apache.struts2.util.ValueStack;
+import org.apache.struts2.util.location.LocatableProperties;
+import org.apache.struts2.util.reflection.ReflectionContextState;
import ognl.InappropriateExpressionException;
import ognl.MethodFailedException;
import ognl.NoSuchPropertyException;
@@ -48,7 +48,6 @@
import ognl.SimpleNode;
import org.apache.struts2.StrutsConstants;
import org.apache.struts2.StrutsException;
-import org.apache.struts2.ognl.StrutsOgnlGuard;
import java.beans.BeanInfo;
import java.beans.IntrospectionException;
@@ -63,8 +62,8 @@
import java.util.Locale;
import java.util.Map;
-import static com.opensymphony.xwork2.ognl.OgnlCacheFactory.CacheType.BASIC;
-import static com.opensymphony.xwork2.ognl.OgnlCacheFactory.CacheType.LRU;
+import static org.apache.struts2.ognl.OgnlCacheFactory.CacheType.BASIC;
+import static org.apache.struts2.ognl.OgnlCacheFactory.CacheType.LRU;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.Assert.assertThrows;
@@ -203,14 +202,14 @@ public void testExpressionIsCachedIrrespectiveOfItsExecutionStatus() throws Ognl
// Expression which executes with success
try {
- ognlUtil.getValue("@com.opensymphony.xwork2.ognl.OgnlUtilTest@STATIC_FINAL_PUBLIC_ATTRIBUTE", context, foo);
+ ognlUtil.getValue("@org.apache.struts2.ognl.OgnlUtilTest@STATIC_FINAL_PUBLIC_ATTRIBUTE", context, foo);
assertEquals("Successfully executed expression must have been cached", ognlUtil.expressionCacheSize(), 1);
} catch (Exception ex) {
fail("Expression execution should have succeeded here. Exception: " + ex);
}
// Expression which executes with failure
try {
- ognlUtil.getValue("@com.opensymphony.xwork2.ognl.OgnlUtilTest@STATIC_PRIVATE_ATTRIBUTE", context, foo);
+ ognlUtil.getValue("@org.apache.struts2.ognl.OgnlUtilTest@STATIC_PRIVATE_ATTRIBUTE", context, foo);
fail("Expression execution should have failed here");
} catch (Exception ex) {
assertEquals("Expression with failed execution must have been cached nevertheless", ognlUtil.expressionCacheSize(), 2);
@@ -227,14 +226,14 @@ public void testExpressionIsLRUCachedIrrespectiveOfItsExecutionStatus() throws O
// Expression which executes with success
try {
- ognlUtil.getValue("@com.opensymphony.xwork2.ognl.OgnlUtilTest@STATIC_FINAL_PUBLIC_ATTRIBUTE", context, foo);
+ ognlUtil.getValue("@org.apache.struts2.ognl.OgnlUtilTest@STATIC_FINAL_PUBLIC_ATTRIBUTE", context, foo);
assertEquals("Successfully executed expression must have been cached", ognlUtil.expressionCacheSize(), 1);
} catch (Exception ex) {
fail("Expression execution should have succeeded here. Exception: " + ex);
}
// Expression which executes with failure
try {
- ognlUtil.getValue("@com.opensymphony.xwork2.ognl.OgnlUtilTest@STATIC_PRIVATE_ATTRIBUTE", context, foo);
+ ognlUtil.getValue("@org.apache.struts2.ognl.OgnlUtilTest@STATIC_PRIVATE_ATTRIBUTE", context, foo);
fail("Expression execution should have failed here");
} catch (Exception ex) {
assertEquals("Expression with failed execution must have been cached nevertheless", ognlUtil.expressionCacheSize(), 2);
@@ -895,7 +894,7 @@ public void testBeanMapExpressions() throws OgnlException, NoSuchMethodException
Map context = ognlUtil.createDefaultContext(foo);
SecurityMemberAccess sma = (SecurityMemberAccess) ((OgnlContext) context).getMemberAccess();
- sma.useExcludedPackageNames("com.opensymphony.xwork2.ognl");
+ sma.useExcludedPackageNames("org.apache.struts2.ognl");
String expression = "%{\n" +
"(#request.a=#@org.apache.commons.collections.BeanMap@{}) +\n" +
@@ -1163,7 +1162,7 @@ public void testAvoidCallingMethodsOnObjectClass() {
}
assertNotNull(expected);
assertSame(NoSuchPropertyException.class, expected.getClass());
- assertEquals("com.opensymphony.xwork2.util.Foo.class", expected.getMessage());
+ assertEquals("org.apache.struts2.util.Foo.class", expected.getMessage());
}
public void testAllowCallingMethodsOnObjectClassInDevModeTrue() {
@@ -1193,7 +1192,7 @@ public void testExclusionListDevModeOnOff() throws Exception {
resetOgnlUtil(properties);
OgnlException e = assertThrows(OgnlException.class, () -> ognlUtil.getValue("toString", ognlUtil.createDefaultContext(foo), foo, String.class));
- assertThat(e).hasMessageContaining("com.opensymphony.xwork2.util.Foo.toString");
+ assertThat(e).hasMessageContaining("org.apache.struts2.util.Foo.toString");
properties.put(StrutsConstants.STRUTS_DEVMODE, Boolean.FALSE.toString());
resetOgnlUtil(properties);
@@ -1213,7 +1212,7 @@ public void testAvoidCallingMethodsOnObjectClassUpperCased() {
}
assertNotNull(expected);
assertSame(NoSuchPropertyException.class, expected.getClass());
- assertEquals("com.opensymphony.xwork2.util.Foo.Class", expected.getMessage());
+ assertEquals("org.apache.struts2.util.Foo.Class", expected.getMessage());
}
public void testAvoidCallingMethodsOnObjectClassAsMap() {
@@ -1229,7 +1228,7 @@ public void testAvoidCallingMethodsOnObjectClassAsMap() {
}
assertNotNull(expected);
assertSame(NoSuchPropertyException.class, expected.getClass());
- assertEquals("com.opensymphony.xwork2.util.Foo.class", expected.getMessage());
+ assertEquals("org.apache.struts2.util.Foo.class", expected.getMessage());
}
public void testAvoidCallingMethodsOnObjectClassAsMap2() {
@@ -1244,7 +1243,7 @@ public void testAvoidCallingMethodsOnObjectClassAsMap2() {
}
assertNotNull(expected);
assertSame(NoSuchPropertyException.class, expected.getClass());
- assertEquals("com.opensymphony.xwork2.util.Foo.foo", expected.getMessage());
+ assertEquals("org.apache.struts2.util.Foo.foo", expected.getMessage());
}
public void testAvoidCallingMethodsOnObjectClassAsMapWithQuotes() {
@@ -1260,7 +1259,7 @@ public void testAvoidCallingMethodsOnObjectClassAsMapWithQuotes() {
}
assertNotNull(expected);
assertSame(NoSuchPropertyException.class, expected.getClass());
- assertEquals("com.opensymphony.xwork2.util.Foo.class", expected.getMessage());
+ assertEquals("org.apache.struts2.util.Foo.class", expected.getMessage());
}
public void testAvoidCallingToString() {
@@ -1371,49 +1370,49 @@ public void testStaticFieldGetValue() {
fail("unable to reload test configuration? Exception: " + ex);
}
try {
- accessedValue = ognlUtil.getValue("@com.opensymphony.xwork2.ognl.OgnlUtilTest@STATIC_FINAL_PUBLIC_ATTRIBUTE", context, null);
+ accessedValue = ognlUtil.getValue("@org.apache.struts2.ognl.OgnlUtilTest@STATIC_FINAL_PUBLIC_ATTRIBUTE", context, null);
assertEquals("accessed field value not equal to actual?", accessedValue, STATIC_FINAL_PUBLIC_ATTRIBUTE);
} catch (Exception ex) {
fail("static final public field access failed ? Exception: " + ex);
}
try {
- accessedValue = ognlUtil.getValue("@com.opensymphony.xwork2.ognl.OgnlUtilTest@STATIC_PUBLIC_ATTRIBUTE", context, null);
+ accessedValue = ognlUtil.getValue("@org.apache.struts2.ognl.OgnlUtilTest@STATIC_PUBLIC_ATTRIBUTE", context, null);
assertEquals("accessed field value not equal to actual?", accessedValue, STATIC_PUBLIC_ATTRIBUTE);
} catch (Exception ex) {
fail("static public field access failed ? Exception: " + ex);
}
try {
- ognlUtil.getValue("@com.opensymphony.xwork2.ognl.OgnlUtilTest@STATIC_FINAL_PACKAGE_ATTRIBUTE", context, null);
+ ognlUtil.getValue("@org.apache.struts2.ognl.OgnlUtilTest@STATIC_FINAL_PACKAGE_ATTRIBUTE", context, null);
fail("static final package field access succeeded?");
} catch (Exception ex) {
assertTrue("Exception not an OgnlException?", ex instanceof OgnlException);
}
try {
- ognlUtil.getValue("@com.opensymphony.xwork2.ognl.OgnlUtilTest@STATIC_PACKAGE_ATTRIBUTE", context, null);
+ ognlUtil.getValue("@org.apache.struts2.ognl.OgnlUtilTest@STATIC_PACKAGE_ATTRIBUTE", context, null);
fail("static package field access succeeded?");
} catch (Exception ex) {
assertTrue("Exception not an OgnlException?", ex instanceof OgnlException);
}
try {
- ognlUtil.getValue("@com.opensymphony.xwork2.ognl.OgnlUtilTest@STATIC_FINAL_PROTECTED_ATTRIBUTE", context, null);
+ ognlUtil.getValue("@org.apache.struts2.ognl.OgnlUtilTest@STATIC_FINAL_PROTECTED_ATTRIBUTE", context, null);
fail("static final protected field access succeeded?");
} catch (Exception ex) {
assertTrue("Exception not an OgnlException?", ex instanceof OgnlException);
}
try {
- ognlUtil.getValue("@com.opensymphony.xwork2.ognl.OgnlUtilTest@STATIC_PROTECTED_ATTRIBUTE", context, null);
+ ognlUtil.getValue("@org.apache.struts2.ognl.OgnlUtilTest@STATIC_PROTECTED_ATTRIBUTE", context, null);
fail("static protected field access succeeded?");
} catch (Exception ex) {
assertTrue("Exception not an OgnlException?", ex instanceof OgnlException);
}
try {
- ognlUtil.getValue("@com.opensymphony.xwork2.ognl.OgnlUtilTest@STATIC_FINAL_PRIVATE_ATTRIBUTE", context, null);
+ ognlUtil.getValue("@org.apache.struts2.ognl.OgnlUtilTest@STATIC_FINAL_PRIVATE_ATTRIBUTE", context, null);
fail("static final private field access succeeded?");
} catch (Exception ex) {
assertTrue("Exception not an OgnlException?", ex instanceof OgnlException);
}
try {
- ognlUtil.getValue("@com.opensymphony.xwork2.ognl.OgnlUtilTest@STATIC_PRIVATE_ATTRIBUTE", context, null);
+ ognlUtil.getValue("@org.apache.struts2.ognl.OgnlUtilTest@STATIC_PRIVATE_ATTRIBUTE", context, null);
fail("static private field access succeeded?");
} catch (Exception ex) {
assertTrue("Exception not an OgnlException?", ex instanceof OgnlException);
@@ -1426,49 +1425,49 @@ public void testStaticFieldGetValue() {
fail("unable to reload test configuration? Exception: " + ex);
}
try {
- ognlUtil.getValue("@com.opensymphony.xwork2.ognl.OgnlUtilTest@STATIC_FINAL_PUBLIC_ATTRIBUTE", context, null);
+ ognlUtil.getValue("@org.apache.struts2.ognl.OgnlUtilTest@STATIC_FINAL_PUBLIC_ATTRIBUTE", context, null);
fail("static final public field access succeded ?");
} catch (Exception ex) {
assertTrue("Exception not an OgnlException?", ex instanceof OgnlException);
}
try {
- ognlUtil.getValue("@com.opensymphony.xwork2.ognl.OgnlUtilTest@STATIC_PUBLIC_ATTRIBUTE", context, null);
+ ognlUtil.getValue("@org.apache.struts2.ognl.OgnlUtilTest@STATIC_PUBLIC_ATTRIBUTE", context, null);
fail("static public field access succeded ?");
} catch (Exception ex) {
assertTrue("Exception not an OgnlException?", ex instanceof OgnlException);
}
try {
- ognlUtil.getValue("@com.opensymphony.xwork2.ognl.OgnlUtilTest@STATIC_FINAL_PACKAGE_ATTRIBUTE", context, null);
+ ognlUtil.getValue("@org.apache.struts2.ognl.OgnlUtilTest@STATIC_FINAL_PACKAGE_ATTRIBUTE", context, null);
fail("static final package field access succeeded?");
} catch (Exception ex) {
assertTrue("Exception not an OgnlException?", ex instanceof OgnlException);
}
try {
- ognlUtil.getValue("@com.opensymphony.xwork2.ognl.OgnlUtilTest@STATIC_PACKAGE_ATTRIBUTE", context, null);
+ ognlUtil.getValue("@org.apache.struts2.ognl.OgnlUtilTest@STATIC_PACKAGE_ATTRIBUTE", context, null);
fail("static package field access succeeded?");
} catch (Exception ex) {
assertTrue("Exception not an OgnlException?", ex instanceof OgnlException);
}
try {
- ognlUtil.getValue("@com.opensymphony.xwork2.ognl.OgnlUtilTest@STATIC_FINAL_PROTECTED_ATTRIBUTE", context, null);
+ ognlUtil.getValue("@org.apache.struts2.ognl.OgnlUtilTest@STATIC_FINAL_PROTECTED_ATTRIBUTE", context, null);
fail("static final protected field access succeeded?");
} catch (Exception ex) {
assertTrue("Exception not an OgnlException?", ex instanceof OgnlException);
}
try {
- ognlUtil.getValue("@com.opensymphony.xwork2.ognl.OgnlUtilTest@STATIC_PROTECTED_ATTRIBUTE", context, null);
+ ognlUtil.getValue("@org.apache.struts2.ognl.OgnlUtilTest@STATIC_PROTECTED_ATTRIBUTE", context, null);
fail("static protected field access succeeded?");
} catch (Exception ex) {
assertTrue("Exception not an OgnlException?", ex instanceof OgnlException);
}
try {
- ognlUtil.getValue("@com.opensymphony.xwork2.ognl.OgnlUtilTest@STATIC_FINAL_PRIVATE_ATTRIBUTE", context, null);
+ ognlUtil.getValue("@org.apache.struts2.ognl.OgnlUtilTest@STATIC_FINAL_PRIVATE_ATTRIBUTE", context, null);
fail("static final private field access succeeded?");
} catch (Exception ex) {
assertTrue("Exception not an OgnlException?", ex instanceof OgnlException);
}
try {
- ognlUtil.getValue("@com.opensymphony.xwork2.ognl.OgnlUtilTest@STATIC_PRIVATE_ATTRIBUTE", context, null);
+ ognlUtil.getValue("@org.apache.struts2.ognl.OgnlUtilTest@STATIC_PRIVATE_ATTRIBUTE", context, null);
fail("static private field access succeeded?");
} catch (Exception ex) {
assertTrue("Exception not an OgnlException?", ex instanceof OgnlException);
@@ -1635,7 +1634,7 @@ public void testOgnlDefaultCacheFactoryCoverage() {
}
public void testCustomOgnlMapBlocked() throws Exception {
- String vulnerableExpr = "#@com.opensymphony.xwork2.ognl.MyCustomMap@{}.get(\"ye\")";
+ String vulnerableExpr = "#@org.apache.struts2.ognl.MyCustomMap@{}.get(\"ye\")";
assertEquals("System compromised", ognlUtil.getValue(vulnerableExpr, ognlUtil.createDefaultContext(null), null));
((CompoundRootAccessor) container.getInstance(RootAccessor.class))
diff --git a/core/src/test/java/com/opensymphony/xwork2/ognl/OgnlValueStackTest.java b/core/src/test/java/org/apache/struts2/ognl/OgnlValueStackTest.java
similarity index 90%
rename from core/src/test/java/com/opensymphony/xwork2/ognl/OgnlValueStackTest.java
rename to core/src/test/java/org/apache/struts2/ognl/OgnlValueStackTest.java
index f6e5137102..700be243bc 100644
--- a/core/src/test/java/com/opensymphony/xwork2/ognl/OgnlValueStackTest.java
+++ b/core/src/test/java/org/apache/struts2/ognl/OgnlValueStackTest.java
@@ -16,27 +16,27 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.ognl;
-
-import com.opensymphony.xwork2.SimpleAction;
-import com.opensymphony.xwork2.TestBean;
-import com.opensymphony.xwork2.TextProvider;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.conversion.impl.ConversionData;
-import com.opensymphony.xwork2.conversion.impl.XWorkConverter;
-import com.opensymphony.xwork2.inject.ContainerBuilder;
-import com.opensymphony.xwork2.ognl.accessor.RootAccessor;
-import com.opensymphony.xwork2.test.StubConfigurationProvider;
-import com.opensymphony.xwork2.test.TestBean2;
-import com.opensymphony.xwork2.util.Bar;
-import com.opensymphony.xwork2.util.BarJunior;
-import com.opensymphony.xwork2.util.Cat;
-import com.opensymphony.xwork2.util.Dog;
-import com.opensymphony.xwork2.util.Foo;
-import com.opensymphony.xwork2.util.ValueStackFactory;
-import com.opensymphony.xwork2.util.location.LocatableProperties;
-import com.opensymphony.xwork2.util.reflection.ReflectionContextState;
+package org.apache.struts2.ognl;
+
+import org.apache.struts2.SimpleAction;
+import org.apache.struts2.TestBean;
+import org.apache.struts2.TextProvider;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.conversion.impl.ConversionData;
+import org.apache.struts2.conversion.impl.XWorkConverter;
+import org.apache.struts2.inject.ContainerBuilder;
+import org.apache.struts2.ognl.accessor.RootAccessor;
+import org.apache.struts2.test.StubConfigurationProvider;
+import org.apache.struts2.test.TestBean2;
+import org.apache.struts2.util.Bar;
+import org.apache.struts2.util.BarJunior;
+import org.apache.struts2.util.Cat;
+import org.apache.struts2.util.Dog;
+import org.apache.struts2.util.Foo;
+import org.apache.struts2.util.ValueStackFactory;
+import org.apache.struts2.util.location.LocatableProperties;
+import org.apache.struts2.util.reflection.ReflectionContextState;
import ognl.OgnlException;
import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.LogManager;
@@ -59,7 +59,7 @@
import java.util.List;
import java.util.Map;
-import static com.opensymphony.xwork2.ognl.SecurityMemberAccessTest.reflectField;
+import static org.apache.struts2.ognl.SecurityMemberAccessTest.reflectField;
public class OgnlValueStackTest extends XWorkTestCase {
@@ -432,23 +432,23 @@ public void testStatic() {
Dog dog = new Dog();
dog.setDeity("fido");
vs.push(dog);
- assertNull(vs.findValue("@com.opensymphony.xwork2.util.Dog@getDeity()", String.class));
+ assertNull(vs.findValue("@org.apache.struts2.util.Dog@getDeity()", String.class));
}
/**
* Enum methods should also be banned alongside static methods
*/
public void testEnum() throws Exception {
- assertNull("ONE", vs.findValue("@com.opensymphony.xwork2.ognl.MyNumbers@values()[0]", String.class));
- assertNull("TWO", vs.findValue("@com.opensymphony.xwork2.ognl.MyNumbers@values()[1]", String.class));
- assertNull("THREE", vs.findValue("@com.opensymphony.xwork2.ognl.MyNumbers@values()[2]", String.class));
+ assertNull("ONE", vs.findValue("@org.apache.struts2.ognl.MyNumbers@values()[0]", String.class));
+ assertNull("TWO", vs.findValue("@org.apache.struts2.ognl.MyNumbers@values()[1]", String.class));
+ assertNull("THREE", vs.findValue("@org.apache.struts2.ognl.MyNumbers@values()[2]", String.class));
}
public void testStaticMethodDisallow() {
Dog dog = new Dog();
dog.setDeity("fido");
vs.push(dog);
- assertNull(vs.findValue("@com.opensymphony.xwork2.util.Dog@getDeity()", String.class));
+ assertNull(vs.findValue("@org.apache.struts2.util.Dog@getDeity()", String.class));
}
public void testBasicSet() {
@@ -720,7 +720,7 @@ public void testNullMethod() {
Dog dog = new Dog();
vs.push(dog);
assertNull(vs.findValue("nullMethod()"));
- assertNull(vs.findValue("@com.opensymphony.xwork2.ognl.OgnlValueStackTest@staticNullMethod()"));
+ assertNull(vs.findValue("@org.apache.struts2.ognl.OgnlValueStackTest@staticNullMethod()"));
}
public void testPetSoarBug() {
@@ -1150,23 +1150,23 @@ public void testOgnlValueStackFromOgnlValueStackFactoryDefaultConfig() throws Il
reflectField(vs.securityMemberAccess, "allowStaticFieldAccess"));
// An OgnlValueStack created from the above OgnlValueStackFactory should allow public field access,
// but prevent non-public field access. It should also deny static method access.
- accessedValue = vs.findValue("@com.opensymphony.xwork2.ognl.OgnlValueStackTest@staticInteger100Method()");
+ accessedValue = vs.findValue("@org.apache.struts2.ognl.OgnlValueStackTest@staticInteger100Method()");
assertNull("able to access static method (result not null) ?", accessedValue);
- accessedValue = vs.findValue("@com.opensymphony.xwork2.ognl.OgnlValueStackTest@STATIC_FINAL_PUBLIC_ATTRIBUTE");
+ accessedValue = vs.findValue("@org.apache.struts2.ognl.OgnlValueStackTest@STATIC_FINAL_PUBLIC_ATTRIBUTE");
assertEquals("accessed static final public field value not equal to actual?", accessedValue, STATIC_FINAL_PUBLIC_ATTRIBUTE);
- accessedValue = vs.findValue("@com.opensymphony.xwork2.ognl.OgnlValueStackTest@STATIC_PUBLIC_ATTRIBUTE");
+ accessedValue = vs.findValue("@org.apache.struts2.ognl.OgnlValueStackTest@STATIC_PUBLIC_ATTRIBUTE");
assertEquals("accessed static public field value not equal to actual?", accessedValue, STATIC_PUBLIC_ATTRIBUTE);
- accessedValue = vs.findValue("@com.opensymphony.xwork2.ognl.OgnlValueStackTest@STATIC_FINAL_PACKAGE_ATTRIBUTE");
+ accessedValue = vs.findValue("@org.apache.struts2.ognl.OgnlValueStackTest@STATIC_FINAL_PACKAGE_ATTRIBUTE");
assertNull("accessed final package field (result not null) ?", accessedValue);
- accessedValue = vs.findValue("@com.opensymphony.xwork2.ognl.OgnlValueStackTest@STATIC_PACKAGE_ATTRIBUTE");
+ accessedValue = vs.findValue("@org.apache.struts2.ognl.OgnlValueStackTest@STATIC_PACKAGE_ATTRIBUTE");
assertNull("accessed package field (result not null) ?", accessedValue);
- accessedValue = vs.findValue("@com.opensymphony.xwork2.ognl.OgnlValueStackTest@STATIC_FINAL_PROTECTED_ATTRIBUTE");
+ accessedValue = vs.findValue("@org.apache.struts2.ognl.OgnlValueStackTest@STATIC_FINAL_PROTECTED_ATTRIBUTE");
assertNull("accessed final protected field (result not null) ?", accessedValue);
- accessedValue = vs.findValue("@com.opensymphony.xwork2.ognl.OgnlValueStackTest@STATIC_PROTECTED_ATTRIBUTE");
+ accessedValue = vs.findValue("@org.apache.struts2.ognl.OgnlValueStackTest@STATIC_PROTECTED_ATTRIBUTE");
assertNull("accessed protected field (result not null) ?", accessedValue);
- accessedValue = vs.findValue("@com.opensymphony.xwork2.ognl.OgnlValueStackTest@STATIC_FINAL_PRIVATE_ATTRIBUTE");
+ accessedValue = vs.findValue("@org.apache.struts2.ognl.OgnlValueStackTest@STATIC_FINAL_PRIVATE_ATTRIBUTE");
assertNull("accessed final private field (result not null) ?", accessedValue);
- accessedValue = vs.findValue("@com.opensymphony.xwork2.ognl.OgnlValueStackTest@STATIC_PRIVATE_ATTRIBUTE");
+ accessedValue = vs.findValue("@org.apache.struts2.ognl.OgnlValueStackTest@STATIC_PRIVATE_ATTRIBUTE");
assertNull("accessed private field (result not null) ?", accessedValue);
}
@@ -1182,23 +1182,23 @@ public void testOgnlValueStackFromOgnlValueStackFactoryNoStaticAccess() throws I
reflectField(vs.securityMemberAccess, "allowStaticFieldAccess"));
// An OgnlValueStack created from the above OgnlValueStackFactory should prevent public field access,
// and prevent non-public field access. It should also deny static method access.
- accessedValue = vs.findValue("@com.opensymphony.xwork2.ognl.OgnlValueStackTest@staticInteger100Method()");
+ accessedValue = vs.findValue("@org.apache.struts2.ognl.OgnlValueStackTest@staticInteger100Method()");
assertNull("able to access static method (result not null) ?", accessedValue);
- accessedValue = vs.findValue("@com.opensymphony.xwork2.ognl.OgnlValueStackTest@STATIC_FINAL_PUBLIC_ATTRIBUTE");
+ accessedValue = vs.findValue("@org.apache.struts2.ognl.OgnlValueStackTest@STATIC_FINAL_PUBLIC_ATTRIBUTE");
assertNull("able to access static final public field (result not null) ?", accessedValue);
- accessedValue = vs.findValue("@com.opensymphony.xwork2.ognl.OgnlValueStackTest@STATIC_PUBLIC_ATTRIBUTE");
+ accessedValue = vs.findValue("@org.apache.struts2.ognl.OgnlValueStackTest@STATIC_PUBLIC_ATTRIBUTE");
assertNull("able to access static public field (result not null) ?", accessedValue);
- accessedValue = vs.findValue("@com.opensymphony.xwork2.ognl.OgnlValueStackTest@STATIC_FINAL_PACKAGE_ATTRIBUTE");
+ accessedValue = vs.findValue("@org.apache.struts2.ognl.OgnlValueStackTest@STATIC_FINAL_PACKAGE_ATTRIBUTE");
assertNull("accessed final package field (result not null) ?", accessedValue);
- accessedValue = vs.findValue("@com.opensymphony.xwork2.ognl.OgnlValueStackTest@STATIC_PACKAGE_ATTRIBUTE");
+ accessedValue = vs.findValue("@org.apache.struts2.ognl.OgnlValueStackTest@STATIC_PACKAGE_ATTRIBUTE");
assertNull("accessed package field (result not null) ?", accessedValue);
- accessedValue = vs.findValue("@com.opensymphony.xwork2.ognl.OgnlValueStackTest@STATIC_FINAL_PROTECTED_ATTRIBUTE");
+ accessedValue = vs.findValue("@org.apache.struts2.ognl.OgnlValueStackTest@STATIC_FINAL_PROTECTED_ATTRIBUTE");
assertNull("accessed final protected field (result not null) ?", accessedValue);
- accessedValue = vs.findValue("@com.opensymphony.xwork2.ognl.OgnlValueStackTest@STATIC_PROTECTED_ATTRIBUTE");
+ accessedValue = vs.findValue("@org.apache.struts2.ognl.OgnlValueStackTest@STATIC_PROTECTED_ATTRIBUTE");
assertNull("accessed protected field (result not null) ?", accessedValue);
- accessedValue = vs.findValue("@com.opensymphony.xwork2.ognl.OgnlValueStackTest@STATIC_FINAL_PRIVATE_ATTRIBUTE");
+ accessedValue = vs.findValue("@org.apache.struts2.ognl.OgnlValueStackTest@STATIC_FINAL_PRIVATE_ATTRIBUTE");
assertNull("accessed final private field (result not null) ?", accessedValue);
- accessedValue = vs.findValue("@com.opensymphony.xwork2.ognl.OgnlValueStackTest@STATIC_PRIVATE_ATTRIBUTE");
+ accessedValue = vs.findValue("@org.apache.struts2.ognl.OgnlValueStackTest@STATIC_PRIVATE_ATTRIBUTE");
assertNull("accessed private field (result not null) ?", accessedValue);
}
@@ -1214,23 +1214,23 @@ public void testOgnlValueStackFromOgnlValueStackFactoryAllStaticAccess() throws
reflectField(vs.securityMemberAccess, "allowStaticFieldAccess"));
// An OgnlValueStack created from the above OgnlValueStackFactory should allow public field access,
// but prevent non-public field access. It should also allow static method access.
- accessedValue = vs.findValue("@com.opensymphony.xwork2.ognl.OgnlValueStackTest@staticInteger100Method()");
+ accessedValue = vs.findValue("@org.apache.struts2.ognl.OgnlValueStackTest@staticInteger100Method()");
assertNull("able to access static method (result non-null)!!!", accessedValue);
- accessedValue = vs.findValue("@com.opensymphony.xwork2.ognl.OgnlValueStackTest@STATIC_FINAL_PUBLIC_ATTRIBUTE");
+ accessedValue = vs.findValue("@org.apache.struts2.ognl.OgnlValueStackTest@STATIC_FINAL_PUBLIC_ATTRIBUTE");
assertEquals("accessed static final public field value not equal to actual?", accessedValue, STATIC_FINAL_PUBLIC_ATTRIBUTE);
- accessedValue = vs.findValue("@com.opensymphony.xwork2.ognl.OgnlValueStackTest@STATIC_PUBLIC_ATTRIBUTE");
+ accessedValue = vs.findValue("@org.apache.struts2.ognl.OgnlValueStackTest@STATIC_PUBLIC_ATTRIBUTE");
assertEquals("accessed static public field value not equal to actual?", accessedValue, STATIC_PUBLIC_ATTRIBUTE);
- accessedValue = vs.findValue("@com.opensymphony.xwork2.ognl.OgnlValueStackTest@STATIC_FINAL_PACKAGE_ATTRIBUTE");
+ accessedValue = vs.findValue("@org.apache.struts2.ognl.OgnlValueStackTest@STATIC_FINAL_PACKAGE_ATTRIBUTE");
assertNull("accessed final package field (result not null) ?", accessedValue);
- accessedValue = vs.findValue("@com.opensymphony.xwork2.ognl.OgnlValueStackTest@STATIC_PACKAGE_ATTRIBUTE");
+ accessedValue = vs.findValue("@org.apache.struts2.ognl.OgnlValueStackTest@STATIC_PACKAGE_ATTRIBUTE");
assertNull("accessed package field (result not null) ?", accessedValue);
- accessedValue = vs.findValue("@com.opensymphony.xwork2.ognl.OgnlValueStackTest@STATIC_FINAL_PROTECTED_ATTRIBUTE");
+ accessedValue = vs.findValue("@org.apache.struts2.ognl.OgnlValueStackTest@STATIC_FINAL_PROTECTED_ATTRIBUTE");
assertNull("accessed final protected field (result not null) ?", accessedValue);
- accessedValue = vs.findValue("@com.opensymphony.xwork2.ognl.OgnlValueStackTest@STATIC_PROTECTED_ATTRIBUTE");
+ accessedValue = vs.findValue("@org.apache.struts2.ognl.OgnlValueStackTest@STATIC_PROTECTED_ATTRIBUTE");
assertNull("accessed protected field (result not null) ?", accessedValue);
- accessedValue = vs.findValue("@com.opensymphony.xwork2.ognl.OgnlValueStackTest@STATIC_FINAL_PRIVATE_ATTRIBUTE");
+ accessedValue = vs.findValue("@org.apache.struts2.ognl.OgnlValueStackTest@STATIC_FINAL_PRIVATE_ATTRIBUTE");
assertNull("accessed final private field (result not null) ?", accessedValue);
- accessedValue = vs.findValue("@com.opensymphony.xwork2.ognl.OgnlValueStackTest@STATIC_PRIVATE_ATTRIBUTE");
+ accessedValue = vs.findValue("@org.apache.struts2.ognl.OgnlValueStackTest@STATIC_PRIVATE_ATTRIBUTE");
assertNull("accessed private field (result not null) ?", accessedValue);
}
diff --git a/core/src/test/java/com/opensymphony/xwork2/ognl/SecurityMemberAccessTest.java b/core/src/test/java/org/apache/struts2/ognl/SecurityMemberAccessTest.java
similarity index 99%
rename from core/src/test/java/com/opensymphony/xwork2/ognl/SecurityMemberAccessTest.java
rename to core/src/test/java/org/apache/struts2/ognl/SecurityMemberAccessTest.java
index 47eb2fb231..e3d3fa589a 100644
--- a/core/src/test/java/com/opensymphony/xwork2/ognl/SecurityMemberAccessTest.java
+++ b/core/src/test/java/org/apache/struts2/ognl/SecurityMemberAccessTest.java
@@ -16,16 +16,14 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.ognl;
+package org.apache.struts2.ognl;
-import com.opensymphony.xwork2.TestBean;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.test.TestBean2;
-import com.opensymphony.xwork2.util.Foo;
+import org.apache.struts2.TestBean;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.test.TestBean2;
+import org.apache.struts2.util.Foo;
import ognl.MemberAccess;
import org.apache.commons.lang3.reflect.FieldUtils;
-import org.apache.struts2.ognl.ProviderAllowlist;
-import org.apache.struts2.ognl.ThreadAllowlist;
import org.hibernate.proxy.HibernateProxy;
import org.hibernate.proxy.LazyInitializer;
import org.junit.Before;
diff --git a/core/src/test/java/com/opensymphony/xwork2/ognl/SetPropertiesTest.java b/core/src/test/java/org/apache/struts2/ognl/SetPropertiesTest.java
similarity index 93%
rename from core/src/test/java/com/opensymphony/xwork2/ognl/SetPropertiesTest.java
rename to core/src/test/java/org/apache/struts2/ognl/SetPropertiesTest.java
index 436dced893..ba3af50b7e 100644
--- a/core/src/test/java/com/opensymphony/xwork2/ognl/SetPropertiesTest.java
+++ b/core/src/test/java/org/apache/struts2/ognl/SetPropertiesTest.java
@@ -16,26 +16,26 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.ognl;
-
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.conversion.ObjectTypeDeterminer;
-import com.opensymphony.xwork2.conversion.impl.FooBarConverter;
-import com.opensymphony.xwork2.conversion.impl.XWorkConverter;
-import com.opensymphony.xwork2.inject.ContainerBuilder;
-import com.opensymphony.xwork2.inject.Context;
-import com.opensymphony.xwork2.inject.Factory;
-import com.opensymphony.xwork2.inject.Scope;
-import com.opensymphony.xwork2.mock.MockObjectTypeDeterminer;
-import com.opensymphony.xwork2.test.StubConfigurationProvider;
-import com.opensymphony.xwork2.util.Bar;
-import com.opensymphony.xwork2.util.Cat;
-import com.opensymphony.xwork2.util.Foo;
-import com.opensymphony.xwork2.util.ValueStack;
-import com.opensymphony.xwork2.util.location.LocatableProperties;
-import com.opensymphony.xwork2.util.reflection.ReflectionContextState;
+package org.apache.struts2.ognl;
+
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.conversion.ObjectTypeDeterminer;
+import org.apache.struts2.conversion.impl.FooBarConverter;
+import org.apache.struts2.conversion.impl.XWorkConverter;
+import org.apache.struts2.inject.ContainerBuilder;
+import org.apache.struts2.inject.Context;
+import org.apache.struts2.inject.Factory;
+import org.apache.struts2.inject.Scope;
+import org.apache.struts2.mock.MockObjectTypeDeterminer;
+import org.apache.struts2.test.StubConfigurationProvider;
+import org.apache.struts2.util.Bar;
+import org.apache.struts2.util.Cat;
+import org.apache.struts2.util.Foo;
+import org.apache.struts2.util.ValueStack;
+import org.apache.struts2.util.location.LocatableProperties;
+import org.apache.struts2.util.reflection.ReflectionContextState;
import ognl.Ognl;
import java.util.ArrayList;
diff --git a/core/src/test/java/org/apache/struts2/ognl/StrutsOgnlGuardTest.java b/core/src/test/java/org/apache/struts2/ognl/StrutsOgnlGuardTest.java
index 2252134da2..1b77622b90 100644
--- a/core/src/test/java/org/apache/struts2/ognl/StrutsOgnlGuardTest.java
+++ b/core/src/test/java/org/apache/struts2/ognl/StrutsOgnlGuardTest.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.ognl;
-import com.opensymphony.xwork2.config.ConfigurationException;
+import org.apache.struts2.config.ConfigurationException;
import org.junit.Before;
import org.junit.Test;
diff --git a/core/src/test/java/com/opensymphony/xwork2/ognl/accessor/XWorkListPropertyAccessorTest.java b/core/src/test/java/org/apache/struts2/ognl/accessor/XWorkListPropertyAccessorTest.java
similarity index 90%
rename from core/src/test/java/com/opensymphony/xwork2/ognl/accessor/XWorkListPropertyAccessorTest.java
rename to core/src/test/java/org/apache/struts2/ognl/accessor/XWorkListPropertyAccessorTest.java
index 4a89d89354..c028c98a8e 100644
--- a/core/src/test/java/com/opensymphony/xwork2/ognl/accessor/XWorkListPropertyAccessorTest.java
+++ b/core/src/test/java/org/apache/struts2/ognl/accessor/XWorkListPropertyAccessorTest.java
@@ -16,13 +16,13 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.ognl.accessor;
+package org.apache.struts2.ognl.accessor;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.util.ListHolder;
-import com.opensymphony.xwork2.util.ValueStack;
-import com.opensymphony.xwork2.util.reflection.ReflectionContextState;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.util.ListHolder;
+import org.apache.struts2.util.ValueStack;
+import org.apache.struts2.util.reflection.ReflectionContextState;
import ognl.PropertyAccessor;
import java.util.ArrayList;
diff --git a/core/src/test/java/com/opensymphony/xwork2/ognl/accessor/XWorkMapPropertyAccessorTest.java b/core/src/test/java/org/apache/struts2/ognl/accessor/XWorkMapPropertyAccessorTest.java
similarity index 88%
rename from core/src/test/java/com/opensymphony/xwork2/ognl/accessor/XWorkMapPropertyAccessorTest.java
rename to core/src/test/java/org/apache/struts2/ognl/accessor/XWorkMapPropertyAccessorTest.java
index 1835e938ac..7a1d9cd9c5 100644
--- a/core/src/test/java/com/opensymphony/xwork2/ognl/accessor/XWorkMapPropertyAccessorTest.java
+++ b/core/src/test/java/org/apache/struts2/ognl/accessor/XWorkMapPropertyAccessorTest.java
@@ -16,13 +16,13 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.ognl.accessor;
+package org.apache.struts2.ognl.accessor;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.util.Element;
-import com.opensymphony.xwork2.util.ValueStack;
-import com.opensymphony.xwork2.util.reflection.ReflectionContextState;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.util.Element;
+import org.apache.struts2.util.ValueStack;
+import org.apache.struts2.util.reflection.ReflectionContextState;
import java.util.Collections;
import java.util.Map;
diff --git a/core/src/test/java/org/apache/struts2/result/HttpHeaderResultTest.java b/core/src/test/java/org/apache/struts2/result/HttpHeaderResultTest.java
index 445aaf2786..ce38866988 100644
--- a/core/src/test/java/org/apache/struts2/result/HttpHeaderResultTest.java
+++ b/core/src/test/java/org/apache/struts2/result/HttpHeaderResultTest.java
@@ -20,9 +20,9 @@
import com.mockobjects.dynamic.C;
import com.mockobjects.dynamic.Mock;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.util.reflection.ReflectionProvider;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.util.reflection.ReflectionProvider;
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.StrutsInternalTestCase;
@@ -76,24 +76,24 @@ public void testHeaderValuesAreParsedAndSet() throws Exception {
result.execute(invocation);
responseMock.verify();
}
-
+
public void testErrorMessageIsParsedAndSet() throws Exception {
ActionContext.getContext().getValueStack().set("errMsg", "abc");
ActionContext.getContext().getValueStack().set("errCode", "404");
result.setError("${errCode}");
result.setErrorMessage("${errMsg}");
-
+
responseMock.expect("sendError", C.args(C.eq(404), C.eq("abc")));
result.execute(invocation);
responseMock.verify();
}
-
+
public void testErrorMessageIsNotParsedAndSet() throws Exception {
ActionContext.getContext().getValueStack().set("errMsg", "abc");
result.setError("404");
result.setParse(false);
result.setErrorMessage("${errMsg}");
-
+
responseMock.expect("sendError", C.args(C.eq(404), C.eq("${errMsg}")));
result.execute(invocation);
responseMock.verify();
@@ -105,7 +105,7 @@ public void testStatusIsSet() throws Exception {
result.execute(invocation);
responseMock.verify();
}
-
+
public void testErrorIsSet() throws Exception {
responseMock.expect("sendError", C.eq(404));
result.setError("404");
diff --git a/core/src/test/java/org/apache/struts2/result/PlainResultTest.java b/core/src/test/java/org/apache/struts2/result/PlainResultTest.java
index 995e1aac14..d38d861a93 100644
--- a/core/src/test/java/org/apache/struts2/result/PlainResultTest.java
+++ b/core/src/test/java/org/apache/struts2/result/PlainResultTest.java
@@ -18,9 +18,9 @@
*/
package org.apache.struts2.result;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.Result;
-import com.opensymphony.xwork2.mock.MockActionInvocation;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.Result;
+import org.apache.struts2.mock.MockActionInvocation;
import org.apache.struts2.StrutsException;
import org.apache.struts2.StrutsInternalTestCase;
import org.apache.struts2.result.plain.ResponseBuilder;
diff --git a/core/src/test/java/org/apache/struts2/result/PlainTextResultTest.java b/core/src/test/java/org/apache/struts2/result/PlainTextResultTest.java
index d0b4a83712..6e8659f00f 100644
--- a/core/src/test/java/org/apache/struts2/result/PlainTextResultTest.java
+++ b/core/src/test/java/org/apache/struts2/result/PlainTextResultTest.java
@@ -18,10 +18,10 @@
*/
package org.apache.struts2.result;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.mock.MockActionInvocation;
-import com.opensymphony.xwork2.util.ClassLoaderUtil;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.mock.MockActionInvocation;
+import org.apache.struts2.util.ClassLoaderUtil;
+import org.apache.struts2.util.ValueStack;
import org.apache.struts2.StrutsStatics;
import org.apache.struts2.StrutsInternalTestCase;
import org.apache.struts2.views.jsp.AbstractUITagTest;
@@ -70,7 +70,7 @@ public void testPlainText() throws Exception {
public void testPlainTextWithoutSlash() throws Exception {
PlainTextResult result = new PlainTextResult();
result.setLocation("someJspFile.jsp");
-
+
try (InputStream jspResourceInputStream =
ClassLoaderUtil.getResourceAsStream("org/apache/struts2/dispatcher/someJspFile.jsp", PlainTextResultTest.class)) {
servletContext.setResourceAsStream(jspResourceInputStream);
diff --git a/core/src/test/java/org/apache/struts2/result/PostbackResultTest.java b/core/src/test/java/org/apache/struts2/result/PostbackResultTest.java
index f019436f71..aef22de90c 100644
--- a/core/src/test/java/org/apache/struts2/result/PostbackResultTest.java
+++ b/core/src/test/java/org/apache/struts2/result/PostbackResultTest.java
@@ -18,11 +18,11 @@
*/
package org.apache.struts2.result;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.ActionProxy;
-import com.opensymphony.xwork2.Result;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.Result;
+import org.apache.struts2.util.ValueStack;
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.StrutsInternalTestCase;
import org.apache.struts2.dispatcher.mapper.ActionMapper;
diff --git a/core/src/test/java/org/apache/struts2/result/ServletActionRedirectResultTest.java b/core/src/test/java/org/apache/struts2/result/ServletActionRedirectResultTest.java
index 8fdf1ae30f..9436422d56 100644
--- a/core/src/test/java/org/apache/struts2/result/ServletActionRedirectResultTest.java
+++ b/core/src/test/java/org/apache/struts2/result/ServletActionRedirectResultTest.java
@@ -18,13 +18,13 @@
*/
package org.apache.struts2.result;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.ActionProxy;
-import com.opensymphony.xwork2.ObjectFactory;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.config.entities.ResultConfig;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.ObjectFactory;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.config.entities.ResultConfig;
+import org.apache.struts2.util.ValueStack;
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.StrutsInternalTestCase;
import org.apache.struts2.dispatcher.mapper.ActionMapper;
diff --git a/core/src/test/java/org/apache/struts2/result/ServletDispatcherResultTest.java b/core/src/test/java/org/apache/struts2/result/ServletDispatcherResultTest.java
index 90da7b6c9d..219f3d2180 100644
--- a/core/src/test/java/org/apache/struts2/result/ServletDispatcherResultTest.java
+++ b/core/src/test/java/org/apache/struts2/result/ServletDispatcherResultTest.java
@@ -20,9 +20,9 @@
import com.mockobjects.dynamic.C;
import com.mockobjects.dynamic.Mock;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.mock.MockActionInvocation;
-import com.opensymphony.xwork2.util.ValueStackFactory;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.mock.MockActionInvocation;
+import org.apache.struts2.util.ValueStackFactory;
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.StrutsInternalTestCase;
import org.apache.struts2.StrutsStatics;
diff --git a/core/src/test/java/org/apache/struts2/result/ServletRedirectResultTest.java b/core/src/test/java/org/apache/struts2/result/ServletRedirectResultTest.java
index 8f596bbdfe..a0b043fbb9 100644
--- a/core/src/test/java/org/apache/struts2/result/ServletRedirectResultTest.java
+++ b/core/src/test/java/org/apache/struts2/result/ServletRedirectResultTest.java
@@ -20,15 +20,15 @@
import com.mockobjects.dynamic.C;
import com.mockobjects.dynamic.Mock;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.ActionProxy;
-import com.opensymphony.xwork2.Result;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.config.entities.PackageConfig;
-import com.opensymphony.xwork2.config.entities.ResultConfig;
-import com.opensymphony.xwork2.mock.MockActionInvocation;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.Result;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.config.entities.PackageConfig;
+import org.apache.struts2.config.entities.ResultConfig;
+import org.apache.struts2.mock.MockActionInvocation;
+import org.apache.struts2.util.ValueStack;
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.StrutsInternalTestCase;
import org.apache.struts2.StrutsStatics;
diff --git a/core/src/test/java/org/apache/struts2/result/StreamResultTest.java b/core/src/test/java/org/apache/struts2/result/StreamResultTest.java
index 5661db5d3d..8bcefe3682 100644
--- a/core/src/test/java/org/apache/struts2/result/StreamResultTest.java
+++ b/core/src/test/java/org/apache/struts2/result/StreamResultTest.java
@@ -18,11 +18,11 @@
*/
package org.apache.struts2.result;
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.mock.MockActionInvocation;
-import com.opensymphony.xwork2.util.ClassLoaderUtil;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.mock.MockActionInvocation;
+import org.apache.struts2.util.ClassLoaderUtil;
+import org.apache.struts2.util.ValueStack;
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.StrutsInternalTestCase;
import org.springframework.mock.web.MockHttpServletResponse;
@@ -33,7 +33,7 @@
import java.net.URI;
import java.net.URL;
-import static com.opensymphony.xwork2.security.DefaultNotExcludedAcceptedPatternsCheckerTest.NO_EXCLUSION_ACCEPT_ALL_PATTERNS_CHECKER;
+import static org.apache.struts2.security.DefaultNotExcludedAcceptedPatternsCheckerTest.NO_EXCLUSION_ACCEPT_ALL_PATTERNS_CHECKER;
/**
* Unit test for {@link StreamResult}.
@@ -126,7 +126,7 @@ public void testAllowCacheDefault() throws Exception {
result.doExecute("helloworld", mai);
- //check that that headers are not set by default
+ //check that that headers are not set by default
assertNull(response.getHeader("Pragma"));
assertNull(response.getHeader("Cache-Control"));
}
@@ -256,7 +256,7 @@ protected void setUp() throws Exception {
MyImageAction action = new MyImageAction();
contentLength = (int) action.getContentLength();
- mai = new com.opensymphony.xwork2.mock.MockActionInvocation();
+ mai = new MockActionInvocation();
mai.setAction(action);
mai.setStack(stack);
mai.setInvocationContext(ActionContext.getContext());
diff --git a/core/src/test/java/org/apache/struts2/result/StrutsResultSupportTest.java b/core/src/test/java/org/apache/struts2/result/StrutsResultSupportTest.java
index 26929df4a2..063d17b847 100644
--- a/core/src/test/java/org/apache/struts2/result/StrutsResultSupportTest.java
+++ b/core/src/test/java/org/apache/struts2/result/StrutsResultSupportTest.java
@@ -18,10 +18,10 @@
*/
package org.apache.struts2.result;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.ActionSupport;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.ActionSupport;
+import org.apache.struts2.util.ValueStack;
import org.apache.struts2.StrutsInternalTestCase;
import org.easymock.EasyMock;
diff --git a/core/src/test/java/com/opensymphony/xwork2/security/DefaultAcceptedPatternsCheckerTest.java b/core/src/test/java/org/apache/struts2/security/DefaultAcceptedPatternsCheckerTest.java
similarity index 99%
rename from core/src/test/java/com/opensymphony/xwork2/security/DefaultAcceptedPatternsCheckerTest.java
rename to core/src/test/java/org/apache/struts2/security/DefaultAcceptedPatternsCheckerTest.java
index 050e568971..bb7eee9460 100644
--- a/core/src/test/java/com/opensymphony/xwork2/security/DefaultAcceptedPatternsCheckerTest.java
+++ b/core/src/test/java/org/apache/struts2/security/DefaultAcceptedPatternsCheckerTest.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.security;
+package org.apache.struts2.security;
-import com.opensymphony.xwork2.XWorkTestCase;
+import org.apache.struts2.XWorkTestCase;
import java.util.ArrayList;
import java.util.List;
diff --git a/core/src/test/java/com/opensymphony/xwork2/security/DefaultExcludedPatternsCheckerTest.java b/core/src/test/java/org/apache/struts2/security/DefaultExcludedPatternsCheckerTest.java
similarity index 97%
rename from core/src/test/java/com/opensymphony/xwork2/security/DefaultExcludedPatternsCheckerTest.java
rename to core/src/test/java/org/apache/struts2/security/DefaultExcludedPatternsCheckerTest.java
index 738def5d6e..1f549e0110 100644
--- a/core/src/test/java/com/opensymphony/xwork2/security/DefaultExcludedPatternsCheckerTest.java
+++ b/core/src/test/java/org/apache/struts2/security/DefaultExcludedPatternsCheckerTest.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.security;
+package org.apache.struts2.security;
-import com.opensymphony.xwork2.XWorkTestCase;
+import org.apache.struts2.XWorkTestCase;
import java.util.ArrayList;
import java.util.Arrays;
@@ -65,8 +65,8 @@ public void testHardcodedPatterns() throws Exception {
add("%{#parameters.test}");
add("%{#Parameters['test']}");
add("%{#Parameters.test}");
- add("#context.get('com.opensymphony.xwork2.dispatcher.HttpServletResponse')");
- add("%{#context.get('com.opensymphony.xwork2.dispatcher.HttpServletResponse')}");
+ add("#context.get('org.apache.struts2.dispatcher.HttpServletResponse')");
+ add("%{#context.get('org.apache.struts2.dispatcher.HttpServletResponse')}");
add("#_memberAccess[\"allowStaticMethodAccess\"]= new java.lang.Boolean(true)");
add("%{#_memberAccess[\"allowStaticMethodAccess\"]= new java.lang.Boolean(true)}");
add("form.class.classLoader");
diff --git a/core/src/test/java/com/opensymphony/xwork2/security/DefaultNotExcludedAcceptedPatternsCheckerTest.java b/core/src/test/java/org/apache/struts2/security/DefaultNotExcludedAcceptedPatternsCheckerTest.java
similarity index 96%
rename from core/src/test/java/com/opensymphony/xwork2/security/DefaultNotExcludedAcceptedPatternsCheckerTest.java
rename to core/src/test/java/org/apache/struts2/security/DefaultNotExcludedAcceptedPatternsCheckerTest.java
index 85f5b71b9c..a8e4121929 100644
--- a/core/src/test/java/com/opensymphony/xwork2/security/DefaultNotExcludedAcceptedPatternsCheckerTest.java
+++ b/core/src/test/java/org/apache/struts2/security/DefaultNotExcludedAcceptedPatternsCheckerTest.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.security;
+package org.apache.struts2.security;
-import com.opensymphony.xwork2.XWorkTestCase;
+import org.apache.struts2.XWorkTestCase;
import java.util.Set;
import java.util.regex.Pattern;
diff --git a/core/src/test/java/com/opensymphony/xwork2/test/AnnotationDataAware.java b/core/src/test/java/org/apache/struts2/test/AnnotationDataAware.java
similarity index 75%
rename from core/src/test/java/com/opensymphony/xwork2/test/AnnotationDataAware.java
rename to core/src/test/java/org/apache/struts2/test/AnnotationDataAware.java
index 13a65ed0b1..a6d93d6afa 100644
--- a/core/src/test/java/com/opensymphony/xwork2/test/AnnotationDataAware.java
+++ b/core/src/test/java/org/apache/struts2/test/AnnotationDataAware.java
@@ -16,14 +16,14 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.test;
+package org.apache.struts2.test;
-import com.opensymphony.xwork2.conversion.annotations.Conversion;
-import com.opensymphony.xwork2.conversion.annotations.TypeConversion;
-import com.opensymphony.xwork2.conversion.impl.FooBarConverter;
-import com.opensymphony.xwork2.util.Bar;
-import com.opensymphony.xwork2.validator.annotations.RequiredFieldValidator;
-import com.opensymphony.xwork2.validator.annotations.RequiredStringValidator;
+import org.apache.struts2.conversion.annotations.Conversion;
+import org.apache.struts2.conversion.annotations.TypeConversion;
+import org.apache.struts2.conversion.impl.FooBarConverter;
+import org.apache.struts2.util.Bar;
+import org.apache.struts2.validator.annotations.RequiredFieldValidator;
+import org.apache.struts2.validator.annotations.RequiredStringValidator;
/**
diff --git a/core/src/test/java/com/opensymphony/xwork2/test/AnnotationDataAware2.java b/core/src/test/java/org/apache/struts2/test/AnnotationDataAware2.java
similarity index 90%
rename from core/src/test/java/com/opensymphony/xwork2/test/AnnotationDataAware2.java
rename to core/src/test/java/org/apache/struts2/test/AnnotationDataAware2.java
index ebd4442ad9..7c24565e4e 100644
--- a/core/src/test/java/com/opensymphony/xwork2/test/AnnotationDataAware2.java
+++ b/core/src/test/java/org/apache/struts2/test/AnnotationDataAware2.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.test;
+package org.apache.struts2.test;
-import com.opensymphony.xwork2.validator.annotations.RequiredStringValidator;
+import org.apache.struts2.validator.annotations.RequiredStringValidator;
/**
diff --git a/core/src/test/java/com/opensymphony/xwork2/test/AnnotationTestBean2.java b/core/src/test/java/org/apache/struts2/test/AnnotationTestBean2.java
similarity index 80%
rename from core/src/test/java/com/opensymphony/xwork2/test/AnnotationTestBean2.java
rename to core/src/test/java/org/apache/struts2/test/AnnotationTestBean2.java
index 52b6f9cf6c..8950a90da9 100644
--- a/core/src/test/java/com/opensymphony/xwork2/test/AnnotationTestBean2.java
+++ b/core/src/test/java/org/apache/struts2/test/AnnotationTestBean2.java
@@ -16,14 +16,14 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.test;
+package org.apache.struts2.test;
-import com.opensymphony.xwork2.AnnotatedTestBean;
-import com.opensymphony.xwork2.conversion.annotations.Conversion;
-import com.opensymphony.xwork2.conversion.annotations.TypeConversion;
-import com.opensymphony.xwork2.conversion.impl.FooBarConverter;
-import com.opensymphony.xwork2.util.Bar;
-import com.opensymphony.xwork2.util.Cat;
+import org.apache.struts2.AnnotatedTestBean;
+import org.apache.struts2.conversion.annotations.Conversion;
+import org.apache.struts2.conversion.annotations.TypeConversion;
+import org.apache.struts2.conversion.impl.FooBarConverter;
+import org.apache.struts2.util.Bar;
+import org.apache.struts2.util.Cat;
/**
diff --git a/core/src/test/java/com/opensymphony/xwork2/test/AnnotationUser.java b/core/src/test/java/org/apache/struts2/test/AnnotationUser.java
similarity index 83%
rename from core/src/test/java/com/opensymphony/xwork2/test/AnnotationUser.java
rename to core/src/test/java/org/apache/struts2/test/AnnotationUser.java
index 0b941b1d30..22080b73b8 100644
--- a/core/src/test/java/com/opensymphony/xwork2/test/AnnotationUser.java
+++ b/core/src/test/java/org/apache/struts2/test/AnnotationUser.java
@@ -16,16 +16,16 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.test;
-
-import com.opensymphony.xwork2.conversion.annotations.ConversionRule;
-import com.opensymphony.xwork2.conversion.annotations.TypeConversion;
-import com.opensymphony.xwork2.util.KeyProperty;
-import com.opensymphony.xwork2.validator.annotations.EmailValidator;
-import com.opensymphony.xwork2.validator.annotations.ExpressionValidator;
-import com.opensymphony.xwork2.validator.annotations.FieldExpressionValidator;
-import com.opensymphony.xwork2.validator.annotations.RequiredFieldValidator;
-import com.opensymphony.xwork2.validator.annotations.Validations;
+package org.apache.struts2.test;
+
+import org.apache.struts2.conversion.annotations.ConversionRule;
+import org.apache.struts2.conversion.annotations.TypeConversion;
+import org.apache.struts2.util.KeyProperty;
+import org.apache.struts2.validator.annotations.EmailValidator;
+import org.apache.struts2.validator.annotations.ExpressionValidator;
+import org.apache.struts2.validator.annotations.FieldExpressionValidator;
+import org.apache.struts2.validator.annotations.RequiredFieldValidator;
+import org.apache.struts2.validator.annotations.Validations;
import java.util.Collection;
import java.util.List;
diff --git a/core/src/test/java/com/opensymphony/xwork2/test/AnnotationUserMarker.java b/core/src/test/java/org/apache/struts2/test/AnnotationUserMarker.java
similarity index 84%
rename from core/src/test/java/com/opensymphony/xwork2/test/AnnotationUserMarker.java
rename to core/src/test/java/org/apache/struts2/test/AnnotationUserMarker.java
index f68adb40bb..0d7e18091a 100644
--- a/core/src/test/java/com/opensymphony/xwork2/test/AnnotationUserMarker.java
+++ b/core/src/test/java/org/apache/struts2/test/AnnotationUserMarker.java
@@ -16,11 +16,11 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.test;
+package org.apache.struts2.test;
-import com.opensymphony.xwork2.validator.annotations.ExpressionValidator;
-import com.opensymphony.xwork2.validator.annotations.RequiredFieldValidator;
-import com.opensymphony.xwork2.validator.annotations.Validations;
+import org.apache.struts2.validator.annotations.ExpressionValidator;
+import org.apache.struts2.validator.annotations.RequiredFieldValidator;
+import org.apache.struts2.validator.annotations.Validations;
/**
* Marker interface to help test hierarchy traversal.
diff --git a/core/src/test/java/com/opensymphony/xwork2/test/DataAware.java b/core/src/test/java/org/apache/struts2/test/DataAware.java
similarity index 93%
rename from core/src/test/java/com/opensymphony/xwork2/test/DataAware.java
rename to core/src/test/java/org/apache/struts2/test/DataAware.java
index ac7485bb76..658ef0a066 100644
--- a/core/src/test/java/com/opensymphony/xwork2/test/DataAware.java
+++ b/core/src/test/java/org/apache/struts2/test/DataAware.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.test;
+package org.apache.struts2.test;
-import com.opensymphony.xwork2.util.Bar;
+import org.apache.struts2.util.Bar;
/**
diff --git a/core/src/test/java/com/opensymphony/xwork2/test/DataAware2.java b/core/src/test/java/org/apache/struts2/test/DataAware2.java
similarity index 96%
rename from core/src/test/java/com/opensymphony/xwork2/test/DataAware2.java
rename to core/src/test/java/org/apache/struts2/test/DataAware2.java
index a9960d9435..669d5f9e20 100644
--- a/core/src/test/java/com/opensymphony/xwork2/test/DataAware2.java
+++ b/core/src/test/java/org/apache/struts2/test/DataAware2.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.test;
+package org.apache.struts2.test;
/**
diff --git a/core/src/test/java/com/opensymphony/xwork2/test/Equidae.java b/core/src/test/java/org/apache/struts2/test/Equidae.java
similarity index 97%
rename from core/src/test/java/com/opensymphony/xwork2/test/Equidae.java
rename to core/src/test/java/org/apache/struts2/test/Equidae.java
index b405cd1e74..f7d90ed7e0 100644
--- a/core/src/test/java/com/opensymphony/xwork2/test/Equidae.java
+++ b/core/src/test/java/org/apache/struts2/test/Equidae.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.test;
+package org.apache.struts2.test;
/**
diff --git a/core/src/test/java/com/opensymphony/xwork2/test/ModelDrivenAction2.java b/core/src/test/java/org/apache/struts2/test/ModelDrivenAction2.java
similarity index 93%
rename from core/src/test/java/com/opensymphony/xwork2/test/ModelDrivenAction2.java
rename to core/src/test/java/org/apache/struts2/test/ModelDrivenAction2.java
index 0c445860b8..e26d567842 100644
--- a/core/src/test/java/com/opensymphony/xwork2/test/ModelDrivenAction2.java
+++ b/core/src/test/java/org/apache/struts2/test/ModelDrivenAction2.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.test;
+package org.apache.struts2.test;
-import com.opensymphony.xwork2.ModelDrivenAction;
+import org.apache.struts2.ModelDrivenAction;
import org.apache.struts2.interceptor.parameter.StrutsParameter;
diff --git a/core/src/test/java/com/opensymphony/xwork2/test/ModelDrivenAnnotationAction2.java b/core/src/test/java/org/apache/struts2/test/ModelDrivenAnnotationAction2.java
similarity index 93%
rename from core/src/test/java/com/opensymphony/xwork2/test/ModelDrivenAnnotationAction2.java
rename to core/src/test/java/org/apache/struts2/test/ModelDrivenAnnotationAction2.java
index 7c26dcfabc..0a5605ce60 100644
--- a/core/src/test/java/com/opensymphony/xwork2/test/ModelDrivenAnnotationAction2.java
+++ b/core/src/test/java/org/apache/struts2/test/ModelDrivenAnnotationAction2.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.test;
+package org.apache.struts2.test;
-import com.opensymphony.xwork2.ModelDrivenAnnotationAction;
+import org.apache.struts2.ModelDrivenAnnotationAction;
import org.apache.struts2.interceptor.parameter.StrutsParameter;
diff --git a/core/src/test/java/com/opensymphony/xwork2/test/SimpleAction2.java b/core/src/test/java/org/apache/struts2/test/SimpleAction2.java
similarity index 93%
rename from core/src/test/java/com/opensymphony/xwork2/test/SimpleAction2.java
rename to core/src/test/java/org/apache/struts2/test/SimpleAction2.java
index 1d9540402a..23fdc7f51f 100644
--- a/core/src/test/java/com/opensymphony/xwork2/test/SimpleAction2.java
+++ b/core/src/test/java/org/apache/struts2/test/SimpleAction2.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.test;
+package org.apache.struts2.test;
-import com.opensymphony.xwork2.SimpleAction;
+import org.apache.struts2.SimpleAction;
import org.apache.struts2.interceptor.parameter.StrutsParameter;
diff --git a/core/src/test/java/com/opensymphony/xwork2/test/SimpleAction3.java b/core/src/test/java/org/apache/struts2/test/SimpleAction3.java
similarity index 92%
rename from core/src/test/java/com/opensymphony/xwork2/test/SimpleAction3.java
rename to core/src/test/java/org/apache/struts2/test/SimpleAction3.java
index 40a4c79b2b..1884295415 100644
--- a/core/src/test/java/com/opensymphony/xwork2/test/SimpleAction3.java
+++ b/core/src/test/java/org/apache/struts2/test/SimpleAction3.java
@@ -16,10 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.test;
+package org.apache.struts2.test;
-import com.opensymphony.xwork2.SimpleAction;
-import com.opensymphony.xwork2.util.Bar;
+import org.apache.struts2.SimpleAction;
+import org.apache.struts2.util.Bar;
import org.apache.struts2.interceptor.parameter.StrutsParameter;
diff --git a/core/src/test/java/com/opensymphony/xwork2/test/SimpleAnnotationAction2.java b/core/src/test/java/org/apache/struts2/test/SimpleAnnotationAction2.java
similarity index 85%
rename from core/src/test/java/com/opensymphony/xwork2/test/SimpleAnnotationAction2.java
rename to core/src/test/java/org/apache/struts2/test/SimpleAnnotationAction2.java
index d5e566e408..2b22ec192b 100644
--- a/core/src/test/java/com/opensymphony/xwork2/test/SimpleAnnotationAction2.java
+++ b/core/src/test/java/org/apache/struts2/test/SimpleAnnotationAction2.java
@@ -16,11 +16,11 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.test;
+package org.apache.struts2.test;
-import com.opensymphony.xwork2.SimpleAnnotationAction;
-import com.opensymphony.xwork2.validator.annotations.IntRangeFieldValidator;
-import com.opensymphony.xwork2.validator.annotations.RequiredFieldValidator;
+import org.apache.struts2.SimpleAnnotationAction;
+import org.apache.struts2.validator.annotations.IntRangeFieldValidator;
+import org.apache.struts2.validator.annotations.RequiredFieldValidator;
import org.apache.struts2.interceptor.parameter.StrutsParameter;
/**
diff --git a/core/src/test/java/com/opensymphony/xwork2/test/SimpleAnnotationAction3.java b/core/src/test/java/org/apache/struts2/test/SimpleAnnotationAction3.java
similarity index 91%
rename from core/src/test/java/com/opensymphony/xwork2/test/SimpleAnnotationAction3.java
rename to core/src/test/java/org/apache/struts2/test/SimpleAnnotationAction3.java
index dea337bce9..a2089e21e5 100644
--- a/core/src/test/java/com/opensymphony/xwork2/test/SimpleAnnotationAction3.java
+++ b/core/src/test/java/org/apache/struts2/test/SimpleAnnotationAction3.java
@@ -16,10 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.test;
+package org.apache.struts2.test;
-import com.opensymphony.xwork2.SimpleAnnotationAction;
-import com.opensymphony.xwork2.util.Bar;
+import org.apache.struts2.SimpleAnnotationAction;
+import org.apache.struts2.util.Bar;
import org.apache.struts2.interceptor.parameter.StrutsParameter;
diff --git a/core/src/test/java/com/opensymphony/xwork2/test/TestArrayBean.java b/core/src/test/java/org/apache/struts2/test/TestArrayBean.java
similarity index 96%
rename from core/src/test/java/com/opensymphony/xwork2/test/TestArrayBean.java
rename to core/src/test/java/org/apache/struts2/test/TestArrayBean.java
index a92a8ffd14..ca715b97c8 100644
--- a/core/src/test/java/com/opensymphony/xwork2/test/TestArrayBean.java
+++ b/core/src/test/java/org/apache/struts2/test/TestArrayBean.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.test;
+package org.apache.struts2.test;
import java.util.ArrayList;
import java.util.List;
diff --git a/core/src/test/java/com/opensymphony/xwork2/test/TestBean2.java b/core/src/test/java/org/apache/struts2/test/TestBean2.java
similarity index 89%
rename from core/src/test/java/com/opensymphony/xwork2/test/TestBean2.java
rename to core/src/test/java/org/apache/struts2/test/TestBean2.java
index 55a146b26d..9fbbdda246 100644
--- a/core/src/test/java/com/opensymphony/xwork2/test/TestBean2.java
+++ b/core/src/test/java/org/apache/struts2/test/TestBean2.java
@@ -16,11 +16,11 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.test;
+package org.apache.struts2.test;
-import com.opensymphony.xwork2.TestBean;
-import com.opensymphony.xwork2.util.Bar;
-import com.opensymphony.xwork2.util.Cat;
+import org.apache.struts2.TestBean;
+import org.apache.struts2.util.Bar;
+import org.apache.struts2.util.Cat;
/**
diff --git a/core/src/test/java/com/opensymphony/xwork2/test/User.java b/core/src/test/java/org/apache/struts2/test/User.java
similarity index 98%
rename from core/src/test/java/com/opensymphony/xwork2/test/User.java
rename to core/src/test/java/org/apache/struts2/test/User.java
index e6c5d2af49..9d41e33a57 100644
--- a/core/src/test/java/com/opensymphony/xwork2/test/User.java
+++ b/core/src/test/java/org/apache/struts2/test/User.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.test;
+package org.apache.struts2.test;
import java.util.Collection;
import java.util.List;
diff --git a/core/src/test/java/com/opensymphony/xwork2/test/UserMarker.java b/core/src/test/java/org/apache/struts2/test/UserMarker.java
similarity index 96%
rename from core/src/test/java/com/opensymphony/xwork2/test/UserMarker.java
rename to core/src/test/java/org/apache/struts2/test/UserMarker.java
index cc9c8c8d4f..afc2ab6012 100644
--- a/core/src/test/java/com/opensymphony/xwork2/test/UserMarker.java
+++ b/core/src/test/java/org/apache/struts2/test/UserMarker.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.test;
+package org.apache.struts2.test;
/**
diff --git a/core/src/test/java/com/opensymphony/xwork2/test/annotations/Address.java b/core/src/test/java/org/apache/struts2/test/annotations/Address.java
similarity index 96%
rename from core/src/test/java/com/opensymphony/xwork2/test/annotations/Address.java
rename to core/src/test/java/org/apache/struts2/test/annotations/Address.java
index 379a587576..c1a618b1d5 100644
--- a/core/src/test/java/com/opensymphony/xwork2/test/annotations/Address.java
+++ b/core/src/test/java/org/apache/struts2/test/annotations/Address.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.test.annotations;
+package org.apache.struts2.test.annotations;
public class Address {
private String line1;
diff --git a/core/src/test/java/com/opensymphony/xwork2/test/annotations/AddressTypeConverter.java b/core/src/test/java/org/apache/struts2/test/annotations/AddressTypeConverter.java
similarity index 93%
rename from core/src/test/java/com/opensymphony/xwork2/test/annotations/AddressTypeConverter.java
rename to core/src/test/java/org/apache/struts2/test/annotations/AddressTypeConverter.java
index c653ec58f0..ac60396071 100644
--- a/core/src/test/java/com/opensymphony/xwork2/test/annotations/AddressTypeConverter.java
+++ b/core/src/test/java/org/apache/struts2/test/annotations/AddressTypeConverter.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.test.annotations;
+package org.apache.struts2.test.annotations;
-import com.opensymphony.xwork2.conversion.impl.DefaultTypeConverter;
+import org.apache.struts2.conversion.impl.DefaultTypeConverter;
import java.util.Map;
diff --git a/core/src/test/java/com/opensymphony/xwork2/test/annotations/Person.java b/core/src/test/java/org/apache/struts2/test/annotations/Person.java
similarity index 95%
rename from core/src/test/java/com/opensymphony/xwork2/test/annotations/Person.java
rename to core/src/test/java/org/apache/struts2/test/annotations/Person.java
index 970b0c5336..4081f1f61e 100644
--- a/core/src/test/java/com/opensymphony/xwork2/test/annotations/Person.java
+++ b/core/src/test/java/org/apache/struts2/test/annotations/Person.java
@@ -16,24 +16,24 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.test.annotations;
+package org.apache.struts2.test.annotations;
public class Person {
private String firstName;
private String lastName;
-
+
public String getFirstName() {
return firstName;
}
-
+
public void setFirstName(String firstName) {
this.firstName = firstName;
}
-
+
public String getLastName() {
return lastName;
}
-
+
public void setLastName(String lastName) {
this.lastName = lastName;
}
diff --git a/core/src/test/java/com/opensymphony/xwork2/test/annotations/PersonAction.java b/core/src/test/java/org/apache/struts2/test/annotations/PersonAction.java
similarity index 74%
rename from core/src/test/java/com/opensymphony/xwork2/test/annotations/PersonAction.java
rename to core/src/test/java/org/apache/struts2/test/annotations/PersonAction.java
index c651edcab7..055a4ce900 100644
--- a/core/src/test/java/com/opensymphony/xwork2/test/annotations/PersonAction.java
+++ b/core/src/test/java/org/apache/struts2/test/annotations/PersonAction.java
@@ -16,27 +16,27 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.test.annotations;
+package org.apache.struts2.test.annotations;
-import com.opensymphony.xwork2.conversion.annotations.Conversion;
-import com.opensymphony.xwork2.conversion.annotations.ConversionType;
-import com.opensymphony.xwork2.conversion.annotations.TypeConversion;
-import com.opensymphony.xwork2.util.Element;
+import org.apache.struts2.conversion.annotations.Conversion;
+import org.apache.struts2.conversion.annotations.ConversionType;
+import org.apache.struts2.conversion.annotations.TypeConversion;
+import org.apache.struts2.util.Element;
import java.util.List;
@Conversion(
conversions={
@TypeConversion(type=ConversionType.APPLICATION,
- key="com.opensymphony.xwork2.test.annotations.Address",
+ key="org.apache.struts2.test.annotations.Address",
converterClass=AddressTypeConverter.class),
@TypeConversion(type=ConversionType.APPLICATION,
- key="com.opensymphony.xwork2.test.annotations.Person",
- converter="com.opensymphony.xwork2.test.annotations.PersonTypeConverter")})
+ key="org.apache.struts2.test.annotations.Person",
+ converter="org.apache.struts2.test.annotations.PersonTypeConverter")})
public class PersonAction {
List users;
private List address;
- @Element(com.opensymphony.xwork2.test.annotations.Address.class)
+ @Element(Address.class)
private List addressesNoGenericElementAnnotation;
public List getUsers() {
diff --git a/core/src/test/java/com/opensymphony/xwork2/test/annotations/PersonActionTest.java b/core/src/test/java/org/apache/struts2/test/annotations/PersonActionTest.java
similarity index 92%
rename from core/src/test/java/com/opensymphony/xwork2/test/annotations/PersonActionTest.java
rename to core/src/test/java/org/apache/struts2/test/annotations/PersonActionTest.java
index 6dad2e8d6a..e5f4ada098 100644
--- a/core/src/test/java/com/opensymphony/xwork2/test/annotations/PersonActionTest.java
+++ b/core/src/test/java/org/apache/struts2/test/annotations/PersonActionTest.java
@@ -16,19 +16,19 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.test.annotations;
+package org.apache.struts2.test.annotations;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.conversion.impl.XWorkConverter;
-import com.opensymphony.xwork2.util.ValueStack;
-import com.opensymphony.xwork2.util.reflection.ReflectionContextState;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.conversion.impl.XWorkConverter;
+import org.apache.struts2.util.ValueStack;
+import org.apache.struts2.util.reflection.ReflectionContextState;
import java.util.Map;
public class PersonActionTest extends XWorkTestCase {
-
+
public void testAddPerson() {
ValueStack stack = ActionContext.getContext().getValueStack();
@@ -43,16 +43,16 @@ public void testAddPerson() {
stack.setValue("users", "jonathan:gerrish");
assertNotNull(action.getUsers());
assertEquals(1, action.getUsers().size());
-
+
for(Object person : action.getUsers()) {
System.out.println("Person: " + person);
}
-
+
assertEquals(Person.class, action.getUsers().get(0).getClass());
assertEquals("jonathan", action.getUsers().get(0).getFirstName());
assertEquals("gerrish", action.getUsers().get(0).getLastName());
}
-
+
public void testAddAddress() {
ValueStack stack = ActionContext.getContext().getValueStack();
Map stackContext = stack.getContext();
@@ -77,7 +77,7 @@ public void testAddAddress() {
assertEquals("London", action.getAddress().get(0).getCity());
assertEquals("England", action.getAddress().get(0).getCountry());
}
-
+
public void testAddAddressesNoGenericElementAnnotation() {
ValueStack stack = ActionContext.getContext().getValueStack();
Map stackContext = stack.getContext();
diff --git a/core/src/test/java/com/opensymphony/xwork2/test/annotations/PersonTypeConverter.java b/core/src/test/java/org/apache/struts2/test/annotations/PersonTypeConverter.java
similarity index 92%
rename from core/src/test/java/com/opensymphony/xwork2/test/annotations/PersonTypeConverter.java
rename to core/src/test/java/org/apache/struts2/test/annotations/PersonTypeConverter.java
index b1fd1aa58f..8e1080a6c7 100644
--- a/core/src/test/java/com/opensymphony/xwork2/test/annotations/PersonTypeConverter.java
+++ b/core/src/test/java/org/apache/struts2/test/annotations/PersonTypeConverter.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.test.annotations;
+package org.apache.struts2.test.annotations;
-import com.opensymphony.xwork2.conversion.impl.DefaultTypeConverter;
+import org.apache.struts2.conversion.impl.DefaultTypeConverter;
import java.util.Map;
diff --git a/core/src/test/java/com/opensymphony/xwork2/test/annotations/ValidateAnnotatedMethodOnlyAction.java b/core/src/test/java/org/apache/struts2/test/annotations/ValidateAnnotatedMethodOnlyAction.java
similarity index 91%
rename from core/src/test/java/com/opensymphony/xwork2/test/annotations/ValidateAnnotatedMethodOnlyAction.java
rename to core/src/test/java/org/apache/struts2/test/annotations/ValidateAnnotatedMethodOnlyAction.java
index aefaa94a09..09f40bd1fc 100644
--- a/core/src/test/java/com/opensymphony/xwork2/test/annotations/ValidateAnnotatedMethodOnlyAction.java
+++ b/core/src/test/java/org/apache/struts2/test/annotations/ValidateAnnotatedMethodOnlyAction.java
@@ -16,10 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.test.annotations;
+package org.apache.struts2.test.annotations;
-import com.opensymphony.xwork2.ActionSupport;
-import com.opensymphony.xwork2.validator.annotations.ExpressionValidator;
+import org.apache.struts2.ActionSupport;
+import org.apache.struts2.validator.annotations.ExpressionValidator;
import org.apache.struts2.interceptor.parameter.StrutsParameter;
/**
diff --git a/core/src/test/java/com/opensymphony/xwork2/test/subtest/NullModelDrivenAction.java b/core/src/test/java/org/apache/struts2/test/subtest/NullModelDrivenAction.java
similarity index 92%
rename from core/src/test/java/com/opensymphony/xwork2/test/subtest/NullModelDrivenAction.java
rename to core/src/test/java/org/apache/struts2/test/subtest/NullModelDrivenAction.java
index be0916d9dc..ea93e3bf37 100644
--- a/core/src/test/java/com/opensymphony/xwork2/test/subtest/NullModelDrivenAction.java
+++ b/core/src/test/java/org/apache/struts2/test/subtest/NullModelDrivenAction.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.test.subtest;
+package org.apache.struts2.test.subtest;
-import com.opensymphony.xwork2.ModelDrivenAction;
+import org.apache.struts2.ModelDrivenAction;
/**
* Extends ModelDrivenAction to return a null model.
diff --git a/core/src/test/java/org/apache/struts2/util/StrutsUtilTest.java b/core/src/test/java/org/apache/struts2/test/util/StrutsUtilTest.java
similarity index 98%
rename from core/src/test/java/org/apache/struts2/util/StrutsUtilTest.java
rename to core/src/test/java/org/apache/struts2/test/util/StrutsUtilTest.java
index 0080ed5271..38be9cf62f 100644
--- a/core/src/test/java/org/apache/struts2/util/StrutsUtilTest.java
+++ b/core/src/test/java/org/apache/struts2/test/util/StrutsUtilTest.java
@@ -16,10 +16,12 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.apache.struts2.util;
+package org.apache.struts2.test.util;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.util.ListEntry;
+import org.apache.struts2.util.StrutsUtil;
+import org.apache.struts2.util.ValueStack;
import org.apache.struts2.StrutsInternalTestCase;
import org.apache.struts2.TestAction;
import org.springframework.mock.web.MockHttpServletRequest;
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/Animal.java b/core/src/test/java/org/apache/struts2/util/Animal.java
similarity index 95%
rename from core/src/test/java/com/opensymphony/xwork2/util/Animal.java
rename to core/src/test/java/org/apache/struts2/util/Animal.java
index cc26a45240..0c31dffe00 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/Animal.java
+++ b/core/src/test/java/org/apache/struts2/util/Animal.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
public interface Animal {
String getName();
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/AnnotatedCat.java b/core/src/test/java/org/apache/struts2/util/AnnotatedCat.java
similarity index 90%
rename from core/src/test/java/com/opensymphony/xwork2/util/AnnotatedCat.java
rename to core/src/test/java/org/apache/struts2/util/AnnotatedCat.java
index 03a751908e..9b9b076579 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/AnnotatedCat.java
+++ b/core/src/test/java/org/apache/struts2/util/AnnotatedCat.java
@@ -16,10 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
-import com.opensymphony.xwork2.conversion.annotations.Conversion;
-import com.opensymphony.xwork2.conversion.annotations.TypeConversion;
+import org.apache.struts2.conversion.annotations.Conversion;
+import org.apache.struts2.conversion.annotations.TypeConversion;
import java.util.List;
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/AnnotationUtilsTest.java b/core/src/test/java/org/apache/struts2/util/AnnotationUtilsTest.java
similarity index 84%
rename from core/src/test/java/com/opensymphony/xwork2/util/AnnotationUtilsTest.java
rename to core/src/test/java/org/apache/struts2/util/AnnotationUtilsTest.java
index fdc5416b41..199524648e 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/AnnotationUtilsTest.java
+++ b/core/src/test/java/org/apache/struts2/util/AnnotationUtilsTest.java
@@ -16,14 +16,14 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
-import com.opensymphony.xwork2.util.annotation.Dummy2Class;
-import com.opensymphony.xwork2.util.annotation.Dummy3Class;
-import com.opensymphony.xwork2.util.annotation.DummyClass;
-import com.opensymphony.xwork2.util.annotation.DummyClassExt;
-import com.opensymphony.xwork2.util.annotation.MyAnnotation;
-import com.opensymphony.xwork2.util.annotation.MyAnnotation2;
+import org.apache.struts2.util.annotation.Dummy2Class;
+import org.apache.struts2.util.annotation.Dummy3Class;
+import org.apache.struts2.util.annotation.DummyClass;
+import org.apache.struts2.util.annotation.DummyClassExt;
+import org.apache.struts2.util.annotation.MyAnnotation;
+import org.apache.struts2.util.annotation.MyAnnotation2;
import junit.framework.TestCase;
import java.util.HashSet;
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/Bar.java b/core/src/test/java/org/apache/struts2/util/Bar.java
similarity index 95%
rename from core/src/test/java/com/opensymphony/xwork2/util/Bar.java
rename to core/src/test/java/org/apache/struts2/util/Bar.java
index 6332a570b1..03960c395b 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/Bar.java
+++ b/core/src/test/java/org/apache/struts2/util/Bar.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
-import com.opensymphony.xwork2.ActionSupport;
+import org.apache.struts2.ActionSupport;
import org.apache.struts2.interceptor.parameter.StrutsParameter;
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/BarJunior.java b/core/src/test/java/org/apache/struts2/util/BarJunior.java
similarity index 95%
rename from core/src/test/java/com/opensymphony/xwork2/util/BarJunior.java
rename to core/src/test/java/org/apache/struts2/util/BarJunior.java
index f2b1c9145d..8950a713d2 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/BarJunior.java
+++ b/core/src/test/java/org/apache/struts2/util/BarJunior.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
public class BarJunior extends Bar {
}
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/Cat.java b/core/src/test/java/org/apache/struts2/util/Cat.java
similarity index 97%
rename from core/src/test/java/com/opensymphony/xwork2/util/Cat.java
rename to core/src/test/java/org/apache/struts2/util/Cat.java
index 2ebdd136a3..a6120faf17 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/Cat.java
+++ b/core/src/test/java/org/apache/struts2/util/Cat.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
import java.util.List;
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/ClassLoaderUtilTest.java b/core/src/test/java/org/apache/struts2/util/ClassLoaderUtilTest.java
similarity index 98%
rename from core/src/test/java/com/opensymphony/xwork2/util/ClassLoaderUtilTest.java
rename to core/src/test/java/org/apache/struts2/util/ClassLoaderUtilTest.java
index 90cc5f1bfe..8ed2d51ce6 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/ClassLoaderUtilTest.java
+++ b/core/src/test/java/org/apache/struts2/util/ClassLoaderUtilTest.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
import junit.framework.TestCase;
@@ -31,17 +31,17 @@ public class ClassLoaderUtilTest extends TestCase {
public void testGetResources() throws IOException {
Iterator i = ClassLoaderUtil.getResources("xwork-sample.xml", ClassLoaderUtilTest.class, false);
assertNotNull(i);
-
+
assertTrue(i.hasNext());
URL url = i.next();
assertTrue(url.toString().endsWith("xwork-sample.xml"));
assertTrue(!i.hasNext());
}
-
+
public void testGetResources_Multiple() throws IOException {
Iterator i = ClassLoaderUtil.getResources("struts-2.0.dtd", ClassLoaderUtilTest.class, false);
assertNotNull(i);
-
+
assertTrue(i.hasNext());
URL url = i.next();
assertTrue(url.toString().endsWith("struts-2.0.dtd"));
@@ -65,17 +65,17 @@ public void testGetResources_Aggregate() throws IOException {
public void testGetResources_None() throws IOException {
Iterator i = ClassLoaderUtil.getResources("asdfasdf.html", ClassLoaderUtilTest.class, false);
assertNotNull(i);
-
+
assertTrue(!i.hasNext());
}
public void testGetResource() {
URL url = ClassLoaderUtil.getResource("xwork-sample.xml", ClassLoaderUtilTest.class);
assertNotNull(url);
-
+
assertTrue(url.toString().endsWith("xwork-sample.xml"));
}
-
+
public void testGetResource_None() {
URL url = ClassLoaderUtil.getResource("asf.xml", ClassLoaderUtilTest.class);
assertNull(url);
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/ClassPathFinderTest.java b/core/src/test/java/org/apache/struts2/util/ClassPathFinderTest.java
similarity index 75%
rename from core/src/test/java/com/opensymphony/xwork2/util/ClassPathFinderTest.java
rename to core/src/test/java/org/apache/struts2/util/ClassPathFinderTest.java
index 17a9deb25b..f754e3a457 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/ClassPathFinderTest.java
+++ b/core/src/test/java/org/apache/struts2/util/ClassPathFinderTest.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
-import com.opensymphony.xwork2.XWorkTestCase;
+import org.apache.struts2.XWorkTestCase;
import org.apache.commons.io.IOUtils;
import java.io.IOException;
@@ -35,28 +35,28 @@ public void testFinder() {
ClassPathFinder finder = new ClassPathFinder();
finder.setPattern("**/xwork-test-wildcard-*.xml");
Vector found = finder.findMatches();
- assertEquals(found.contains("com/opensymphony/xwork2/config/providers/xwork-test-wildcard-1.xml"), true );
- assertEquals(found.contains("com/opensymphony/xwork2/config/providers/xwork-test-wildcard-2.xml"), true );
- assertEquals(found.contains("com/opensymphony/xwork2/config/providers/xwork-test-wildcard-include.xml"), true );
- assertEquals(found.contains("com/opensymphony/xwork2/config/providers/xwork-test-results.xml"), false);
-
+ assertEquals(found.contains("org/apache/struts2/config/providers/xwork-test-wildcard-1.xml"), true );
+ assertEquals(found.contains("org/apache/struts2/config/providers/xwork-test-wildcard-2.xml"), true );
+ assertEquals(found.contains("org/apache/struts2/config/providers/xwork-test-wildcard-include.xml"), true );
+ assertEquals(found.contains("org/apache/struts2/config/providers/xwork-test-results.xml"), false);
+
ClassPathFinder finder2 = new ClassPathFinder();
- finder2.setPattern("com/*/xwork2/config/providers/xwork-test-wildcard-1.xml");
+ finder2.setPattern("org/*/struts2/config/providers/xwork-test-wildcard-1.xml");
Vector found2 = finder2.findMatches();
- assertEquals(found2.contains("com/opensymphony/xwork2/config/providers/xwork-test-wildcard-1.xml"), true);
- assertEquals(found2.contains("com/opensymphony/xwork2/config/providers/xwork-test-wildcard-2.xml"), false);
-
+ assertEquals(found2.contains("org/apache/struts2/config/providers/xwork-test-wildcard-1.xml"), true);
+ assertEquals(found2.contains("org/apache/struts2/config/providers/xwork-test-wildcard-2.xml"), false);
+
ClassPathFinder finder3 = new ClassPathFinder();
- finder3.setPattern("com/opensymphony/xwork2/config/providers/xwork-test-wildcard-1.xml");
+ finder3.setPattern("org/apache/struts2/config/providers/xwork-test-wildcard-1.xml");
Vector found3 = finder3.findMatches();
- assertEquals(found3.contains("com/opensymphony/xwork2/config/providers/xwork-test-wildcard-1.xml"), true);
- assertEquals(found3.contains("com/opensymphony/xwork2/config/providers/xwork-test-wildcard-2.xml"), false);
-
+ assertEquals(found3.contains("org/apache/struts2/config/providers/xwork-test-wildcard-1.xml"), true);
+ assertEquals(found3.contains("org/apache/struts2/config/providers/xwork-test-wildcard-2.xml"), false);
+
ClassPathFinder finder4 = new ClassPathFinder();
finder4.setPattern("no/matches/*");
Vector found4 = finder4.findMatches();
assertEquals(found4.isEmpty(), true);
-
+
}
public void testFinderNotURLClassLoader() throws Exception {
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/DefaultFileManagerTest.java b/core/src/test/java/org/apache/struts2/util/DefaultFileManagerTest.java
similarity index 97%
rename from core/src/test/java/com/opensymphony/xwork2/util/DefaultFileManagerTest.java
rename to core/src/test/java/org/apache/struts2/util/DefaultFileManagerTest.java
index c13e87383d..dce08b2bba 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/DefaultFileManagerTest.java
+++ b/core/src/test/java/org/apache/struts2/util/DefaultFileManagerTest.java
@@ -16,11 +16,11 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
-import com.opensymphony.xwork2.FileManager;
-import com.opensymphony.xwork2.FileManagerFactory;
-import com.opensymphony.xwork2.XWorkTestCase;
+import org.apache.struts2.FileManager;
+import org.apache.struts2.FileManagerFactory;
+import org.apache.struts2.XWorkTestCase;
import java.io.InputStream;
import java.net.*;
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/Dog.java b/core/src/test/java/org/apache/struts2/util/Dog.java
similarity index 98%
rename from core/src/test/java/com/opensymphony/xwork2/util/Dog.java
rename to core/src/test/java/org/apache/struts2/util/Dog.java
index ee4e74f1ab..9f508fa97f 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/Dog.java
+++ b/core/src/test/java/org/apache/struts2/util/Dog.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
import java.io.Serializable;
@@ -86,7 +86,7 @@ public void setName(String name) {
public String getName() {
return name;
}
-
+
public static String getDeity() {
return deity;
}
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/DomHelperTest.java b/core/src/test/java/org/apache/struts2/util/DomHelperTest.java
similarity index 96%
rename from core/src/test/java/com/opensymphony/xwork2/util/DomHelperTest.java
rename to core/src/test/java/org/apache/struts2/util/DomHelperTest.java
index 4c56f57597..68e6021c1a 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/DomHelperTest.java
+++ b/core/src/test/java/org/apache/struts2/util/DomHelperTest.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
-import com.opensymphony.xwork2.util.location.Location;
+import org.apache.struts2.util.location.Location;
import junit.framework.TestCase;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/DummyObjectFactory.java b/core/src/test/java/org/apache/struts2/util/DummyObjectFactory.java
similarity index 91%
rename from core/src/test/java/com/opensymphony/xwork2/util/DummyObjectFactory.java
rename to core/src/test/java/org/apache/struts2/util/DummyObjectFactory.java
index 3c48e4c00d..166324b2ed 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/DummyObjectFactory.java
+++ b/core/src/test/java/org/apache/struts2/util/DummyObjectFactory.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
-import com.opensymphony.xwork2.ObjectFactory;
+import org.apache.struts2.ObjectFactory;
public class DummyObjectFactory extends ObjectFactory {
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/Foo.java b/core/src/test/java/org/apache/struts2/util/Foo.java
similarity index 94%
rename from core/src/test/java/com/opensymphony/xwork2/util/Foo.java
rename to core/src/test/java/org/apache/struts2/util/Foo.java
index 80fb9c84f1..bffe50d5a3 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/Foo.java
+++ b/core/src/test/java/org/apache/struts2/util/Foo.java
@@ -16,11 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
-import com.opensymphony.xwork2.conversion.annotations.ConversionRule;
-import com.opensymphony.xwork2.conversion.annotations.ConversionType;
-import com.opensymphony.xwork2.conversion.annotations.TypeConversion;
+import org.apache.struts2.conversion.annotations.ConversionRule;
+import org.apache.struts2.conversion.annotations.TypeConversion;
import java.util.*;
@@ -175,7 +174,7 @@ public void setAnnotatedBarCollection(Collection annotatedBarCollection) {
this.annotatedBarCollection = annotatedBarCollection;
}
- @TypeConversion(rule = ConversionRule.ELEMENT, converter = "com.opensymphony.xwork2.util.Bar")
+ @TypeConversion(rule = ConversionRule.ELEMENT, converter = "org.apache.struts2.util.Bar")
public Collection getAnnotatedBarCollection() {
return annotatedBarCollection;
}
@@ -219,20 +218,20 @@ public void setUseful(boolean useful) {
public boolean isUseful() {
return useful;
}
-
-
+
+
public Date getEvent() {
return event;
}
-
+
public void setEvent(Date event) {
this.event = event;
}
-
+
public Date getMeeting() {
return meeting;
}
-
+
public void setMeeting(Date meeting) {
this.meeting = meeting;
}
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/FurColor.java b/core/src/test/java/org/apache/struts2/util/FurColor.java
similarity index 95%
rename from core/src/test/java/com/opensymphony/xwork2/util/FurColor.java
rename to core/src/test/java/org/apache/struts2/util/FurColor.java
index 4b49bd69f5..3bd43d853c 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/FurColor.java
+++ b/core/src/test/java/org/apache/struts2/util/FurColor.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
public enum FurColor {
BROWN, BLACK, GREEN
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/GetPropertiesTest.java b/core/src/test/java/org/apache/struts2/util/GetPropertiesTest.java
similarity index 92%
rename from core/src/test/java/com/opensymphony/xwork2/util/GetPropertiesTest.java
rename to core/src/test/java/org/apache/struts2/util/GetPropertiesTest.java
index 4b29b28042..83e91644fa 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/GetPropertiesTest.java
+++ b/core/src/test/java/org/apache/struts2/util/GetPropertiesTest.java
@@ -16,10 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.XWorkTestCase;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.XWorkTestCase;
import java.util.ArrayList;
import java.util.Collection;
@@ -36,9 +36,9 @@ public class GetPropertiesTest extends XWorkTestCase {
public void testGetCollectionProperties() {
doGetCollectionPropertiesTest(new ArrayList());
doGetCollectionPropertiesTest(new HashSet());
-
+
}
-
+
public void doGetCollectionPropertiesTest(Collection c) {
ValueStack vs = ActionContext.getContext().getValueStack();
Foo foo = new Foo();
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/Indexed.java b/core/src/test/java/org/apache/struts2/util/Indexed.java
similarity index 97%
rename from core/src/test/java/com/opensymphony/xwork2/util/Indexed.java
rename to core/src/test/java/org/apache/struts2/util/Indexed.java
index 1b724cd17b..b442b018af 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/Indexed.java
+++ b/core/src/test/java/org/apache/struts2/util/Indexed.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
import java.util.HashMap;
import java.util.Map;
diff --git a/core/src/test/java/org/apache/struts2/util/InvocationSessionStoreTest.java b/core/src/test/java/org/apache/struts2/util/InvocationSessionStoreTest.java
index 37f1725e59..5939d041e5 100644
--- a/core/src/test/java/org/apache/struts2/util/InvocationSessionStoreTest.java
+++ b/core/src/test/java/org/apache/struts2/util/InvocationSessionStoreTest.java
@@ -29,10 +29,10 @@
import org.springframework.mock.web.MockPageContext;
import com.mockobjects.dynamic.Mock;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.ActionProxy;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.util.ValueStack;
/**
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/ListHolder.java b/core/src/test/java/org/apache/struts2/util/ListHolder.java
similarity index 97%
rename from core/src/test/java/com/opensymphony/xwork2/util/ListHolder.java
rename to core/src/test/java/org/apache/struts2/util/ListHolder.java
index e9fe9c11c4..740e125476 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/ListHolder.java
+++ b/core/src/test/java/org/apache/struts2/util/ListHolder.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
import java.util.Date;
import java.util.List;
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/MyBean.java b/core/src/test/java/org/apache/struts2/util/MyBean.java
similarity index 97%
rename from core/src/test/java/com/opensymphony/xwork2/util/MyBean.java
rename to core/src/test/java/org/apache/struts2/util/MyBean.java
index 5758c320a2..0934a1a0aa 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/MyBean.java
+++ b/core/src/test/java/org/apache/struts2/util/MyBean.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
import java.io.Serializable;
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/MyBeanAction.java b/core/src/test/java/org/apache/struts2/util/MyBeanAction.java
similarity index 88%
rename from core/src/test/java/com/opensymphony/xwork2/util/MyBeanAction.java
rename to core/src/test/java/org/apache/struts2/util/MyBeanAction.java
index aeac35609c..f59502e112 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/MyBeanAction.java
+++ b/core/src/test/java/org/apache/struts2/util/MyBeanAction.java
@@ -16,13 +16,12 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.conversion.annotations.Conversion;
-import com.opensymphony.xwork2.conversion.annotations.ConversionRule;
-import com.opensymphony.xwork2.conversion.annotations.ConversionType;
-import com.opensymphony.xwork2.conversion.annotations.TypeConversion;
+import org.apache.struts2.Action;
+import org.apache.struts2.conversion.annotations.Conversion;
+import org.apache.struts2.conversion.annotations.ConversionRule;
+import org.apache.struts2.conversion.annotations.TypeConversion;
import java.util.ArrayList;
import java.util.HashMap;
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/MyBeanActionTest.java b/core/src/test/java/org/apache/struts2/util/MyBeanActionTest.java
similarity index 96%
rename from core/src/test/java/com/opensymphony/xwork2/util/MyBeanActionTest.java
rename to core/src/test/java/org/apache/struts2/util/MyBeanActionTest.java
index f66b85c289..98c836d5b3 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/MyBeanActionTest.java
+++ b/core/src/test/java/org/apache/struts2/util/MyBeanActionTest.java
@@ -16,12 +16,12 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionProxy;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.config.providers.XmlConfigurationProvider;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.config.providers.XmlConfigurationProvider;
import org.apache.struts2.config.StrutsXmlConfigurationProvider;
import org.apache.struts2.dispatcher.HttpParameters;
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/MyNumber.java b/core/src/test/java/org/apache/struts2/util/MyNumber.java
similarity index 95%
rename from core/src/test/java/com/opensymphony/xwork2/util/MyNumber.java
rename to core/src/test/java/org/apache/struts2/util/MyNumber.java
index 218747234d..de9394371c 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/MyNumber.java
+++ b/core/src/test/java/org/apache/struts2/util/MyNumber.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
abstract class MyNumber extends Number {
}
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/NamedVariablePatternMatcherTest.java b/core/src/test/java/org/apache/struts2/util/NamedVariablePatternMatcherTest.java
similarity index 97%
rename from core/src/test/java/com/opensymphony/xwork2/util/NamedVariablePatternMatcherTest.java
rename to core/src/test/java/org/apache/struts2/util/NamedVariablePatternMatcherTest.java
index da7f3f0214..d0f16c5020 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/NamedVariablePatternMatcherTest.java
+++ b/core/src/test/java/org/apache/struts2/util/NamedVariablePatternMatcherTest.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
-import com.opensymphony.xwork2.util.NamedVariablePatternMatcher.CompiledPattern;
+import org.apache.struts2.util.NamedVariablePatternMatcher.CompiledPattern;
import org.junit.Test;
import java.util.Arrays;
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/Owner.java b/core/src/test/java/org/apache/struts2/util/Owner.java
similarity index 96%
rename from core/src/test/java/com/opensymphony/xwork2/util/Owner.java
rename to core/src/test/java/org/apache/struts2/util/Owner.java
index cdb2c4fb79..d42a4c39e7 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/Owner.java
+++ b/core/src/test/java/org/apache/struts2/util/Owner.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
/**
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/ResolverUtilTest.java b/core/src/test/java/org/apache/struts2/util/ResolverUtilTest.java
similarity index 84%
rename from core/src/test/java/com/opensymphony/xwork2/util/ResolverUtilTest.java
rename to core/src/test/java/org/apache/struts2/util/ResolverUtilTest.java
index 73d81724d3..ecc31cf557 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/ResolverUtilTest.java
+++ b/core/src/test/java/org/apache/struts2/util/ResolverUtilTest.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
-import com.opensymphony.xwork2.ObjectFactory;
+import org.apache.struts2.ObjectFactory;
import junit.framework.TestCase;
import java.net.URL;
@@ -28,35 +28,35 @@ public class ResolverUtilTest extends TestCase {
public void testSimpleFind() throws Exception {
ResolverUtil resolver = new ResolverUtil<>();
- resolver.findImplementations(ObjectFactory.class, "com");
+ resolver.findImplementations(ObjectFactory.class, "org");
Set> impls = resolver.getClasses();
-
+
assertTrue(impls.contains(ObjectFactory.class));
assertTrue(impls.contains(DummyObjectFactory.class));
}
-
+
public void testMissingSomeFind() throws Exception {
ResolverUtil resolver = new ResolverUtil<>();
- resolver.findImplementations(ObjectFactory.class, "com.opensymphony.xwork2.util");
+ resolver.findImplementations(ObjectFactory.class, "org.apache.struts2.util");
Set> impls = resolver.getClasses();
-
+
assertFalse(impls.contains(ObjectFactory.class));
assertTrue(impls.contains(DummyObjectFactory.class));
}
-
+
public void testFindNamedResource() throws Exception {
ResolverUtil resolver = new ResolverUtil();
resolver.findNamedResource("xwork-default.xml", "");
Set impls = resolver.getResources();
-
+
assertTrue(impls.size() > 0);
}
-
+
public void testFindNamedResourceInDir() throws Exception {
ResolverUtil resolver = new ResolverUtil();
- resolver.findNamedResource("SimpleAction.properties", "com/opensymphony");
+ resolver.findNamedResource("SimpleAction.properties", "org/apache");
Set impls = resolver.getResources();
-
+
assertTrue(impls.size() > 0);
}
diff --git a/core/src/test/java/org/apache/struts2/util/SecurityMemberAccessInServletsTest.java b/core/src/test/java/org/apache/struts2/util/SecurityMemberAccessInServletsTest.java
index 68766c4779..1a391bb1c3 100644
--- a/core/src/test/java/org/apache/struts2/util/SecurityMemberAccessInServletsTest.java
+++ b/core/src/test/java/org/apache/struts2/util/SecurityMemberAccessInServletsTest.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.util;
-import com.opensymphony.xwork2.ognl.SecurityMemberAccess;
+import org.apache.struts2.ognl.SecurityMemberAccess;
import jakarta.servlet.jsp.tagext.TagSupport;
import org.apache.struts2.StrutsInternalTestCase;
import org.apache.struts2.views.jsp.ActionTag;
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/StrutsLocalizedTextProviderTest.java b/core/src/test/java/org/apache/struts2/util/StrutsLocalizedTextProviderTest.java
similarity index 93%
rename from core/src/test/java/com/opensymphony/xwork2/util/StrutsLocalizedTextProviderTest.java
rename to core/src/test/java/org/apache/struts2/util/StrutsLocalizedTextProviderTest.java
index 7c19a5f0e3..39bc8f8cea 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/StrutsLocalizedTextProviderTest.java
+++ b/core/src/test/java/org/apache/struts2/util/StrutsLocalizedTextProviderTest.java
@@ -16,21 +16,21 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
import com.mockobjects.dynamic.Mock;
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.ActionProxy;
-import com.opensymphony.xwork2.ActionSupport;
-import com.opensymphony.xwork2.LocalizedTextProvider;
-import com.opensymphony.xwork2.ModelDriven;
-import com.opensymphony.xwork2.SimpleAction;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.config.providers.XmlConfigurationProvider;
-import com.opensymphony.xwork2.test.ModelDrivenAction2;
-import com.opensymphony.xwork2.test.TestBean2;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.ActionSupport;
+import org.apache.struts2.LocalizedTextProvider;
+import org.apache.struts2.ModelDriven;
+import org.apache.struts2.SimpleAction;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.config.providers.XmlConfigurationProvider;
+import org.apache.struts2.test.ModelDrivenAction2;
+import org.apache.struts2.test.TestBean2;
import org.apache.struts2.config.StrutsXmlConfigurationProvider;
import org.apache.struts2.interceptor.parameter.StrutsParameter;
@@ -117,7 +117,7 @@ public void testNullKeys() {
}
public void testActionGetTextXXX() throws Exception {
- localizedTextProvider.addDefaultResourceBundle("com/opensymphony/xwork2/util/FindMe");
+ localizedTextProvider.addDefaultResourceBundle("org/apache/struts2/util/FindMe");
SimpleAction action = new SimpleAction();
container.inject(action);
@@ -139,14 +139,14 @@ public void testAddDefaultResourceBundle() {
String text = localizedTextProvider.findDefaultText("foo.range", Locale.getDefault());
assertNull("Found message when it should not be available.", text);
- localizedTextProvider.addDefaultResourceBundle("com/opensymphony/xwork2/SimpleAction");
+ localizedTextProvider.addDefaultResourceBundle("org/apache/struts2/SimpleAction");
String message = localizedTextProvider.findDefaultText("foo.range", Locale.US);
assertEquals("Foo Range Message", message);
}
public void testAddDefaultResourceBundle2() throws Exception {
- localizedTextProvider.addDefaultResourceBundle("com/opensymphony/xwork2/SimpleAction");
+ localizedTextProvider.addDefaultResourceBundle("org/apache/struts2/SimpleAction");
ActionProxy proxy = actionProxyFactory.createActionProxy("/", "packagelessAction", null, new HashMap(), false, true);
proxy.execute();
@@ -161,7 +161,7 @@ public void testDefaultMessageOverride() throws Exception {
String message = localizedTextProvider.findDefaultText("xwork.error.action.execution", Locale.getDefault());
assertEquals("Error during Action invocation", message);
- localizedTextProvider.addDefaultResourceBundle("com/opensymphony/xwork2/test");
+ localizedTextProvider.addDefaultResourceBundle("org/apache/struts2/test");
message = localizedTextProvider.findDefaultText("xwork.error.action.execution", Locale.getDefault());
assertEquals("Testing resource bundle override", message);
@@ -216,7 +216,7 @@ public void testParameterizedDefaultMessageWithPackage() throws Exception {
}
public void testLocalizedDateFormatIsUsed() throws ParseException {
- localizedTextProvider.addDefaultResourceBundle("com/opensymphony/xwork2/util/LocalizedTextUtilTest");
+ localizedTextProvider.addDefaultResourceBundle("org/apache/struts2/util/LocalizedTextUtilTest");
Date date = DateFormat.getDateInstance(DateFormat.SHORT, Locale.US).parse("01/01/2015");
Object[] params = new Object[]{date};
String usDate = localizedTextProvider.findDefaultText("test.format.date", Locale.US, params);
@@ -226,7 +226,7 @@ public void testLocalizedDateFormatIsUsed() throws ParseException {
}
public void testXW377() {
- localizedTextProvider.addDefaultResourceBundle("com/opensymphony/xwork2/util/LocalizedTextUtilTest");
+ localizedTextProvider.addDefaultResourceBundle("org/apache/struts2/util/LocalizedTextUtilTest");
String text = localizedTextProvider.findText(Bar.class, "xw377", ActionContext.getContext().getLocale(), "xw377", null, ActionContext.getContext().getValueStack());
assertEquals("xw377", text); // should not log
@@ -249,9 +249,9 @@ public void testXW404() {
// Before this fix loading the bundle for Germany failed since Italy have previously failed and thus the misses cache
// contained a false entry
- ResourceBundle rbFrance = localizedTextProvider.findResourceBundle("com/opensymphony/xwork2/util/XW404", Locale.FRANCE);
- ResourceBundle rbItaly = localizedTextProvider.findResourceBundle("com/opensymphony/xwork2/util/XW404", Locale.ITALY);
- ResourceBundle rbGermany = localizedTextProvider.findResourceBundle("com/opensymphony/xwork2/util/XW404", Locale.GERMANY);
+ ResourceBundle rbFrance = localizedTextProvider.findResourceBundle("org/apache/struts2/util/XW404", Locale.FRANCE);
+ ResourceBundle rbItaly = localizedTextProvider.findResourceBundle("org/apache/struts2/util/XW404", Locale.ITALY);
+ ResourceBundle rbGermany = localizedTextProvider.findResourceBundle("org/apache/struts2/util/XW404", Locale.GERMANY);
assertNotNull(rbFrance);
assertEquals("Bonjour", rbFrance.getString("hello"));
@@ -286,37 +286,37 @@ public void testLocalizedTextProviderClearingMethods() {
2, testStrutsLocalizedTextProvider.currentBundlesMapSize());
// Add and then access four test bundles to populate their cache entries and test bundle map size.
- testStrutsLocalizedTextProvider.addDefaultResourceBundle("com/opensymphony/xwork2/util/LocalizedTextUtilTest");
- testStrutsLocalizedTextProvider.addDefaultResourceBundle("com/opensymphony/xwork2/util/FindMe");
- testStrutsLocalizedTextProvider.addDefaultResourceBundle("com/opensymphony/xwork2/SimpleAction");
- testStrutsLocalizedTextProvider.addDefaultResourceBundle("com/opensymphony/xwork2/test");
+ testStrutsLocalizedTextProvider.addDefaultResourceBundle("org/apache/struts2/util/LocalizedTextUtilTest");
+ testStrutsLocalizedTextProvider.addDefaultResourceBundle("org/apache/struts2/util/FindMe");
+ testStrutsLocalizedTextProvider.addDefaultResourceBundle("org/apache/struts2/SimpleAction");
+ testStrutsLocalizedTextProvider.addDefaultResourceBundle("org/apache/struts2/test");
tempBundle = testStrutsLocalizedTextProvider.findResourceBundle(
- "com/opensymphony/xwork2/util/LocalizedTextUtilTest", Locale.ENGLISH);
- assertNotNull("com/opensymphony/xwork2/util/LocalizedTextUtilTest retrieval null ?", tempBundle);
+ "org/apache/struts2/util/LocalizedTextUtilTest", Locale.ENGLISH);
+ assertNotNull("org/apache/struts2/util/LocalizedTextUtilTest retrieval null ?", tempBundle);
tempBundle = testStrutsLocalizedTextProvider.findResourceBundle(
- "com/opensymphony/xwork2/util/FindMe", Locale.ENGLISH);
- assertNotNull("com/opensymphony/xwork2/util/FindMe retrieval null ?", tempBundle);
+ "org/apache/struts2/util/FindMe", Locale.ENGLISH);
+ assertNotNull("org/apache/struts2/util/FindMe retrieval null ?", tempBundle);
tempBundle = testStrutsLocalizedTextProvider.findResourceBundle(
- "com/opensymphony/xwork2/SimpleAction", Locale.ENGLISH);
- assertNotNull("com/opensymphony/xwork2/SimpleAction retrieval null ?", tempBundle);
+ "org/apache/struts2/SimpleAction", Locale.ENGLISH);
+ assertNotNull("org/apache/struts2/SimpleAction retrieval null ?", tempBundle);
tempBundle = testStrutsLocalizedTextProvider.findResourceBundle(
- "com/opensymphony/xwork2/test", Locale.ENGLISH);
- assertNotNull("com/opensymphony/xwork2/test retrieval null ?", tempBundle);
+ "org/apache/struts2/test", Locale.ENGLISH);
+ assertNotNull("org/apache/struts2/test retrieval null ?", tempBundle);
assertEquals("testStrutsLocalizedTextProvider bundle map size not 6 after retrievals ?",
6, testStrutsLocalizedTextProvider.currentBundlesMapSize());
// Expect the call to function with bundle name + locale. Remove all four of the non-default
// bundles and confirm the bundle map size changes.
- testStrutsLocalizedTextProvider.callClearBundleWithLocale("com/opensymphony/xwork2/test", Locale.ENGLISH);
+ testStrutsLocalizedTextProvider.callClearBundleWithLocale("org/apache/struts2/test", Locale.ENGLISH);
assertEquals("testStrutsLocalizedTextProvider bundle map size not 5 after locale clear call ?",
5, testStrutsLocalizedTextProvider.currentBundlesMapSize());
- testStrutsLocalizedTextProvider.callClearBundleWithLocale("com/opensymphony/xwork2/SimpleAction", Locale.ENGLISH);
+ testStrutsLocalizedTextProvider.callClearBundleWithLocale("org/apache/struts2/SimpleAction", Locale.ENGLISH);
assertEquals("testStrutsLocalizedTextProvider bundle map size not 4 after locale clear call ?",
4, testStrutsLocalizedTextProvider.currentBundlesMapSize());
- testStrutsLocalizedTextProvider.callClearBundleWithLocale("com/opensymphony/xwork2/util/FindMe", Locale.ENGLISH);
+ testStrutsLocalizedTextProvider.callClearBundleWithLocale("org/apache/struts2/util/FindMe", Locale.ENGLISH);
assertEquals("testStrutsLocalizedTextProvider bundle map size not 3 after locale clear call ?",
3, testStrutsLocalizedTextProvider.currentBundlesMapSize());
- testStrutsLocalizedTextProvider.callClearBundleWithLocale("com/opensymphony/xwork2/util/LocalizedTextUtilTest", Locale.ENGLISH);
+ testStrutsLocalizedTextProvider.callClearBundleWithLocale("org/apache/struts2/util/LocalizedTextUtilTest", Locale.ENGLISH);
assertEquals("testStrutsLocalizedTextProvider bundle map size not 2 after locale clear call ?",
2, testStrutsLocalizedTextProvider.currentBundlesMapSize());
@@ -383,7 +383,7 @@ public void testSetSearchDefaultBundlesFirst() {
}
/**
- * Test the {@link StrutsLocalizedTextProvider#getDefaultMessageWithAlternateKey(java.lang.String, java.lang.String, java.util.Locale, com.opensymphony.xwork2.util.ValueStack, java.lang.Object[], java.lang.String)}
+ * Test the {@link StrutsLocalizedTextProvider#getDefaultMessageWithAlternateKey(java.lang.String, java.lang.String, java.util.Locale, org.apache.struts2.util.ValueStack, java.lang.Object[], java.lang.String)}
* method for basic correctness.
*/
public void testGetDefaultMessageWithAlternateKey() {
@@ -395,9 +395,9 @@ public void testGetDefaultMessageWithAlternateKey() {
TestStrutsLocalizedTextProvider testStrutsLocalizedTextProvider = new TestStrutsLocalizedTextProvider();
// Load some specific default bundles already provided and used by other tests within this module.
- testStrutsLocalizedTextProvider.addDefaultResourceBundle("com/opensymphony/xwork2/util/LocalizedTextUtilTest");
- testStrutsLocalizedTextProvider.addDefaultResourceBundle("com/opensymphony/xwork2/util/Bar");
- testStrutsLocalizedTextProvider.addDefaultResourceBundle("com/opensymphony/xwork2/util/FindMe");
+ testStrutsLocalizedTextProvider.addDefaultResourceBundle("org/apache/struts2/util/LocalizedTextUtilTest");
+ testStrutsLocalizedTextProvider.addDefaultResourceBundle("org/apache/struts2/util/Bar");
+ testStrutsLocalizedTextProvider.addDefaultResourceBundle("org/apache/struts2/util/FindMe");
// Perform some standard checks on message retrieval using null or nonexistent keys and various default message combinations.
ValueStack valueStack = ActionContext.getContext().getValueStack();
@@ -455,7 +455,7 @@ public void testGetDefaultMessageWithAlternateKey() {
}
/**
- * Test the {@link StrutsLocalizedTextProvider#findText(java.lang.Class, java.lang.String, java.util.Locale, java.lang.String, java.lang.Object[], com.opensymphony.xwork2.util.ValueStack) }
+ * Test the {@link StrutsLocalizedTextProvider#findText(java.lang.Class, java.lang.String, java.util.Locale, java.lang.String, java.lang.Object[], org.apache.struts2.util.ValueStack) }
* method for basic correctness.
*
* It is the version of the method that will search the class hierarchy resource bundles first, unless {@link StrutsLocalizedTextProvider#searchDefaultBundlesFirst}
@@ -475,8 +475,8 @@ public void testFindText_FullParameterSet_FirstParameterIsClass() {
// Load some specific default bundles already provided and used by other tests within this module.
// Note: Intentionally not including the Bar properties file as a default bundle so that we can test retrievals of items that are only available via the class
// or the default bundles.
- testStrutsLocalizedTextProvider.addDefaultResourceBundle("com/opensymphony/xwork2/util/LocalizedTextUtilTest");
- testStrutsLocalizedTextProvider.addDefaultResourceBundle("com/opensymphony/xwork2/util/FindMe");
+ testStrutsLocalizedTextProvider.addDefaultResourceBundle("org/apache/struts2/util/LocalizedTextUtilTest");
+ testStrutsLocalizedTextProvider.addDefaultResourceBundle("org/apache/struts2/util/FindMe");
// Perform some standard checks on message retrieval both for correctness checks and code coverage (such as the NONEXISTENT_INDEXED_COLLECTION,
// which exercises the indexed name logic in findText())
@@ -588,7 +588,7 @@ static class TestStrutsLocalizedTextProvider extends StrutsLocalizedTextProvider
* field {@link AbstractLocalizedTextProvider#RELOADED}. If the ancestor field value changes, ensure this
* field's value is updated to match it exactly.
*/
- private static final String RELOADED = "com.opensymphony.xwork2.util.LocalizedTextProvider.reloaded";
+ private static final String RELOADED = "org.apache.struts2.util.LocalizedTextProvider.reloaded";
public void callClearBundleWithLocale(String bundleName, Locale locale) {
super.clearBundle(bundleName, locale);
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/TextParseUtilTest.java b/core/src/test/java/org/apache/struts2/util/TextParseUtilTest.java
similarity index 98%
rename from core/src/test/java/com/opensymphony/xwork2/util/TextParseUtilTest.java
rename to core/src/test/java/org/apache/struts2/util/TextParseUtilTest.java
index 82d1fa2cec..f92f253ef1 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/TextParseUtilTest.java
+++ b/core/src/test/java/org/apache/struts2/util/TextParseUtilTest.java
@@ -16,10 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.XWorkTestCase;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.XWorkTestCase;
import org.junit.Assert;
import java.util.*;
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/Tiger.java b/core/src/test/java/org/apache/struts2/util/Tiger.java
similarity index 96%
rename from core/src/test/java/com/opensymphony/xwork2/util/Tiger.java
rename to core/src/test/java/org/apache/struts2/util/Tiger.java
index cd04d97972..43a3599733 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/Tiger.java
+++ b/core/src/test/java/org/apache/struts2/util/Tiger.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
import java.util.List;
diff --git a/core/src/test/java/org/apache/struts2/util/TokenHelperTest.java b/core/src/test/java/org/apache/struts2/util/TokenHelperTest.java
index 4eba8f1b88..07add2a077 100644
--- a/core/src/test/java/org/apache/struts2/util/TokenHelperTest.java
+++ b/core/src/test/java/org/apache/struts2/util/TokenHelperTest.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.util;
-import com.opensymphony.xwork2.ActionContext;
+import org.apache.struts2.ActionContext;
import junit.framework.TestCase;
import org.apache.struts2.dispatcher.HttpParameters;
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/UnknownHandlerManagerTest.java b/core/src/test/java/org/apache/struts2/util/UnknownHandlerManagerTest.java
similarity index 82%
rename from core/src/test/java/com/opensymphony/xwork2/util/UnknownHandlerManagerTest.java
rename to core/src/test/java/org/apache/struts2/util/UnknownHandlerManagerTest.java
index 7d190202a9..03b3041e2f 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/UnknownHandlerManagerTest.java
+++ b/core/src/test/java/org/apache/struts2/util/UnknownHandlerManagerTest.java
@@ -16,18 +16,18 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
import java.util.List;
-import com.opensymphony.xwork2.UnknownHandler;
-import com.opensymphony.xwork2.UnknownHandlerManager;
-import com.opensymphony.xwork2.UnknownHandlerManagerMock;
-import com.opensymphony.xwork2.DefaultUnknownHandlerManager;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.config.ConfigurationProvider;
-import com.opensymphony.xwork2.config.providers.ConfigurationTestBase;
-import com.opensymphony.xwork2.config.providers.SomeUnknownHandler;
+import org.apache.struts2.UnknownHandler;
+import org.apache.struts2.UnknownHandlerManager;
+import org.apache.struts2.UnknownHandlerManagerMock;
+import org.apache.struts2.DefaultUnknownHandlerManager;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.config.ConfigurationProvider;
+import org.apache.struts2.config.providers.ConfigurationTestBase;
+import org.apache.struts2.config.providers.SomeUnknownHandler;
/**
* Test UnknownHandlerUtil
@@ -35,7 +35,7 @@
public class UnknownHandlerManagerTest extends ConfigurationTestBase {
public void testStack() throws ConfigurationException {
- final String filename = "com/opensymphony/xwork2/config/providers/xwork-unknownhandler-stack.xml";
+ final String filename = "org/apache/struts2/config/providers/xwork-unknownhandler-stack.xml";
ConfigurationProvider provider = buildConfigurationProvider(filename);
loadConfigurationProviders(provider);
configurationManager.reload();
@@ -55,7 +55,7 @@ public void testStack() throws ConfigurationException {
}
public void testEmptyStack() throws ConfigurationException {
- final String filename = "com/opensymphony/xwork2/config/providers/xwork-unknownhandler-stack-empty.xml";
+ final String filename = "org/apache/struts2/config/providers/xwork-unknownhandler-stack-empty.xml";
ConfigurationProvider provider = buildConfigurationProvider(filename);
loadConfigurationProviders(provider);
configurationManager.reload();
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/UrlUtilTest2.java b/core/src/test/java/org/apache/struts2/util/UrlUtilTest2.java
similarity index 92%
rename from core/src/test/java/com/opensymphony/xwork2/util/UrlUtilTest2.java
rename to core/src/test/java/org/apache/struts2/util/UrlUtilTest2.java
index f8d9cbb256..ca927f8fae 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/UrlUtilTest2.java
+++ b/core/src/test/java/org/apache/struts2/util/UrlUtilTest2.java
@@ -16,10 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
-import com.opensymphony.xwork2.FileManager;
-import com.opensymphony.xwork2.util.fs.DefaultFileManager;
+import org.apache.struts2.FileManager;
+import org.apache.struts2.util.fs.DefaultFileManager;
import junit.framework.TestCase;
import java.io.IOException;
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/WildcardHelperTest.java b/core/src/test/java/org/apache/struts2/util/WildcardHelperTest.java
similarity index 96%
rename from core/src/test/java/com/opensymphony/xwork2/util/WildcardHelperTest.java
rename to core/src/test/java/org/apache/struts2/util/WildcardHelperTest.java
index 31a925972d..be2a0a6b01 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/WildcardHelperTest.java
+++ b/core/src/test/java/org/apache/struts2/util/WildcardHelperTest.java
@@ -16,33 +16,33 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
-import com.opensymphony.xwork2.XWorkTestCase;
+import org.apache.struts2.XWorkTestCase;
import java.util.HashMap;
public class WildcardHelperTest extends XWorkTestCase {
-
+
public void testMatch() {
-
+
WildcardHelper wild = new WildcardHelper();
HashMap matchedPatterns = new HashMap<>();
int[] pattern = wild.compilePattern("wes-rules");
assertEquals(wild.match(matchedPatterns,"wes-rules", pattern), true);
assertEquals(wild.match(matchedPatterns, "rules-wes", pattern), false);
-
+
pattern = wild.compilePattern("wes-*");
assertEquals(wild.match(matchedPatterns,"wes-rules", pattern), true);
assertEquals("rules".equals(matchedPatterns.get("1")), true);
assertEquals(wild.match(matchedPatterns, "rules-wes", pattern), false);
-
+
pattern = wild.compilePattern("path/**/file");
assertEquals(wild.match(matchedPatterns, "path/to/file", pattern), true);
assertEquals("to".equals(matchedPatterns.get("1")), true);
assertEquals(wild.match(matchedPatterns, "path/to/another/location/of/file", pattern), true);
assertEquals("to/another/location/of".equals(matchedPatterns.get("1")), true);
-
+
pattern = wild.compilePattern("path/*/file");
assertEquals(wild.match(matchedPatterns, "path/to/file", pattern), true);
assertEquals("to".equals(matchedPatterns.get("1")), true);
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/WildcardUtilTest.java b/core/src/test/java/org/apache/struts2/util/WildcardUtilTest.java
similarity index 95%
rename from core/src/test/java/com/opensymphony/xwork2/util/WildcardUtilTest.java
rename to core/src/test/java/org/apache/struts2/util/WildcardUtilTest.java
index b88ea33fb6..2d9a112238 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/WildcardUtilTest.java
+++ b/core/src/test/java/org/apache/struts2/util/WildcardUtilTest.java
@@ -16,32 +16,32 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util;
+package org.apache.struts2.util;
-import com.opensymphony.xwork2.XWorkTestCase;
+import org.apache.struts2.XWorkTestCase;
import java.util.regex.Pattern;
public class WildcardUtilTest extends XWorkTestCase {
-
+
public void testPattern() {
-
+
Pattern p = WildcardUtil.compileWildcardPattern("a*b");
assertTrue(p.matcher("ab").matches());
assertTrue(p.matcher("axyb").matches());
assertFalse(p.matcher("bxyb").matches());
-
+
p = WildcardUtil.compileWildcardPattern("a\\*b");
assertFalse(p.matcher("ab").matches());
assertTrue(p.matcher("a*b").matches());
-
+
p = WildcardUtil.compileWildcardPattern("a.*");
assertFalse(p.matcher("ab").matches());
assertFalse(p.matcher("ab.b").matches());
assertTrue(p.matcher("a.b").matches());
assertTrue(p.matcher("a.bc").matches());
assertTrue(p.matcher("a.b.c").matches());
-
+
p = WildcardUtil.compileWildcardPattern("a[*]");
assertFalse(p.matcher("ab").matches());
assertFalse(p.matcher("ab[b]").matches());
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/annotation/Dummy2Class.java b/core/src/test/java/org/apache/struts2/util/annotation/Dummy2Class.java
similarity index 94%
rename from core/src/test/java/com/opensymphony/xwork2/util/annotation/Dummy2Class.java
rename to core/src/test/java/org/apache/struts2/util/annotation/Dummy2Class.java
index 78f4167d17..6e6a7a0a6b 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/annotation/Dummy2Class.java
+++ b/core/src/test/java/org/apache/struts2/util/annotation/Dummy2Class.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.annotation;
+package org.apache.struts2.util.annotation;
public class Dummy2Class {
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/annotation/Dummy3Class.java b/core/src/test/java/org/apache/struts2/util/annotation/Dummy3Class.java
similarity index 82%
rename from core/src/test/java/com/opensymphony/xwork2/util/annotation/Dummy3Class.java
rename to core/src/test/java/org/apache/struts2/util/annotation/Dummy3Class.java
index f25c852c79..b21e750ad9 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/annotation/Dummy3Class.java
+++ b/core/src/test/java/org/apache/struts2/util/annotation/Dummy3Class.java
@@ -16,10 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.annotation;
+package org.apache.struts2.util.annotation;
-import com.opensymphony.xwork2.util.annotation.pkg1.AbstractDummyAction;
+import org.apache.struts2.util.annotation.pkg1.AbstractDummyAction;
-public class Dummy3Class extends AbstractDummyAction{
+public class Dummy3Class extends AbstractDummyAction {
}
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/annotation/DummyClass.java b/core/src/test/java/org/apache/struts2/util/annotation/DummyClass.java
similarity index 89%
rename from core/src/test/java/com/opensymphony/xwork2/util/annotation/DummyClass.java
rename to core/src/test/java/org/apache/struts2/util/annotation/DummyClass.java
index bb65b5c6e9..2cac5fbe04 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/annotation/DummyClass.java
+++ b/core/src/test/java/org/apache/struts2/util/annotation/DummyClass.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.annotation;
+package org.apache.struts2.util.annotation;
-import com.opensymphony.xwork2.util.annotation.pkg2.Package2DummyInterface;
+import org.apache.struts2.util.annotation.pkg2.Package2DummyInterface;
@MyAnnotation("class-test")
public class DummyClass implements Package2DummyInterface {
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/annotation/DummyClassExt.java b/core/src/test/java/org/apache/struts2/util/annotation/DummyClassExt.java
similarity index 95%
rename from core/src/test/java/com/opensymphony/xwork2/util/annotation/DummyClassExt.java
rename to core/src/test/java/org/apache/struts2/util/annotation/DummyClassExt.java
index 6005bd7eea..c375c412bb 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/annotation/DummyClassExt.java
+++ b/core/src/test/java/org/apache/struts2/util/annotation/DummyClassExt.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.annotation;
+package org.apache.struts2.util.annotation;
public final class DummyClassExt extends DummyClass {
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/annotation/MyAnnotation.java b/core/src/test/java/org/apache/struts2/util/annotation/MyAnnotation.java
similarity index 95%
rename from core/src/test/java/com/opensymphony/xwork2/util/annotation/MyAnnotation.java
rename to core/src/test/java/org/apache/struts2/util/annotation/MyAnnotation.java
index 6ea00dd710..bce8fafe40 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/annotation/MyAnnotation.java
+++ b/core/src/test/java/org/apache/struts2/util/annotation/MyAnnotation.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.annotation;
+package org.apache.struts2.util.annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/annotation/MyAnnotation2.java b/core/src/test/java/org/apache/struts2/util/annotation/MyAnnotation2.java
similarity index 95%
rename from core/src/test/java/com/opensymphony/xwork2/util/annotation/MyAnnotation2.java
rename to core/src/test/java/org/apache/struts2/util/annotation/MyAnnotation2.java
index c3700551b3..5e8982a546 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/annotation/MyAnnotation2.java
+++ b/core/src/test/java/org/apache/struts2/util/annotation/MyAnnotation2.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.annotation;
+package org.apache.struts2.util.annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/annotation/package-info.java b/core/src/test/java/org/apache/struts2/util/annotation/package-info.java
similarity index 94%
rename from core/src/test/java/com/opensymphony/xwork2/util/annotation/package-info.java
rename to core/src/test/java/org/apache/struts2/util/annotation/package-info.java
index a942ab89c8..6acdb63789 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/annotation/package-info.java
+++ b/core/src/test/java/org/apache/struts2/util/annotation/package-info.java
@@ -17,4 +17,4 @@
* under the License.
*/
@MyAnnotation("package-test")
-package com.opensymphony.xwork2.util.annotation;
+package org.apache.struts2.util.annotation;
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/annotation/pkg1/AbstractAbstractDummyAction.java b/core/src/test/java/org/apache/struts2/util/annotation/pkg1/AbstractAbstractDummyAction.java
similarity index 88%
rename from core/src/test/java/com/opensymphony/xwork2/util/annotation/pkg1/AbstractAbstractDummyAction.java
rename to core/src/test/java/org/apache/struts2/util/annotation/pkg1/AbstractAbstractDummyAction.java
index 8221b98f83..c4b5e1e62a 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/annotation/pkg1/AbstractAbstractDummyAction.java
+++ b/core/src/test/java/org/apache/struts2/util/annotation/pkg1/AbstractAbstractDummyAction.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.annotation.pkg1;
+package org.apache.struts2.util.annotation.pkg1;
-import com.opensymphony.xwork2.util.annotation.MyAnnotation2;
+import org.apache.struts2.util.annotation.MyAnnotation2;
@MyAnnotation2("abstract-abstract")
public class AbstractAbstractDummyAction {
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/annotation/pkg1/AbstractDummyAction.java b/core/src/test/java/org/apache/struts2/util/annotation/pkg1/AbstractDummyAction.java
similarity index 94%
rename from core/src/test/java/com/opensymphony/xwork2/util/annotation/pkg1/AbstractDummyAction.java
rename to core/src/test/java/org/apache/struts2/util/annotation/pkg1/AbstractDummyAction.java
index 88f20a2936..99dd2770b2 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/annotation/pkg1/AbstractDummyAction.java
+++ b/core/src/test/java/org/apache/struts2/util/annotation/pkg1/AbstractDummyAction.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.annotation.pkg1;
+package org.apache.struts2.util.annotation.pkg1;
public class AbstractDummyAction extends AbstractAbstractDummyAction {
}
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/annotation/pkg2/Package2DummyInterface.java b/core/src/test/java/org/apache/struts2/util/annotation/pkg2/Package2DummyInterface.java
similarity index 88%
rename from core/src/test/java/com/opensymphony/xwork2/util/annotation/pkg2/Package2DummyInterface.java
rename to core/src/test/java/org/apache/struts2/util/annotation/pkg2/Package2DummyInterface.java
index ea1aa1279c..4287d129b3 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/annotation/pkg2/Package2DummyInterface.java
+++ b/core/src/test/java/org/apache/struts2/util/annotation/pkg2/Package2DummyInterface.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.annotation.pkg2;
+package org.apache.struts2.util.annotation.pkg2;
-import com.opensymphony.xwork2.util.annotation.MyAnnotation;
+import org.apache.struts2.util.annotation.MyAnnotation;
@MyAnnotation("interface-test")
public interface Package2DummyInterface {
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/annotation/pkg2/package-info.java b/core/src/test/java/org/apache/struts2/util/annotation/pkg2/package-info.java
similarity index 88%
rename from core/src/test/java/com/opensymphony/xwork2/util/annotation/pkg2/package-info.java
rename to core/src/test/java/org/apache/struts2/util/annotation/pkg2/package-info.java
index 2eee0a823f..aaf04a1566 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/annotation/pkg2/package-info.java
+++ b/core/src/test/java/org/apache/struts2/util/annotation/pkg2/package-info.java
@@ -18,6 +18,6 @@
*/
@MyAnnotation("package2-test")
-package com.opensymphony.xwork2.util.annotation.pkg2;
+package org.apache.struts2.util.annotation.pkg2;
-import com.opensymphony.xwork2.util.annotation.MyAnnotation;
\ No newline at end of file
+import org.apache.struts2.util.annotation.MyAnnotation;
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/fs/DefaultFileManagerFactoryTest.java b/core/src/test/java/org/apache/struts2/util/fs/DefaultFileManagerFactoryTest.java
similarity index 94%
rename from core/src/test/java/com/opensymphony/xwork2/util/fs/DefaultFileManagerFactoryTest.java
rename to core/src/test/java/org/apache/struts2/util/fs/DefaultFileManagerFactoryTest.java
index 110b2fff17..a09dc0cadd 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/fs/DefaultFileManagerFactoryTest.java
+++ b/core/src/test/java/org/apache/struts2/util/fs/DefaultFileManagerFactoryTest.java
@@ -16,12 +16,12 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.fs;
+package org.apache.struts2.util.fs;
-import com.opensymphony.xwork2.FileManager;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.inject.Container;
-import com.opensymphony.xwork2.inject.Scope;
+import org.apache.struts2.FileManager;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.inject.Container;
+import org.apache.struts2.inject.Scope;
import java.io.IOException;
import java.io.InputStream;
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/fs/JarEntryRevisionTest.java b/core/src/test/java/org/apache/struts2/util/fs/JarEntryRevisionTest.java
similarity index 86%
rename from core/src/test/java/com/opensymphony/xwork2/util/fs/JarEntryRevisionTest.java
rename to core/src/test/java/org/apache/struts2/util/fs/JarEntryRevisionTest.java
index 20a21ce7cd..a28af0a91c 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/fs/JarEntryRevisionTest.java
+++ b/core/src/test/java/org/apache/struts2/util/fs/JarEntryRevisionTest.java
@@ -16,14 +16,16 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.fs;
+package org.apache.struts2.util.fs;
-import com.opensymphony.xwork2.FileManager;
-import com.opensymphony.xwork2.FileManagerFactory;
-import com.opensymphony.xwork2.XWorkTestCase;
+import org.apache.struts2.FileManager;
+import org.apache.struts2.FileManagerFactory;
+import org.apache.struts2.XWorkTestCase;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.IOUtils;
import org.apache.commons.io.filefilter.WildcardFileFilter;
+import org.apache.struts2.util.fs.JarEntryRevision;
+import org.apache.struts2.util.fs.Revision;
import java.io.File;
import java.io.FileOutputStream;
@@ -58,11 +60,11 @@ private String createJarFile(long time) throws Exception {
File jarFile = jarPath.resolve("JarEntryRevisionTest_testNeedsReloading.jar").toFile();
FileOutputStream fos = new FileOutputStream(jarFile, false);
JarOutputStream target = new JarOutputStream(fos, manifest);
- target.putNextEntry(new ZipEntry("com/opensymphony/xwork2/util/fs/"));
- ZipEntry entry = new ZipEntry("com/opensymphony/xwork2/util/fs/JarEntryRevisionTest.class");
+ target.putNextEntry(new ZipEntry("org/apache/struts2/util/fs/"));
+ ZipEntry entry = new ZipEntry("org/apache/struts2/util/fs/JarEntryRevisionTest.class");
entry.setTime(time);
target.putNextEntry(entry);
- InputStream source = getClass().getResourceAsStream("/com/opensymphony/xwork2/util/fs/JarEntryRevisionTest.class");
+ InputStream source = getClass().getResourceAsStream("/org/apache/struts2/util/fs/JarEntryRevisionTest.class");
IOUtils.copy(source, target);
source.close();
target.closeEntry();
@@ -75,7 +77,7 @@ private String createJarFile(long time) throws Exception {
public void testNeedsReloading() throws Exception {
long now = System.currentTimeMillis();
- URL url = new URL("jar:" + createJarFile(now) + "!/com/opensymphony/xwork2/util/fs/JarEntryRevisionTest.class");
+ URL url = new URL("jar:" + createJarFile(now) + "!/org/apache/struts2/util/fs/JarEntryRevisionTest.class");
Revision entry = JarEntryRevision.build(url, fileManager);
assert entry != null;
assertFalse(entry.needsReloading());
@@ -88,7 +90,7 @@ public void testNeedsReloadingWithContainerProvidedURLConnection() throws Except
long now = System.currentTimeMillis();
URL url = new URL(null,
- "jar:" + createJarFile(now) + "!/com/opensymphony/xwork2/util/fs/JarEntryRevisionTest.class",
+ "jar:" + createJarFile(now) + "!/org/apache/struts2/util/fs/JarEntryRevisionTest.class",
new ContainerProvidedURLStreamHandler());
Revision entry = JarEntryRevision.build(url, fileManager);
assert entry != null;
@@ -109,7 +111,7 @@ public void testNeedsReloadingWithContainerProvidedURLConnectionEmptyProtocol()
targetUrlStr = targetUrlStr.substring(1);//we expect framework will fix it also
}
URL url = new URL(null,
- "zip:" + targetUrlStr + "!/com/opensymphony/xwork2/util/fs/JarEntryRevisionTest.class",
+ "zip:" + targetUrlStr + "!/org/apache/struts2/util/fs/JarEntryRevisionTest.class",
new ContainerProvidedURLStreamHandler());
Revision entry = JarEntryRevision.build(url, fileManager);
assert entry != null;
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/location/LocationAttributesTest.java b/core/src/test/java/org/apache/struts2/util/location/LocationAttributesTest.java
similarity index 97%
rename from core/src/test/java/com/opensymphony/xwork2/util/location/LocationAttributesTest.java
rename to core/src/test/java/org/apache/struts2/util/location/LocationAttributesTest.java
index 430c30e548..9b5b953199 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/location/LocationAttributesTest.java
+++ b/core/src/test/java/org/apache/struts2/util/location/LocationAttributesTest.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.location;
+package org.apache.struts2.util.location;
import junit.framework.TestCase;
import org.w3c.dom.Document;
@@ -28,11 +28,11 @@
import javax.xml.parsers.DocumentBuilderFactory;
public class LocationAttributesTest extends TestCase {
-
+
public LocationAttributesTest(String name) {
super(name);
}
-
+
public void testAddLocationAttributes() throws Exception {
AttributesImpl attrs = new AttributesImpl();
LocationAttributes.addLocationAttributes(new Locator() {
@@ -46,7 +46,7 @@ public void testAddLocationAttributes() throws Exception {
assertTrue("1".equals(attrs.getValue("loc:line")));
assertTrue("40".equals(attrs.getValue("loc:column")));
}
-
+
public void testRecursiveRemove() throws Exception {
Document doc = getDoc("xml-with-location.xml");
@@ -61,7 +61,7 @@ public void testRecursiveRemove() throws Exception {
assertNull(kid.getAttributeNode("loc:line"));
assertNull(kid.getAttributeNode("loc:column"));
assertNull(kid.getAttributeNode("loc:src"));
- }
+ }
public void testNonRecursiveRemove() throws Exception {
Document doc = getDoc("xml-with-location.xml");
@@ -77,7 +77,7 @@ public void testNonRecursiveRemove() throws Exception {
assertNotNull(kid.getAttributeNode("loc:line"));
assertNotNull(kid.getAttributeNode("loc:column"));
assertNotNull(kid.getAttributeNode("loc:src"));
- }
+ }
private Document getDoc(String path) throws Exception {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/location/LocationImplTest.java b/core/src/test/java/org/apache/struts2/util/location/LocationImplTest.java
similarity index 87%
rename from core/src/test/java/com/opensymphony/xwork2/util/location/LocationImplTest.java
rename to core/src/test/java/org/apache/struts2/util/location/LocationImplTest.java
index 11dfcc9cdd..d11ac706ac 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/location/LocationImplTest.java
+++ b/core/src/test/java/org/apache/struts2/util/location/LocationImplTest.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.location;
+package org.apache.struts2.util.location;
-import com.opensymphony.xwork2.util.ClassLoaderUtil;
+import org.apache.struts2.util.ClassLoaderUtil;
import junit.framework.TestCase;
import java.io.ByteArrayInputStream;
@@ -29,62 +29,62 @@
import java.util.List;
public class LocationImplTest extends TestCase {
-
+
public LocationImplTest(String name) {
super(name);
}
-
+
static final String str = "path/to/file.xml:1:40";
public void testEquals() throws Exception {
Location loc1 = LocationUtils.parse(str);
Location loc2 = new LocationImpl(null, "path/to/file.xml", 1, 40);
-
+
assertEquals("locations", loc1, loc2);
assertEquals("hashcode", loc1.hashCode(), loc2.hashCode());
assertEquals("string representation", loc1.toString(), loc2.toString());
}
-
+
/**
* Test that Location.UNKNOWN is kept identical on deserialization
*/
public void testSerializeUnknown() throws Exception {
ByteArrayOutputStream bos = new ByteArrayOutputStream();
ObjectOutputStream oos = new ObjectOutputStream(bos);
-
+
oos.writeObject(Location.UNKNOWN);
oos.close();
bos.close();
-
+
ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
ObjectInputStream ois = new ObjectInputStream(bis);
-
+
Object obj = ois.readObject();
-
+
assertSame("unknown location", Location.UNKNOWN, obj);
}
-
+
public void testGetSnippet() throws Exception {
- URL url = ClassLoaderUtil.getResource("com/opensymphony/xwork2/somefile.txt", getClass());
+ URL url = ClassLoaderUtil.getResource("org/apache/struts2/somefile.txt", getClass());
Location loc = new LocationImpl("foo", url.toString(), 3, 2);
-
+
List snippet = loc.getSnippet(1);
assertNotNull(snippet);
assertTrue("Wrong length: "+snippet.size(), 3 == snippet.size());
-
+
assertTrue("is".equals(snippet.get(0)));
assertTrue("a".equals(snippet.get(1)));
assertTrue("file".equals(snippet.get(2)));
}
-
+
public void testGetSnippetNoPadding() throws Exception {
- URL url = ClassLoaderUtil.getResource("com/opensymphony/xwork2/somefile.txt", getClass());
+ URL url = ClassLoaderUtil.getResource("org/apache/struts2/somefile.txt", getClass());
Location loc = new LocationImpl("foo", url.toString(), 3, 2);
-
+
List snippet = loc.getSnippet(0);
assertNotNull(snippet);
assertTrue("Wrong length: "+snippet.size(), 1 == snippet.size());
-
+
assertTrue("a".equals(snippet.get(0)));
}
}
diff --git a/core/src/test/java/com/opensymphony/xwork2/util/location/LocationUtilsTest.java b/core/src/test/java/org/apache/struts2/util/location/LocationUtilsTest.java
similarity index 93%
rename from core/src/test/java/com/opensymphony/xwork2/util/location/LocationUtilsTest.java
rename to core/src/test/java/org/apache/struts2/util/location/LocationUtilsTest.java
index f64ffef0fd..32bb2562d9 100644
--- a/core/src/test/java/com/opensymphony/xwork2/util/location/LocationUtilsTest.java
+++ b/core/src/test/java/org/apache/struts2/util/location/LocationUtilsTest.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.util.location;
+package org.apache.struts2.util.location;
import java.util.List;
import java.util.Optional;
@@ -29,36 +29,36 @@
import junit.framework.TestCase;
public class LocationUtilsTest extends TestCase {
-
+
public LocationUtilsTest(String name) {
super(name);
}
-
+
static final String str = "path/to/file.xml:1:40";
public void testParse() throws Exception {
String str = " - path/to/file.xml:1:40";
Location loc = LocationUtils.parse(str);
-
+
assertEquals("", loc.getDescription());
assertEquals("URI", "path/to/file.xml", loc.getURI());
assertEquals("line", 1, loc.getLineNumber());
assertEquals("column", 40, loc.getColumnNumber());
assertEquals("string representation", str, loc.toString());
}
-
+
public void testGetLocation_location() throws Exception {
Location loc = new LocationImpl("desc", "sysId", 10, 4);
- assertTrue("Location should be the same",
+ assertTrue("Location should be the same",
loc == LocationUtils.getLocation(loc, null));
}
-
+
public void testGetLocation_exception() throws Exception {
Exception e = new Exception();
Location loc = LocationUtils.getLocation(e, null);
-
+
assertTrue("Wrong sysId: "+loc.getURI(),
- "com/opensymphony/xwork2/util/location/LocationUtilsTest.java"
+ "org/apache/struts2/util/location/LocationUtilsTest.java"
.equals(loc.getURI()));
}
diff --git a/core/src/test/java/com/opensymphony/xwork2/validator/ActionValidatorManagerTest.java b/core/src/test/java/org/apache/struts2/validator/ActionValidatorManagerTest.java
similarity index 95%
rename from core/src/test/java/com/opensymphony/xwork2/validator/ActionValidatorManagerTest.java
rename to core/src/test/java/org/apache/struts2/validator/ActionValidatorManagerTest.java
index 0c100babe8..950da40492 100644
--- a/core/src/test/java/com/opensymphony/xwork2/validator/ActionValidatorManagerTest.java
+++ b/core/src/test/java/org/apache/struts2/validator/ActionValidatorManagerTest.java
@@ -16,15 +16,15 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
-
-import com.opensymphony.xwork2.ActionSupport;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.util.ValueStack;
-import com.opensymphony.xwork2.util.ValueStackFactory;
-import com.opensymphony.xwork2.validator.validators.RequiredFieldValidator;
-import com.opensymphony.xwork2.validator.validators.RequiredStringValidator;
-import com.opensymphony.xwork2.validator.validators.VisitorFieldValidator;
+package org.apache.struts2.validator;
+
+import org.apache.struts2.ActionSupport;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.util.ValueStack;
+import org.apache.struts2.util.ValueStackFactory;
+import org.apache.struts2.validator.validators.RequiredFieldValidator;
+import org.apache.struts2.validator.validators.RequiredStringValidator;
+import org.apache.struts2.validator.validators.VisitorFieldValidator;
import org.apache.struts2.interceptor.parameter.StrutsParameter;
import java.util.ArrayList;
diff --git a/core/src/test/java/com/opensymphony/xwork2/validator/AnnotationActionValidatorManagerTest.java b/core/src/test/java/org/apache/struts2/validator/AnnotationActionValidatorManagerTest.java
similarity index 90%
rename from core/src/test/java/com/opensymphony/xwork2/validator/AnnotationActionValidatorManagerTest.java
rename to core/src/test/java/org/apache/struts2/validator/AnnotationActionValidatorManagerTest.java
index e915de0077..5d5779467b 100644
--- a/core/src/test/java/com/opensymphony/xwork2/validator/AnnotationActionValidatorManagerTest.java
+++ b/core/src/test/java/org/apache/struts2/validator/AnnotationActionValidatorManagerTest.java
@@ -16,33 +16,33 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
-
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.ActionProxy;
-import com.opensymphony.xwork2.AnnotatedTestBean;
-import com.opensymphony.xwork2.FileManager;
-import com.opensymphony.xwork2.FileManagerFactory;
-import com.opensymphony.xwork2.SimpleAction;
-import com.opensymphony.xwork2.SimpleAnnotationAction;
-import com.opensymphony.xwork2.TextProviderFactory;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.test.AnnotationDataAware2;
-import com.opensymphony.xwork2.test.AnnotationUser;
-import com.opensymphony.xwork2.test.SimpleAnnotationAction2;
-import com.opensymphony.xwork2.test.SimpleAnnotationAction3;
-import com.opensymphony.xwork2.validator.validators.DateRangeFieldValidator;
-import com.opensymphony.xwork2.validator.validators.DoubleRangeFieldValidator;
-import com.opensymphony.xwork2.validator.validators.EmailValidator;
-import com.opensymphony.xwork2.validator.validators.ExpressionValidator;
-import com.opensymphony.xwork2.validator.validators.IntRangeFieldValidator;
-import com.opensymphony.xwork2.validator.validators.RequiredFieldValidator;
-import com.opensymphony.xwork2.validator.validators.RequiredStringValidator;
-import com.opensymphony.xwork2.validator.validators.StringLengthFieldValidator;
-import com.opensymphony.xwork2.validator.validators.URLValidator;
+package org.apache.struts2.validator;
+
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.AnnotatedTestBean;
+import org.apache.struts2.FileManager;
+import org.apache.struts2.FileManagerFactory;
+import org.apache.struts2.SimpleAction;
+import org.apache.struts2.SimpleAnnotationAction;
+import org.apache.struts2.TextProviderFactory;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.test.AnnotationDataAware2;
+import org.apache.struts2.test.AnnotationUser;
+import org.apache.struts2.test.SimpleAnnotationAction2;
+import org.apache.struts2.test.SimpleAnnotationAction3;
+import org.apache.struts2.validator.validators.DateRangeFieldValidator;
+import org.apache.struts2.validator.validators.DoubleRangeFieldValidator;
+import org.apache.struts2.validator.validators.EmailValidator;
+import org.apache.struts2.validator.validators.ExpressionValidator;
+import org.apache.struts2.validator.validators.IntRangeFieldValidator;
+import org.apache.struts2.validator.validators.RequiredFieldValidator;
+import org.apache.struts2.validator.validators.RequiredStringValidator;
+import org.apache.struts2.validator.validators.StringLengthFieldValidator;
+import org.apache.struts2.validator.validators.URLValidator;
import org.easymock.EasyMock;
import java.util.List;
@@ -114,13 +114,13 @@ public void testGetValidatorsForGivenMethodNameWithoutReloading() throws Validat
//17 in the class level + 0 in the alias
assertEquals(12, validatorList.size());
-
+
validatorList = annotationActionValidatorManager.getValidators(SimpleAnnotationAction.class, alias, "execute");
//expect same number of validators
assertEquals(12, validatorList.size());
}
-
+
public void testDefaultMessageInterpolation() {
// get validators
List validatorList = annotationActionValidatorManager.getValidators(AnnotatedTestBean.class, "beanMessageBundle");
@@ -334,7 +334,7 @@ public void testSkipAllActionLevelShortCircuit2() {
user.setName("Mark");
// * mark both email to starts with mark to get pass the action-level validator,
// so we could concentrate on testing the field-level validators (AnnotationUser-validation.xml)
- // * make both email the same to pass the action-level validator at
+ // * make both email the same to pass the action-level validator at
// AnnotationUserMarker-validation.xml
user.setEmail("mark_bad_email_for_field_val@foo.com");
user.setEmail2("mark_bad_email_for_field_val@foo.com");
@@ -350,28 +350,28 @@ public void testSkipAllActionLevelShortCircuit2() {
assertEquals(1, l.size()); // because email-field-val is short-circuit
assertEquals("Email not from the right company.", l.get(0));
-
+
// check action errors
l = (List) context.getActionErrors();
assertFalse(context.hasActionErrors());
assertEquals(0, l.size());
-
-
+
+
} catch (ValidationException ex) {
ex.printStackTrace();
fail("Validation error: " + ex.getMessage());
}
}
-
+
public void testActionLevelShortCircuit() throws Exception {
-
+
List validatorList = annotationActionValidatorManager.getValidators(AnnotationUser.class, null);
assertEquals(10, validatorList.size());
-
+
AnnotationUser user = new AnnotationUser();
// all fields will trigger error, but sc of action-level, cause it to not appear
- user.setName(null);
+ user.setName(null);
user.setEmail("rainerh(at)example.com");
user.setEmail("rainer_h(at)example.com");
@@ -379,24 +379,24 @@ public void testActionLevelShortCircuit() throws Exception {
ValidatorContext context = new DummyValidatorContext(user, tpf);
annotationActionValidatorManager.validate(user, null, context);
-
+
// check field level errors
// shouldn't have any because action error prevents validation of anything else
List l = context.getFieldErrors().get("email2");
assertNull(l);
-
-
+
+
// check action errors
assertTrue(context.hasActionErrors());
l = (List) context.getActionErrors();
assertNotNull(l);
// we only get one, because AnnotationUserMarker-validation.xml action-level validator
// already sc it :-)
- assertEquals(1, l.size());
+ assertEquals(1, l.size());
assertEquals("Email not the same as email2", l.get(0));
}
-
-
+
+
public void testShortCircuitNoErrors() {
// get validators
List validatorList = annotationActionValidatorManager.getValidators(AnnotationUser.class, null);
diff --git a/core/src/test/java/com/opensymphony/xwork2/validator/AnnotationValidationAction.java b/core/src/test/java/org/apache/struts2/validator/AnnotationValidationAction.java
similarity index 76%
rename from core/src/test/java/com/opensymphony/xwork2/validator/AnnotationValidationAction.java
rename to core/src/test/java/org/apache/struts2/validator/AnnotationValidationAction.java
index b8e6b16013..23cdec5789 100644
--- a/core/src/test/java/com/opensymphony/xwork2/validator/AnnotationValidationAction.java
+++ b/core/src/test/java/org/apache/struts2/validator/AnnotationValidationAction.java
@@ -16,28 +16,28 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
+package org.apache.struts2.validator;
-import com.opensymphony.xwork2.ActionSupport;
-import com.opensymphony.xwork2.validator.annotations.ConditionalVisitorFieldValidator;
-import com.opensymphony.xwork2.validator.annotations.ConversionErrorFieldValidator;
-import com.opensymphony.xwork2.validator.annotations.CreditCardValidator;
-import com.opensymphony.xwork2.validator.annotations.CustomValidator;
-import com.opensymphony.xwork2.validator.annotations.DateRangeFieldValidator;
-import com.opensymphony.xwork2.validator.annotations.DoubleRangeFieldValidator;
-import com.opensymphony.xwork2.validator.annotations.EmailValidator;
-import com.opensymphony.xwork2.validator.annotations.ExpressionValidator;
-import com.opensymphony.xwork2.validator.annotations.FieldExpressionValidator;
-import com.opensymphony.xwork2.validator.annotations.IntRangeFieldValidator;
-import com.opensymphony.xwork2.validator.annotations.LongRangeFieldValidator;
-import com.opensymphony.xwork2.validator.annotations.RegexFieldValidator;
-import com.opensymphony.xwork2.validator.annotations.RequiredFieldValidator;
-import com.opensymphony.xwork2.validator.annotations.RequiredStringValidator;
-import com.opensymphony.xwork2.validator.annotations.ShortRangeFieldValidator;
-import com.opensymphony.xwork2.validator.annotations.StringLengthFieldValidator;
-import com.opensymphony.xwork2.validator.annotations.UrlValidator;
-import com.opensymphony.xwork2.validator.annotations.ValidationParameter;
-import com.opensymphony.xwork2.validator.annotations.VisitorFieldValidator;
+import org.apache.struts2.ActionSupport;
+import org.apache.struts2.validator.annotations.ConditionalVisitorFieldValidator;
+import org.apache.struts2.validator.annotations.ConversionErrorFieldValidator;
+import org.apache.struts2.validator.annotations.CreditCardValidator;
+import org.apache.struts2.validator.annotations.CustomValidator;
+import org.apache.struts2.validator.annotations.DateRangeFieldValidator;
+import org.apache.struts2.validator.annotations.DoubleRangeFieldValidator;
+import org.apache.struts2.validator.annotations.EmailValidator;
+import org.apache.struts2.validator.annotations.ExpressionValidator;
+import org.apache.struts2.validator.annotations.FieldExpressionValidator;
+import org.apache.struts2.validator.annotations.IntRangeFieldValidator;
+import org.apache.struts2.validator.annotations.LongRangeFieldValidator;
+import org.apache.struts2.validator.annotations.RegexFieldValidator;
+import org.apache.struts2.validator.annotations.RequiredFieldValidator;
+import org.apache.struts2.validator.annotations.RequiredStringValidator;
+import org.apache.struts2.validator.annotations.ShortRangeFieldValidator;
+import org.apache.struts2.validator.annotations.StringLengthFieldValidator;
+import org.apache.struts2.validator.annotations.UrlValidator;
+import org.apache.struts2.validator.annotations.ValidationParameter;
+import org.apache.struts2.validator.annotations.VisitorFieldValidator;
/**
* Sets up all available validation annotations
diff --git a/core/src/test/java/com/opensymphony/xwork2/validator/AnnotationValidationConfigurationBuilderTest.java b/core/src/test/java/org/apache/struts2/validator/AnnotationValidationConfigurationBuilderTest.java
similarity index 89%
rename from core/src/test/java/com/opensymphony/xwork2/validator/AnnotationValidationConfigurationBuilderTest.java
rename to core/src/test/java/org/apache/struts2/validator/AnnotationValidationConfigurationBuilderTest.java
index 6ce0225e91..6f4430ba07 100644
--- a/core/src/test/java/com/opensymphony/xwork2/validator/AnnotationValidationConfigurationBuilderTest.java
+++ b/core/src/test/java/org/apache/struts2/validator/AnnotationValidationConfigurationBuilderTest.java
@@ -16,39 +16,39 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
-
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.ActionSupport;
-import com.opensymphony.xwork2.DefaultActionInvocation;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.config.Configuration;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.config.ConfigurationProvider;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.config.entities.PackageConfig;
-import com.opensymphony.xwork2.inject.ContainerBuilder;
-import com.opensymphony.xwork2.util.ValueStack;
-import com.opensymphony.xwork2.util.ValueStackFactory;
-import com.opensymphony.xwork2.util.location.LocatableProperties;
-import com.opensymphony.xwork2.validator.validators.ConditionalVisitorFieldValidator;
-import com.opensymphony.xwork2.validator.validators.ConversionErrorFieldValidator;
-import com.opensymphony.xwork2.validator.validators.CreditCardValidator;
-import com.opensymphony.xwork2.validator.validators.DateRangeFieldValidator;
-import com.opensymphony.xwork2.validator.validators.DoubleRangeFieldValidator;
-import com.opensymphony.xwork2.validator.validators.EmailValidator;
-import com.opensymphony.xwork2.validator.validators.ExpressionValidator;
-import com.opensymphony.xwork2.validator.validators.FieldExpressionValidator;
-import com.opensymphony.xwork2.validator.validators.IntRangeFieldValidator;
-import com.opensymphony.xwork2.validator.validators.LongRangeFieldValidator;
-import com.opensymphony.xwork2.validator.validators.RegexFieldValidator;
-import com.opensymphony.xwork2.validator.validators.RequiredFieldValidator;
-import com.opensymphony.xwork2.validator.validators.RequiredStringValidator;
-import com.opensymphony.xwork2.validator.validators.ShortRangeFieldValidator;
-import com.opensymphony.xwork2.validator.validators.StringLengthFieldValidator;
-import com.opensymphony.xwork2.validator.validators.URLValidator;
-import com.opensymphony.xwork2.validator.validators.VisitorFieldValidator;
+package org.apache.struts2.validator;
+
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.ActionSupport;
+import org.apache.struts2.DefaultActionInvocation;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.config.Configuration;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.config.ConfigurationProvider;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.config.entities.PackageConfig;
+import org.apache.struts2.inject.ContainerBuilder;
+import org.apache.struts2.util.ValueStack;
+import org.apache.struts2.util.ValueStackFactory;
+import org.apache.struts2.util.location.LocatableProperties;
+import org.apache.struts2.validator.validators.ConditionalVisitorFieldValidator;
+import org.apache.struts2.validator.validators.ConversionErrorFieldValidator;
+import org.apache.struts2.validator.validators.CreditCardValidator;
+import org.apache.struts2.validator.validators.DateRangeFieldValidator;
+import org.apache.struts2.validator.validators.DoubleRangeFieldValidator;
+import org.apache.struts2.validator.validators.EmailValidator;
+import org.apache.struts2.validator.validators.ExpressionValidator;
+import org.apache.struts2.validator.validators.FieldExpressionValidator;
+import org.apache.struts2.validator.validators.IntRangeFieldValidator;
+import org.apache.struts2.validator.validators.LongRangeFieldValidator;
+import org.apache.struts2.validator.validators.RegexFieldValidator;
+import org.apache.struts2.validator.validators.RequiredFieldValidator;
+import org.apache.struts2.validator.validators.RequiredStringValidator;
+import org.apache.struts2.validator.validators.ShortRangeFieldValidator;
+import org.apache.struts2.validator.validators.StringLengthFieldValidator;
+import org.apache.struts2.validator.validators.URLValidator;
+import org.apache.struts2.validator.validators.VisitorFieldValidator;
import org.apache.struts2.StrutsConstants;
import java.text.ParseException;
diff --git a/core/src/test/java/com/opensymphony/xwork2/validator/AnnotationValidationExpAction.java b/core/src/test/java/org/apache/struts2/validator/AnnotationValidationExpAction.java
similarity index 81%
rename from core/src/test/java/com/opensymphony/xwork2/validator/AnnotationValidationExpAction.java
rename to core/src/test/java/org/apache/struts2/validator/AnnotationValidationExpAction.java
index f794391496..5d4d2f727f 100644
--- a/core/src/test/java/com/opensymphony/xwork2/validator/AnnotationValidationExpAction.java
+++ b/core/src/test/java/org/apache/struts2/validator/AnnotationValidationExpAction.java
@@ -16,26 +16,26 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
-
-import com.opensymphony.xwork2.ActionSupport;
-import com.opensymphony.xwork2.validator.annotations.ConditionalVisitorFieldValidator;
-import com.opensymphony.xwork2.validator.annotations.ConversionErrorFieldValidator;
-import com.opensymphony.xwork2.validator.annotations.CustomValidator;
-import com.opensymphony.xwork2.validator.annotations.DateRangeFieldValidator;
-import com.opensymphony.xwork2.validator.annotations.DoubleRangeFieldValidator;
-import com.opensymphony.xwork2.validator.annotations.EmailValidator;
-import com.opensymphony.xwork2.validator.annotations.ExpressionValidator;
-import com.opensymphony.xwork2.validator.annotations.FieldExpressionValidator;
-import com.opensymphony.xwork2.validator.annotations.IntRangeFieldValidator;
-import com.opensymphony.xwork2.validator.annotations.RegexFieldValidator;
-import com.opensymphony.xwork2.validator.annotations.RequiredFieldValidator;
-import com.opensymphony.xwork2.validator.annotations.RequiredStringValidator;
-import com.opensymphony.xwork2.validator.annotations.ShortRangeFieldValidator;
-import com.opensymphony.xwork2.validator.annotations.StringLengthFieldValidator;
-import com.opensymphony.xwork2.validator.annotations.UrlValidator;
-import com.opensymphony.xwork2.validator.annotations.ValidationParameter;
-import com.opensymphony.xwork2.validator.annotations.VisitorFieldValidator;
+package org.apache.struts2.validator;
+
+import org.apache.struts2.ActionSupport;
+import org.apache.struts2.validator.annotations.ConditionalVisitorFieldValidator;
+import org.apache.struts2.validator.annotations.ConversionErrorFieldValidator;
+import org.apache.struts2.validator.annotations.CustomValidator;
+import org.apache.struts2.validator.annotations.DateRangeFieldValidator;
+import org.apache.struts2.validator.annotations.DoubleRangeFieldValidator;
+import org.apache.struts2.validator.annotations.EmailValidator;
+import org.apache.struts2.validator.annotations.ExpressionValidator;
+import org.apache.struts2.validator.annotations.FieldExpressionValidator;
+import org.apache.struts2.validator.annotations.IntRangeFieldValidator;
+import org.apache.struts2.validator.annotations.RegexFieldValidator;
+import org.apache.struts2.validator.annotations.RequiredFieldValidator;
+import org.apache.struts2.validator.annotations.RequiredStringValidator;
+import org.apache.struts2.validator.annotations.ShortRangeFieldValidator;
+import org.apache.struts2.validator.annotations.StringLengthFieldValidator;
+import org.apache.struts2.validator.annotations.UrlValidator;
+import org.apache.struts2.validator.annotations.ValidationParameter;
+import org.apache.struts2.validator.annotations.VisitorFieldValidator;
import java.text.ParseException;
import java.text.SimpleDateFormat;
diff --git a/core/src/test/java/com/opensymphony/xwork2/validator/ConversionErrorFieldValidatorTest.java b/core/src/test/java/org/apache/struts2/validator/ConversionErrorFieldValidatorTest.java
similarity index 85%
rename from core/src/test/java/com/opensymphony/xwork2/validator/ConversionErrorFieldValidatorTest.java
rename to core/src/test/java/org/apache/struts2/validator/ConversionErrorFieldValidatorTest.java
index 913fa9b4aa..0d814469b2 100644
--- a/core/src/test/java/com/opensymphony/xwork2/validator/ConversionErrorFieldValidatorTest.java
+++ b/core/src/test/java/org/apache/struts2/validator/ConversionErrorFieldValidatorTest.java
@@ -16,16 +16,16 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
-
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.TextProviderFactory;
-import com.opensymphony.xwork2.interceptor.ValidationAware;
-import com.opensymphony.xwork2.ValidationAwareSupport;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.conversion.impl.ConversionData;
-import com.opensymphony.xwork2.util.ValueStack;
-import com.opensymphony.xwork2.validator.validators.ConversionErrorFieldValidator;
+package org.apache.struts2.validator;
+
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.TextProviderFactory;
+import org.apache.struts2.interceptor.ValidationAware;
+import org.apache.struts2.ValidationAwareSupport;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.conversion.impl.ConversionData;
+import org.apache.struts2.util.ValueStack;
+import org.apache.struts2.validator.validators.ConversionErrorFieldValidator;
import java.util.HashMap;
import java.util.List;
diff --git a/core/src/test/java/com/opensymphony/xwork2/validator/DateRangeValidatorTest.java b/core/src/test/java/org/apache/struts2/validator/DateRangeValidatorTest.java
similarity index 88%
rename from core/src/test/java/com/opensymphony/xwork2/validator/DateRangeValidatorTest.java
rename to core/src/test/java/org/apache/struts2/validator/DateRangeValidatorTest.java
index e4a8a7369f..c4ff0254b5 100644
--- a/core/src/test/java/com/opensymphony/xwork2/validator/DateRangeValidatorTest.java
+++ b/core/src/test/java/org/apache/struts2/validator/DateRangeValidatorTest.java
@@ -16,14 +16,14 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
+package org.apache.struts2.validator;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionProxy;
-import com.opensymphony.xwork2.interceptor.ValidationAware;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.config.providers.MockConfigurationProvider;
-import com.opensymphony.xwork2.validator.validators.DateRangeFieldValidator;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.interceptor.ValidationAware;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.config.providers.MockConfigurationProvider;
+import org.apache.struts2.validator.validators.DateRangeFieldValidator;
import org.apache.struts2.dispatcher.HttpParameters;
import java.util.*;
diff --git a/core/src/test/java/com/opensymphony/xwork2/validator/DefaultActionValidatorManagerTest.java b/core/src/test/java/org/apache/struts2/validator/DefaultActionValidatorManagerTest.java
similarity index 88%
rename from core/src/test/java/com/opensymphony/xwork2/validator/DefaultActionValidatorManagerTest.java
rename to core/src/test/java/org/apache/struts2/validator/DefaultActionValidatorManagerTest.java
index 5014a374f7..06914d31f5 100644
--- a/core/src/test/java/com/opensymphony/xwork2/validator/DefaultActionValidatorManagerTest.java
+++ b/core/src/test/java/org/apache/struts2/validator/DefaultActionValidatorManagerTest.java
@@ -16,26 +16,27 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
-
-import com.opensymphony.xwork2.FileManagerFactory;
-import com.opensymphony.xwork2.SimpleAction;
-import com.opensymphony.xwork2.TestBean;
-import com.opensymphony.xwork2.ValidationOrderAction;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.interceptor.ValidationAware;
-import com.opensymphony.xwork2.test.DataAware2;
-import com.opensymphony.xwork2.test.SimpleAction3;
-import com.opensymphony.xwork2.test.User;
-import com.opensymphony.xwork2.validator.validators.DateRangeFieldValidator;
-import com.opensymphony.xwork2.validator.validators.DoubleRangeFieldValidator;
-import com.opensymphony.xwork2.validator.validators.ExpressionValidator;
-import com.opensymphony.xwork2.validator.validators.IntRangeFieldValidator;
-import com.opensymphony.xwork2.validator.validators.LongRangeFieldValidator;
-import com.opensymphony.xwork2.validator.validators.RequiredFieldValidator;
-import com.opensymphony.xwork2.validator.validators.RequiredStringValidator;
-import com.opensymphony.xwork2.validator.validators.ShortRangeFieldValidator;
+package org.apache.struts2.validator;
+
+import org.apache.struts2.FileManagerFactory;
+import org.apache.struts2.SimpleAction;
+import org.apache.struts2.TestBean;
+import org.apache.struts2.ValidationOrderAction;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.interceptor.ValidationAware;
+import org.apache.struts2.test.DataAware2;
+import org.apache.struts2.test.SimpleAction3;
+import org.apache.struts2.test.User;
+import org.apache.struts2.validator.validators.DateRangeFieldValidator;
+import org.apache.struts2.validator.validators.DoubleRangeFieldValidator;
+import org.apache.struts2.validator.validators.ExpressionValidator;
+import org.apache.struts2.validator.validators.IntRangeFieldValidator;
+import org.apache.struts2.validator.validators.LongRangeFieldValidator;
+import org.apache.struts2.validator.validators.RequiredFieldValidator;
+import org.apache.struts2.validator.validators.RequiredStringValidator;
+import org.apache.struts2.validator.validators.ShortRangeFieldValidator;
import org.apache.struts2.StrutsException;
+import org.assertj.core.api.Assertions;
import org.xml.sax.SAXParseException;
import java.util.ArrayList;
@@ -72,7 +73,7 @@ public void testBuildValidatorKey() {
public void testBuildsValidatorsForAlias() {
List validators = actionValidatorManager.getValidators(SimpleAction.class, alias);
- assertThat(validators).hasSize(11).map(Validator::getClass).containsExactly(
+ Assertions.assertThat(validators).hasSize(11).map(Validator::getClass).containsExactly(
ExpressionValidator.class,
RequiredFieldValidator.class,
IntRangeFieldValidator.class,
@@ -85,7 +86,7 @@ public void testBuildsValidatorsForAlias() {
RequiredFieldValidator.class,
IntRangeFieldValidator.class
);
- assertThat(validators).hasSize(11).map(Validator::getDefaultMessage).containsExactly(
+ Assertions.assertThat(validators).hasSize(11).map(Validator::getDefaultMessage).containsExactly(
"Foo must be greater than Bar. Foo = ${foo}, Bar = ${bar}.",
"You must enter a value for bar.",
"bar must be between ${min} and ${max}, current value is ${bar}.",
@@ -110,17 +111,17 @@ public void testBuildsValidatorsForAliasError() {
public void testGetValidatorsForInterface() {
List validators = actionValidatorManager.getValidators(DataAware2.class, alias);
- assertThat(validators).hasSize(3).map(Validator::getClass).containsExactly(
+ Assertions.assertThat(validators).hasSize(3).map(Validator::getClass).containsExactly(
RequiredFieldValidator.class,
RequiredStringValidator.class,
RequiredStringValidator.class
);
- assertThat(validators).hasSize(3).map(Validator::getValidatorType).containsExactly(
+ Assertions.assertThat(validators).hasSize(3).map(Validator::getValidatorType).containsExactly(
"required",
"requiredstring",
"requiredstring"
);
- assertThat(validators).hasSize(3).map(Validator::getDefaultMessage).containsExactly(
+ Assertions.assertThat(validators).hasSize(3).map(Validator::getDefaultMessage).containsExactly(
"You must enter a value for data.",
"You must enter a value for data.",
"You must enter a value for data."
@@ -130,7 +131,7 @@ public void testGetValidatorsForInterface() {
public void testGetValidatorsFromInterface() {
List validators = actionValidatorManager.getValidators(SimpleAction3.class, alias);
- assertThat(validators).hasSize(13).map(Validator::getClass).containsExactly(
+ Assertions.assertThat(validators).hasSize(13).map(Validator::getClass).containsExactly(
ExpressionValidator.class,
RequiredFieldValidator.class,
IntRangeFieldValidator.class,
@@ -145,7 +146,7 @@ public void testGetValidatorsFromInterface() {
RequiredFieldValidator.class,
RequiredStringValidator.class
);
- assertThat(validators).hasSize(13).map(Validator::getValidatorType).containsExactly(
+ Assertions.assertThat(validators).hasSize(13).map(Validator::getValidatorType).containsExactly(
"expression",
"required",
"int",
@@ -160,7 +161,7 @@ public void testGetValidatorsFromInterface() {
"required",
"requiredstring"
);
- assertThat(validators).hasSize(13).map(Validator::getDefaultMessage).containsExactly(
+ Assertions.assertThat(validators).hasSize(13).map(Validator::getDefaultMessage).containsExactly(
"Foo must be greater than Bar. Foo = ${foo}, Bar = ${bar}.",
"You must enter a value for bar.",
"bar must be between ${min} and ${max}, current value is ${bar}.",
diff --git a/core/src/test/java/com/opensymphony/xwork2/validator/DefaultValidatorFactoryTest.java b/core/src/test/java/org/apache/struts2/validator/DefaultValidatorFactoryTest.java
similarity index 92%
rename from core/src/test/java/com/opensymphony/xwork2/validator/DefaultValidatorFactoryTest.java
rename to core/src/test/java/org/apache/struts2/validator/DefaultValidatorFactoryTest.java
index 77359a3db7..43e3df0742 100644
--- a/core/src/test/java/com/opensymphony/xwork2/validator/DefaultValidatorFactoryTest.java
+++ b/core/src/test/java/org/apache/struts2/validator/DefaultValidatorFactoryTest.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
+package org.apache.struts2.validator;
import com.mockobjects.dynamic.C;
import com.mockobjects.dynamic.Mock;
@@ -32,7 +32,7 @@ public class DefaultValidatorFactoryTest extends TestCase {
public void testParseValidators() {
Mock mockValidatorFileParser = new Mock(ValidatorFileParser.class);
- mockValidatorFileParser.expect("parseValidatorDefinitions", C.args(C.IS_NOT_NULL, C.IS_NOT_NULL, C.eq("com/opensymphony/xwork2/validator/validators/default.xml")));
+ mockValidatorFileParser.expect("parseValidatorDefinitions", C.args(C.IS_NOT_NULL, C.IS_NOT_NULL, C.eq("org/apache/struts2/validator/validators/default.xml")));
mockValidatorFileParser.expect("parseValidatorDefinitions", C.args(C.IS_NOT_NULL, C.IS_NOT_NULL, C.eq("validators.xml")));
mockValidatorFileParser.expect("parseValidatorDefinitions", C.args(C.IS_NOT_NULL, C.IS_NOT_NULL, C.eq("myOther-validators.xml")));
mockValidatorFileParser.expect("parseValidatorDefinitions", C.args(C.IS_NOT_NULL, C.IS_NOT_NULL, C.eq("my-validators.xml")));
diff --git a/core/src/test/java/com/opensymphony/xwork2/validator/DefaultValidatorFileParserTest.java b/core/src/test/java/org/apache/struts2/validator/DefaultValidatorFileParserTest.java
similarity index 91%
rename from core/src/test/java/com/opensymphony/xwork2/validator/DefaultValidatorFileParserTest.java
rename to core/src/test/java/org/apache/struts2/validator/DefaultValidatorFileParserTest.java
index 3c41b9fc9b..de0eb58b9d 100644
--- a/core/src/test/java/com/opensymphony/xwork2/validator/DefaultValidatorFileParserTest.java
+++ b/core/src/test/java/org/apache/struts2/validator/DefaultValidatorFileParserTest.java
@@ -16,12 +16,12 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
+package org.apache.struts2.validator;
import com.mockobjects.dynamic.C;
import com.mockobjects.dynamic.Mock;
-import com.opensymphony.xwork2.util.ClassLoaderUtil;
-import com.opensymphony.xwork2.validator.validators.*;
+import org.apache.struts2.util.ClassLoaderUtil;
+import org.apache.struts2.validator.validators.*;
import junit.framework.TestCase;
import org.apache.struts2.StrutsException;
@@ -37,13 +37,13 @@
*/
public class DefaultValidatorFileParserTest extends TestCase {
- private static final String testFileName = "com/opensymphony/xwork2/validator/validator-parser-test.xml";
- private static final String testFileName2 = "com/opensymphony/xwork2/validator/validator-parser-test2.xml";
- private static final String testFileName3 = "com/opensymphony/xwork2/validator/validator-parser-test3.xml";
- private static final String testFileName4 = "com/opensymphony/xwork2/validator/validator-parser-test4.xml";
- private static final String testFileName5 = "com/opensymphony/xwork2/validator/validator-parser-test5.xml";
- private static final String testFileName6 = "com/opensymphony/xwork2/validator/validator-parser-test6.xml";
- private static final String testFileNameFail = "com/opensymphony/xwork2/validator/validators-fail.xml";
+ private static final String testFileName = "org/apache/struts2/validator/validator-parser-test.xml";
+ private static final String testFileName2 = "org/apache/struts2/validator/validator-parser-test2.xml";
+ private static final String testFileName3 = "org/apache/struts2/validator/validator-parser-test3.xml";
+ private static final String testFileName4 = "org/apache/struts2/validator/validator-parser-test4.xml";
+ private static final String testFileName5 = "org/apache/struts2/validator/validator-parser-test5.xml";
+ private static final String testFileName6 = "org/apache/struts2/validator/validator-parser-test6.xml";
+ private static final String testFileNameFail = "org/apache/struts2/validator/validators-fail.xml";
private Mock mockValidatorFactory;
private ValidatorFileParser parser;
@@ -202,7 +202,7 @@ public void testValidatorWithI18nMessage() throws Exception {
}
}
-
+
@Override
protected void setUp() throws Exception {
super.setUp();
diff --git a/core/src/test/java/com/opensymphony/xwork2/validator/DoubleRangeFieldValidatorTest.java b/core/src/test/java/org/apache/struts2/validator/DoubleRangeFieldValidatorTest.java
similarity index 95%
rename from core/src/test/java/com/opensymphony/xwork2/validator/DoubleRangeFieldValidatorTest.java
rename to core/src/test/java/org/apache/struts2/validator/DoubleRangeFieldValidatorTest.java
index 971517ca69..660b003ce1 100644
--- a/core/src/test/java/com/opensymphony/xwork2/validator/DoubleRangeFieldValidatorTest.java
+++ b/core/src/test/java/org/apache/struts2/validator/DoubleRangeFieldValidatorTest.java
@@ -16,19 +16,19 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
-
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionProxy;
-import com.opensymphony.xwork2.ActionSupport;
-import com.opensymphony.xwork2.TextProviderFactory;
-import com.opensymphony.xwork2.ValidationAwareSupport;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.config.providers.MockConfigurationProvider;
-import com.opensymphony.xwork2.config.providers.XmlConfigurationProvider;
-import com.opensymphony.xwork2.interceptor.ValidationAware;
-import com.opensymphony.xwork2.util.ValueStack;
-import com.opensymphony.xwork2.validator.validators.DoubleRangeFieldValidator;
+package org.apache.struts2.validator;
+
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.ActionSupport;
+import org.apache.struts2.TextProviderFactory;
+import org.apache.struts2.ValidationAwareSupport;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.config.providers.MockConfigurationProvider;
+import org.apache.struts2.config.providers.XmlConfigurationProvider;
+import org.apache.struts2.interceptor.ValidationAware;
+import org.apache.struts2.util.ValueStack;
+import org.apache.struts2.validator.validators.DoubleRangeFieldValidator;
import org.apache.struts2.config.StrutsXmlConfigurationProvider;
import org.apache.struts2.dispatcher.HttpParameters;
diff --git a/core/src/test/java/com/opensymphony/xwork2/validator/DummyValidatorContext.java b/core/src/test/java/org/apache/struts2/validator/DummyValidatorContext.java
similarity index 97%
rename from core/src/test/java/com/opensymphony/xwork2/validator/DummyValidatorContext.java
rename to core/src/test/java/org/apache/struts2/validator/DummyValidatorContext.java
index 60f54221ff..f386a03cd9 100644
--- a/core/src/test/java/com/opensymphony/xwork2/validator/DummyValidatorContext.java
+++ b/core/src/test/java/org/apache/struts2/validator/DummyValidatorContext.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
+package org.apache.struts2.validator;
-import com.opensymphony.xwork2.TextProviderFactory;
+import org.apache.struts2.TextProviderFactory;
import java.util.*;
diff --git a/core/src/test/java/com/opensymphony/xwork2/validator/EmailValidatorTest.java b/core/src/test/java/org/apache/struts2/validator/EmailValidatorTest.java
similarity index 94%
rename from core/src/test/java/com/opensymphony/xwork2/validator/EmailValidatorTest.java
rename to core/src/test/java/org/apache/struts2/validator/EmailValidatorTest.java
index 73f7efc3dd..663b96c19c 100644
--- a/core/src/test/java/com/opensymphony/xwork2/validator/EmailValidatorTest.java
+++ b/core/src/test/java/org/apache/struts2/validator/EmailValidatorTest.java
@@ -16,14 +16,14 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
-
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionSupport;
-import com.opensymphony.xwork2.TextProviderFactory;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.util.ValueStack;
-import com.opensymphony.xwork2.validator.validators.EmailValidator;
+package org.apache.struts2.validator;
+
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionSupport;
+import org.apache.struts2.TextProviderFactory;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.util.ValueStack;
+import org.apache.struts2.validator.validators.EmailValidator;
/**
* Test case for Email Validator
diff --git a/core/src/test/java/com/opensymphony/xwork2/validator/ExpressionValidatorTest.java b/core/src/test/java/org/apache/struts2/validator/ExpressionValidatorTest.java
similarity index 90%
rename from core/src/test/java/com/opensymphony/xwork2/validator/ExpressionValidatorTest.java
rename to core/src/test/java/org/apache/struts2/validator/ExpressionValidatorTest.java
index 2569ca68d1..82b373ef81 100644
--- a/core/src/test/java/com/opensymphony/xwork2/validator/ExpressionValidatorTest.java
+++ b/core/src/test/java/org/apache/struts2/validator/ExpressionValidatorTest.java
@@ -16,15 +16,22 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
+package org.apache.struts2.validator;
import com.mockobjects.dynamic.C;
import com.mockobjects.dynamic.Mock;
-import com.opensymphony.xwork2.*;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.config.providers.MockConfigurationProvider;
-import com.opensymphony.xwork2.interceptor.ValidationAware;
-import com.opensymphony.xwork2.validator.validators.ExpressionValidator;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.TestBean;
+import org.apache.struts2.TextProviderFactory;
+import org.apache.struts2.ValidationAwareSupport;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.config.providers.MockConfigurationProvider;
+import org.apache.struts2.interceptor.ValidationAware;
+import org.apache.struts2.validator.validators.ExpressionValidator;
import org.apache.struts2.dispatcher.HttpParameters;
import org.easymock.EasyMock;
diff --git a/core/src/test/java/com/opensymphony/xwork2/validator/IntRangeValidatorTest.java b/core/src/test/java/org/apache/struts2/validator/IntRangeValidatorTest.java
similarity index 85%
rename from core/src/test/java/com/opensymphony/xwork2/validator/IntRangeValidatorTest.java
rename to core/src/test/java/org/apache/struts2/validator/IntRangeValidatorTest.java
index f42af3ee69..474ce7b119 100644
--- a/core/src/test/java/com/opensymphony/xwork2/validator/IntRangeValidatorTest.java
+++ b/core/src/test/java/org/apache/struts2/validator/IntRangeValidatorTest.java
@@ -16,14 +16,14 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
+package org.apache.struts2.validator;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionProxy;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.config.providers.MockConfigurationProvider;
-import com.opensymphony.xwork2.config.providers.XmlConfigurationProvider;
-import com.opensymphony.xwork2.interceptor.ValidationAware;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.config.providers.MockConfigurationProvider;
+import org.apache.struts2.config.providers.XmlConfigurationProvider;
+import org.apache.struts2.interceptor.ValidationAware;
import org.apache.struts2.config.StrutsXmlConfigurationProvider;
import org.apache.struts2.dispatcher.HttpParameters;
diff --git a/core/src/test/java/com/opensymphony/xwork2/validator/LongRangeValidatorTest.java b/core/src/test/java/org/apache/struts2/validator/LongRangeValidatorTest.java
similarity index 85%
rename from core/src/test/java/com/opensymphony/xwork2/validator/LongRangeValidatorTest.java
rename to core/src/test/java/org/apache/struts2/validator/LongRangeValidatorTest.java
index 560c5d50f8..a4ab507774 100644
--- a/core/src/test/java/com/opensymphony/xwork2/validator/LongRangeValidatorTest.java
+++ b/core/src/test/java/org/apache/struts2/validator/LongRangeValidatorTest.java
@@ -16,14 +16,14 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
+package org.apache.struts2.validator;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionProxy;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.config.providers.MockConfigurationProvider;
-import com.opensymphony.xwork2.config.providers.XmlConfigurationProvider;
-import com.opensymphony.xwork2.interceptor.ValidationAware;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.config.providers.MockConfigurationProvider;
+import org.apache.struts2.config.providers.XmlConfigurationProvider;
+import org.apache.struts2.interceptor.ValidationAware;
import org.apache.struts2.config.StrutsXmlConfigurationProvider;
import org.apache.struts2.dispatcher.HttpParameters;
diff --git a/core/src/test/java/com/opensymphony/xwork2/validator/ModelDrivenValidationTest.java b/core/src/test/java/org/apache/struts2/validator/ModelDrivenValidationTest.java
similarity index 86%
rename from core/src/test/java/com/opensymphony/xwork2/validator/ModelDrivenValidationTest.java
rename to core/src/test/java/org/apache/struts2/validator/ModelDrivenValidationTest.java
index 6014b279bf..7ba745c1bd 100644
--- a/core/src/test/java/com/opensymphony/xwork2/validator/ModelDrivenValidationTest.java
+++ b/core/src/test/java/org/apache/struts2/validator/ModelDrivenValidationTest.java
@@ -16,14 +16,14 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
-
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionProxy;
-import com.opensymphony.xwork2.ModelDrivenAction;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.config.providers.XmlConfigurationProvider;
+package org.apache.struts2.validator;
+
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.ModelDrivenAction;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.config.providers.XmlConfigurationProvider;
import org.apache.struts2.config.StrutsXmlConfigurationProvider;
import org.apache.struts2.dispatcher.HttpParameters;
diff --git a/core/src/test/java/com/opensymphony/xwork2/validator/MyValidator.java b/core/src/test/java/org/apache/struts2/validator/MyValidator.java
similarity index 96%
rename from core/src/test/java/com/opensymphony/xwork2/validator/MyValidator.java
rename to core/src/test/java/org/apache/struts2/validator/MyValidator.java
index 1e36687d36..ba29f9b9d9 100644
--- a/core/src/test/java/com/opensymphony/xwork2/validator/MyValidator.java
+++ b/core/src/test/java/org/apache/struts2/validator/MyValidator.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
+package org.apache.struts2.validator;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
/**
* TODO lukaszlenart: write a JavaDoc
diff --git a/core/src/test/java/com/opensymphony/xwork2/validator/RegexFieldValidatorTest.java b/core/src/test/java/org/apache/struts2/validator/RegexFieldValidatorTest.java
similarity index 96%
rename from core/src/test/java/com/opensymphony/xwork2/validator/RegexFieldValidatorTest.java
rename to core/src/test/java/org/apache/struts2/validator/RegexFieldValidatorTest.java
index df7f505f3d..a7b99ea109 100644
--- a/core/src/test/java/com/opensymphony/xwork2/validator/RegexFieldValidatorTest.java
+++ b/core/src/test/java/org/apache/struts2/validator/RegexFieldValidatorTest.java
@@ -16,15 +16,14 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
+package org.apache.struts2.validator;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.TextProviderFactory;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.util.ValueStack;
-import com.opensymphony.xwork2.validator.validators.RegexFieldValidator;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.TextProviderFactory;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.util.ValueStack;
+import org.apache.struts2.validator.validators.RegexFieldValidator;
-import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
diff --git a/core/src/test/java/com/opensymphony/xwork2/validator/RepopulateConversionErrorFieldValidatorSupportTest.java b/core/src/test/java/org/apache/struts2/validator/RepopulateConversionErrorFieldValidatorSupportTest.java
similarity index 87%
rename from core/src/test/java/com/opensymphony/xwork2/validator/RepopulateConversionErrorFieldValidatorSupportTest.java
rename to core/src/test/java/org/apache/struts2/validator/RepopulateConversionErrorFieldValidatorSupportTest.java
index bcb0281a6b..e9d96e71da 100644
--- a/core/src/test/java/com/opensymphony/xwork2/validator/RepopulateConversionErrorFieldValidatorSupportTest.java
+++ b/core/src/test/java/org/apache/struts2/validator/RepopulateConversionErrorFieldValidatorSupportTest.java
@@ -16,72 +16,72 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
+package org.apache.struts2.validator;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionSupport;
-import com.opensymphony.xwork2.TextProviderFactory;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.conversion.impl.ConversionData;
-import com.opensymphony.xwork2.mock.MockActionInvocation;
-import com.opensymphony.xwork2.util.ValueStack;
-import com.opensymphony.xwork2.validator.validators.RepopulateConversionErrorFieldValidatorSupport;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionSupport;
+import org.apache.struts2.TextProviderFactory;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.conversion.impl.ConversionData;
+import org.apache.struts2.mock.MockActionInvocation;
+import org.apache.struts2.util.ValueStack;
+import org.apache.struts2.validator.validators.RepopulateConversionErrorFieldValidatorSupport;
import java.util.Map;
/**
* Test RepopulateConversionErrorFieldValidatorSupport.
- *
+ *
* @author tm_jee
* @version $Date$ $Id$
*/
public class RepopulateConversionErrorFieldValidatorSupportTest extends XWorkTestCase {
-
+
InternalRepopulateConversionErrorFieldValidatorSupport validator1;
InternalRepopulateConversionErrorFieldValidatorSupport validator2;
ActionSupport action;
-
+
public void testUseFullFieldName() throws Exception {
validator2.setRepopulateField(true);
validator2.validate(action);
-
+
ActionContext.getContext().getActionInvocation().invoke();
Object valueFromStack1 = ActionContext.getContext().getValueStack().findValue("someFieldName", String.class);
Object valueFromStack2 = ActionContext.getContext().getValueStack().findValue("xxxsomeFieldName", String.class);
-
+
assertNull(valueFromStack1);
assertEquals(valueFromStack2, "some value");
}
-
+
public void testGetterSetterGetsCalledApropriately1() throws Exception {
-
+
validator1.setRepopulateField(true);
validator1.validate(action);
-
+
ActionContext.getContext().getActionInvocation().invoke();
-
+
Object valueFromStack = ActionContext.getContext().getValueStack().findValue("someFieldName", String.class);
-
+
assertEquals(valueFromStack, "some value");
}
-
-
+
+
public void testGetterSetterGetsCalledApropriately2() throws Exception {
-
+
validator1.setRepopulateField(false);
validator1.validate(action);
-
+
ActionContext.getContext().getActionInvocation().invoke();
-
+
Object valueFromStack = ActionContext.getContext().getValueStack().findValue("someFieldName", String.class);
-
+
assertEquals(valueFromStack, null);
}
-
-
+
+
@Override
protected void setUp() throws Exception {
super.setUp();
@@ -89,7 +89,7 @@ protected void setUp() throws Exception {
MockActionInvocation invocation = new MockActionInvocation();
invocation.setStack(stack);
ActionContext.getContext().withActionInvocation(invocation);
-
+
String[] conversionErrorValue = new String[] { "some value" };
Map conversionErrors = ActionContext.getContext().getConversionErrors();
conversionErrors.put("someFieldName", new ConversionData(conversionErrorValue, Integer.class));
@@ -98,12 +98,12 @@ protected void setUp() throws Exception {
TextProviderFactory tpf = container.getInstance(TextProviderFactory.class);
action = container.inject(ActionSupport.class);
- validator1 =
+ validator1 =
new InternalRepopulateConversionErrorFieldValidatorSupport();
validator1.setFieldName("someFieldName");
validator1.setValidatorContext(new DelegatingValidatorContext(action, tpf));
-
- validator2 =
+
+ validator2 =
new InternalRepopulateConversionErrorFieldValidatorSupport();
validator2.setFieldName("someFieldName");
validator2.setValidatorContext(new DelegatingValidatorContext(action, tpf) {
@@ -113,20 +113,20 @@ public String getFullFieldName(String fieldName) {
}
});
}
-
+
@Override
protected void tearDown() throws Exception {
super.tearDown();
validator1 = null;
action = null;
}
-
-
+
+
// === inner class ============
-
+
class InternalRepopulateConversionErrorFieldValidatorSupport extends RepopulateConversionErrorFieldValidatorSupport {
public boolean doValidateGetsCalled = false;
-
+
@Override
protected void doValidate(Object object) throws ValidationException {
doValidateGetsCalled = true;
diff --git a/core/src/test/java/com/opensymphony/xwork2/validator/ShortRangeValidatorTest.java b/core/src/test/java/org/apache/struts2/validator/ShortRangeValidatorTest.java
similarity index 85%
rename from core/src/test/java/com/opensymphony/xwork2/validator/ShortRangeValidatorTest.java
rename to core/src/test/java/org/apache/struts2/validator/ShortRangeValidatorTest.java
index aa176c9783..70e16c89ea 100644
--- a/core/src/test/java/com/opensymphony/xwork2/validator/ShortRangeValidatorTest.java
+++ b/core/src/test/java/org/apache/struts2/validator/ShortRangeValidatorTest.java
@@ -16,14 +16,14 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
+package org.apache.struts2.validator;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionProxy;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.config.providers.MockConfigurationProvider;
-import com.opensymphony.xwork2.config.providers.XmlConfigurationProvider;
-import com.opensymphony.xwork2.interceptor.ValidationAware;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.config.providers.MockConfigurationProvider;
+import org.apache.struts2.config.providers.XmlConfigurationProvider;
+import org.apache.struts2.interceptor.ValidationAware;
import org.apache.struts2.config.StrutsXmlConfigurationProvider;
import org.apache.struts2.dispatcher.HttpParameters;
diff --git a/core/src/test/java/com/opensymphony/xwork2/validator/SimpleActionValidationTest.java b/core/src/test/java/org/apache/struts2/validator/SimpleActionValidationTest.java
similarity index 92%
rename from core/src/test/java/com/opensymphony/xwork2/validator/SimpleActionValidationTest.java
rename to core/src/test/java/org/apache/struts2/validator/SimpleActionValidationTest.java
index 76f9a24abd..077c0b51fc 100644
--- a/core/src/test/java/com/opensymphony/xwork2/validator/SimpleActionValidationTest.java
+++ b/core/src/test/java/org/apache/struts2/validator/SimpleActionValidationTest.java
@@ -16,20 +16,20 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
-
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionProxy;
-import com.opensymphony.xwork2.SimpleAction;
-import com.opensymphony.xwork2.StubTextProvider;
-import com.opensymphony.xwork2.StubValueStack;
-import com.opensymphony.xwork2.TextProviderFactory;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.config.providers.MockConfigurationProvider;
-import com.opensymphony.xwork2.config.providers.XmlConfigurationProvider;
-import com.opensymphony.xwork2.interceptor.ValidationAware;
-import com.opensymphony.xwork2.util.ValueStack;
-import com.opensymphony.xwork2.validator.validators.ValidatorSupport;
+package org.apache.struts2.validator;
+
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.SimpleAction;
+import org.apache.struts2.StubTextProvider;
+import org.apache.struts2.StubValueStack;
+import org.apache.struts2.TextProviderFactory;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.config.providers.MockConfigurationProvider;
+import org.apache.struts2.config.providers.XmlConfigurationProvider;
+import org.apache.struts2.interceptor.ValidationAware;
+import org.apache.struts2.util.ValueStack;
+import org.apache.struts2.validator.validators.ValidatorSupport;
import org.apache.struts2.config.StrutsXmlConfigurationProvider;
import org.apache.struts2.dispatcher.HttpParameters;
@@ -237,7 +237,7 @@ public void testSubPropertiesAreValidated() {
public void testInitializable() throws Exception {
ValidatorFactory validatorFactory = container.getInstance(ValidatorFactory.class);
- assertEquals("com.opensymphony.xwork2.validator.validators.RequiredFieldValidator",
+ assertEquals("org.apache.struts2.validator.validators.RequiredFieldValidator",
validatorFactory.lookupRegisteredValidatorType("requiredAnother"));
}
diff --git a/core/src/test/java/com/opensymphony/xwork2/validator/StringLengthFieldValidatorTest.java b/core/src/test/java/org/apache/struts2/validator/StringLengthFieldValidatorTest.java
similarity index 95%
rename from core/src/test/java/com/opensymphony/xwork2/validator/StringLengthFieldValidatorTest.java
rename to core/src/test/java/org/apache/struts2/validator/StringLengthFieldValidatorTest.java
index dc1ee6b12a..9183a773e0 100644
--- a/core/src/test/java/com/opensymphony/xwork2/validator/StringLengthFieldValidatorTest.java
+++ b/core/src/test/java/org/apache/struts2/validator/StringLengthFieldValidatorTest.java
@@ -16,14 +16,14 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
-
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionSupport;
-import com.opensymphony.xwork2.TextProviderFactory;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.util.ValueStack;
-import com.opensymphony.xwork2.validator.validators.StringLengthFieldValidator;
+package org.apache.struts2.validator;
+
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionSupport;
+import org.apache.struts2.TextProviderFactory;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.util.ValueStack;
+import org.apache.struts2.validator.validators.StringLengthFieldValidator;
import org.apache.struts2.interceptor.parameter.StrutsParameter;
import java.util.Arrays;
diff --git a/core/src/test/java/com/opensymphony/xwork2/validator/StringValidatorTest.java b/core/src/test/java/org/apache/struts2/validator/StringValidatorTest.java
similarity index 92%
rename from core/src/test/java/com/opensymphony/xwork2/validator/StringValidatorTest.java
rename to core/src/test/java/org/apache/struts2/validator/StringValidatorTest.java
index 0aa41cd12e..2e4bde0778 100644
--- a/core/src/test/java/com/opensymphony/xwork2/validator/StringValidatorTest.java
+++ b/core/src/test/java/org/apache/struts2/validator/StringValidatorTest.java
@@ -16,19 +16,19 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
-
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.ActionProxy;
-import com.opensymphony.xwork2.TextProviderFactory;
-import com.opensymphony.xwork2.ValidationAwareSupport;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.config.providers.MockConfigurationProvider;
-import com.opensymphony.xwork2.test.Equidae;
-import com.opensymphony.xwork2.validator.validators.RequiredStringValidator;
+package org.apache.struts2.validator;
+
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.TextProviderFactory;
+import org.apache.struts2.ValidationAwareSupport;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.config.providers.MockConfigurationProvider;
+import org.apache.struts2.test.Equidae;
+import org.apache.struts2.validator.validators.RequiredStringValidator;
import org.easymock.EasyMock;
import java.util.List;
diff --git a/core/src/test/java/com/opensymphony/xwork2/validator/URLValidatorTest.java b/core/src/test/java/org/apache/struts2/validator/URLValidatorTest.java
similarity index 98%
rename from core/src/test/java/com/opensymphony/xwork2/validator/URLValidatorTest.java
rename to core/src/test/java/org/apache/struts2/validator/URLValidatorTest.java
index ac9119a993..cdad9db378 100644
--- a/core/src/test/java/com/opensymphony/xwork2/validator/URLValidatorTest.java
+++ b/core/src/test/java/org/apache/struts2/validator/URLValidatorTest.java
@@ -16,13 +16,13 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
+package org.apache.struts2.validator;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.TextProviderFactory;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.util.ValueStack;
-import com.opensymphony.xwork2.validator.validators.URLValidator;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.TextProviderFactory;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.util.ValueStack;
+import org.apache.struts2.validator.validators.URLValidator;
import org.apache.commons.validator.routines.UrlValidator;
import java.util.Arrays;
diff --git a/core/src/test/java/com/opensymphony/xwork2/validator/ValidatorAnnotationTest.java b/core/src/test/java/org/apache/struts2/validator/ValidatorAnnotationTest.java
similarity index 94%
rename from core/src/test/java/com/opensymphony/xwork2/validator/ValidatorAnnotationTest.java
rename to core/src/test/java/org/apache/struts2/validator/ValidatorAnnotationTest.java
index 0bb3195bfc..f85319e09d 100644
--- a/core/src/test/java/com/opensymphony/xwork2/validator/ValidatorAnnotationTest.java
+++ b/core/src/test/java/org/apache/struts2/validator/ValidatorAnnotationTest.java
@@ -16,13 +16,13 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
+package org.apache.struts2.validator;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionProxy;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.config.providers.XmlConfigurationProvider;
-import com.opensymphony.xwork2.interceptor.ValidationAware;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.config.providers.XmlConfigurationProvider;
+import org.apache.struts2.interceptor.ValidationAware;
import org.apache.struts2.config.StrutsXmlConfigurationProvider;
import org.apache.struts2.dispatcher.HttpParameters;
diff --git a/core/src/test/java/com/opensymphony/xwork2/validator/VisitorFieldValidatorModelTest.java b/core/src/test/java/org/apache/struts2/validator/VisitorFieldValidatorModelTest.java
similarity index 90%
rename from core/src/test/java/com/opensymphony/xwork2/validator/VisitorFieldValidatorModelTest.java
rename to core/src/test/java/org/apache/struts2/validator/VisitorFieldValidatorModelTest.java
index d88fa27370..05fd4f331b 100644
--- a/core/src/test/java/com/opensymphony/xwork2/validator/VisitorFieldValidatorModelTest.java
+++ b/core/src/test/java/org/apache/struts2/validator/VisitorFieldValidatorModelTest.java
@@ -16,23 +16,21 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
+package org.apache.struts2.validator;
-import com.opensymphony.xwork2.*;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.test.TestBean2;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.TestBean;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.test.TestBean2;
import java.util.*;
import org.easymock.EasyMock;
-
-/**
- * VisitorFieldValidatorModelTest
- *
- * @author Jason Carreira
- * Date: Mar 18, 2004 2:51:42 PM
- */
public class VisitorFieldValidatorModelTest extends XWorkTestCase {
protected VisitorValidatorModelAction action;
@@ -43,7 +41,7 @@ public void setUp() throws Exception {
action = new VisitorValidatorModelAction();
TestBean bean = action.getBean();
- Calendar cal = new GregorianCalendar(1900, 01, 01);
+ Calendar cal = new GregorianCalendar(1900, Calendar.FEBRUARY, 1);
bean.setBirth(cal.getTime());
bean.setCount(-1);
diff --git a/core/src/test/java/com/opensymphony/xwork2/validator/VisitorFieldValidatorTest.java b/core/src/test/java/org/apache/struts2/validator/VisitorFieldValidatorTest.java
similarity index 95%
rename from core/src/test/java/com/opensymphony/xwork2/validator/VisitorFieldValidatorTest.java
rename to core/src/test/java/org/apache/struts2/validator/VisitorFieldValidatorTest.java
index de605d2c5f..b9d361c3bc 100644
--- a/core/src/test/java/com/opensymphony/xwork2/validator/VisitorFieldValidatorTest.java
+++ b/core/src/test/java/org/apache/struts2/validator/VisitorFieldValidatorTest.java
@@ -16,16 +16,16 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
-
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.ActionProxy;
-import com.opensymphony.xwork2.TestBean;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.conversion.impl.ConversionData;
+package org.apache.struts2.validator;
+
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.TestBean;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.conversion.impl.ConversionData;
import org.easymock.EasyMock;
import java.sql.Date;
diff --git a/core/src/test/java/com/opensymphony/xwork2/validator/VisitorValidatorModelAction.java b/core/src/test/java/org/apache/struts2/validator/VisitorValidatorModelAction.java
similarity index 93%
rename from core/src/test/java/com/opensymphony/xwork2/validator/VisitorValidatorModelAction.java
rename to core/src/test/java/org/apache/struts2/validator/VisitorValidatorModelAction.java
index 9f5baeee0f..f9a20fe84a 100644
--- a/core/src/test/java/com/opensymphony/xwork2/validator/VisitorValidatorModelAction.java
+++ b/core/src/test/java/org/apache/struts2/validator/VisitorValidatorModelAction.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
+package org.apache.struts2.validator;
-import com.opensymphony.xwork2.ModelDriven;
+import org.apache.struts2.ModelDriven;
import org.apache.struts2.interceptor.parameter.StrutsParameter;
diff --git a/core/src/test/java/com/opensymphony/xwork2/validator/VisitorValidatorTestAction.java b/core/src/test/java/org/apache/struts2/validator/VisitorValidatorTestAction.java
similarity index 95%
rename from core/src/test/java/com/opensymphony/xwork2/validator/VisitorValidatorTestAction.java
rename to core/src/test/java/org/apache/struts2/validator/VisitorValidatorTestAction.java
index b7cef86ae9..d79e8f7d29 100644
--- a/core/src/test/java/com/opensymphony/xwork2/validator/VisitorValidatorTestAction.java
+++ b/core/src/test/java/org/apache/struts2/validator/VisitorValidatorTestAction.java
@@ -16,10 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator;
+package org.apache.struts2.validator;
-import com.opensymphony.xwork2.ActionSupport;
-import com.opensymphony.xwork2.TestBean;
+import org.apache.struts2.ActionSupport;
+import org.apache.struts2.TestBean;
import org.apache.struts2.interceptor.parameter.StrutsParameter;
import java.util.ArrayList;
diff --git a/core/src/test/java/com/opensymphony/xwork2/validator/validators/AppendingValidatorContextTest.java b/core/src/test/java/org/apache/struts2/validator/validators/AppendingValidatorContextTest.java
similarity index 83%
rename from core/src/test/java/com/opensymphony/xwork2/validator/validators/AppendingValidatorContextTest.java
rename to core/src/test/java/org/apache/struts2/validator/validators/AppendingValidatorContextTest.java
index a3470ef220..d1875bb199 100644
--- a/core/src/test/java/com/opensymphony/xwork2/validator/validators/AppendingValidatorContextTest.java
+++ b/core/src/test/java/org/apache/struts2/validator/validators/AppendingValidatorContextTest.java
@@ -16,20 +16,20 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.validators;
+package org.apache.struts2.validator.validators;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
-import com.opensymphony.xwork2.CompositeTextProvider;
-import com.opensymphony.xwork2.TextProvider;
-import com.opensymphony.xwork2.TextProviderFactory;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.validator.DelegatingValidatorContext;
-import com.opensymphony.xwork2.validator.ValidatorContext;
-import com.opensymphony.xwork2.validator.VisitorValidatorTestAction;
-import com.opensymphony.xwork2.validator.validators.VisitorFieldValidator.AppendingValidatorContext;
+import org.apache.struts2.CompositeTextProvider;
+import org.apache.struts2.TextProvider;
+import org.apache.struts2.TextProviderFactory;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.validator.DelegatingValidatorContext;
+import org.apache.struts2.validator.ValidatorContext;
+import org.apache.struts2.validator.VisitorValidatorTestAction;
+import org.apache.struts2.validator.validators.VisitorFieldValidator.AppendingValidatorContext;
public class AppendingValidatorContextTest extends XWorkTestCase {
diff --git a/core/src/test/java/com/opensymphony/xwork2/validator/validators/CreditCardValidatorTest.java b/core/src/test/java/org/apache/struts2/validator/validators/CreditCardValidatorTest.java
similarity index 95%
rename from core/src/test/java/com/opensymphony/xwork2/validator/validators/CreditCardValidatorTest.java
rename to core/src/test/java/org/apache/struts2/validator/validators/CreditCardValidatorTest.java
index ec423a284b..0b16d5d4d2 100644
--- a/core/src/test/java/com/opensymphony/xwork2/validator/validators/CreditCardValidatorTest.java
+++ b/core/src/test/java/org/apache/struts2/validator/validators/CreditCardValidatorTest.java
@@ -16,13 +16,13 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.validators;
+package org.apache.struts2.validator.validators;
-import com.opensymphony.xwork2.TextProviderFactory;
-import com.opensymphony.xwork2.util.ValueStack;
-import com.opensymphony.xwork2.util.ValueStackFactory;
-import com.opensymphony.xwork2.validator.DummyValidatorContext;
-import com.opensymphony.xwork2.validator.ValidatorContext;
+import org.apache.struts2.TextProviderFactory;
+import org.apache.struts2.util.ValueStack;
+import org.apache.struts2.util.ValueStackFactory;
+import org.apache.struts2.validator.DummyValidatorContext;
+import org.apache.struts2.validator.ValidatorContext;
import org.apache.struts2.StrutsInternalTestCase;
import java.util.Arrays;
diff --git a/core/src/test/java/com/opensymphony/xwork2/validator/validators/DateRangeFieldValidatorTest.java b/core/src/test/java/org/apache/struts2/validator/validators/DateRangeFieldValidatorTest.java
similarity index 90%
rename from core/src/test/java/com/opensymphony/xwork2/validator/validators/DateRangeFieldValidatorTest.java
rename to core/src/test/java/org/apache/struts2/validator/validators/DateRangeFieldValidatorTest.java
index de564c68bc..a5e49566ef 100644
--- a/core/src/test/java/com/opensymphony/xwork2/validator/validators/DateRangeFieldValidatorTest.java
+++ b/core/src/test/java/org/apache/struts2/validator/validators/DateRangeFieldValidatorTest.java
@@ -16,15 +16,15 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.validators;
-
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.TextProviderFactory;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.util.ValueStack;
-import com.opensymphony.xwork2.util.ValueStackFactory;
-import com.opensymphony.xwork2.validator.DummyValidatorContext;
-import com.opensymphony.xwork2.validator.ValidatorContext;
+package org.apache.struts2.validator.validators;
+
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.TextProviderFactory;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.util.ValueStack;
+import org.apache.struts2.util.ValueStackFactory;
+import org.apache.struts2.validator.DummyValidatorContext;
+import org.apache.struts2.validator.ValidatorContext;
import java.util.Calendar;
import java.util.Date;
diff --git a/core/src/test/java/com/opensymphony/xwork2/validator/validators/IntRangeFieldValidatorTest.java b/core/src/test/java/org/apache/struts2/validator/validators/IntRangeFieldValidatorTest.java
similarity index 92%
rename from core/src/test/java/com/opensymphony/xwork2/validator/validators/IntRangeFieldValidatorTest.java
rename to core/src/test/java/org/apache/struts2/validator/validators/IntRangeFieldValidatorTest.java
index b025db045a..a211cb6e6c 100644
--- a/core/src/test/java/com/opensymphony/xwork2/validator/validators/IntRangeFieldValidatorTest.java
+++ b/core/src/test/java/org/apache/struts2/validator/validators/IntRangeFieldValidatorTest.java
@@ -16,14 +16,14 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.validators;
-
-import com.opensymphony.xwork2.TextProviderFactory;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.util.ValueStack;
-import com.opensymphony.xwork2.util.ValueStackFactory;
-import com.opensymphony.xwork2.validator.DummyValidatorContext;
-import com.opensymphony.xwork2.validator.ValidatorContext;
+package org.apache.struts2.validator.validators;
+
+import org.apache.struts2.TextProviderFactory;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.util.ValueStack;
+import org.apache.struts2.util.ValueStackFactory;
+import org.apache.struts2.validator.DummyValidatorContext;
+import org.apache.struts2.validator.ValidatorContext;
public class IntRangeFieldValidatorTest extends XWorkTestCase {
diff --git a/core/src/test/java/com/opensymphony/xwork2/validator/validators/LongRangeFieldValidatorTest.java b/core/src/test/java/org/apache/struts2/validator/validators/LongRangeFieldValidatorTest.java
similarity index 90%
rename from core/src/test/java/com/opensymphony/xwork2/validator/validators/LongRangeFieldValidatorTest.java
rename to core/src/test/java/org/apache/struts2/validator/validators/LongRangeFieldValidatorTest.java
index e4e751b62e..2d9953a9d5 100644
--- a/core/src/test/java/com/opensymphony/xwork2/validator/validators/LongRangeFieldValidatorTest.java
+++ b/core/src/test/java/org/apache/struts2/validator/validators/LongRangeFieldValidatorTest.java
@@ -16,14 +16,14 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.validators;
-
-import com.opensymphony.xwork2.TextProviderFactory;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.util.ValueStack;
-import com.opensymphony.xwork2.util.ValueStackFactory;
-import com.opensymphony.xwork2.validator.DummyValidatorContext;
-import com.opensymphony.xwork2.validator.ValidatorContext;
+package org.apache.struts2.validator.validators;
+
+import org.apache.struts2.TextProviderFactory;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.util.ValueStack;
+import org.apache.struts2.util.ValueStackFactory;
+import org.apache.struts2.validator.DummyValidatorContext;
+import org.apache.struts2.validator.ValidatorContext;
public class LongRangeFieldValidatorTest extends XWorkTestCase {
diff --git a/core/src/test/java/com/opensymphony/xwork2/validator/validators/RequiredFieldValidatorTest.java b/core/src/test/java/org/apache/struts2/validator/validators/RequiredFieldValidatorTest.java
similarity index 94%
rename from core/src/test/java/com/opensymphony/xwork2/validator/validators/RequiredFieldValidatorTest.java
rename to core/src/test/java/org/apache/struts2/validator/validators/RequiredFieldValidatorTest.java
index ca2ef4ab56..6755ca5919 100644
--- a/core/src/test/java/com/opensymphony/xwork2/validator/validators/RequiredFieldValidatorTest.java
+++ b/core/src/test/java/org/apache/struts2/validator/validators/RequiredFieldValidatorTest.java
@@ -16,11 +16,11 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.validators;
+package org.apache.struts2.validator.validators;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.TextProviderFactory;
-import com.opensymphony.xwork2.validator.DummyValidatorContext;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.TextProviderFactory;
+import org.apache.struts2.validator.DummyValidatorContext;
import org.apache.struts2.StrutsInternalTestCase;
import org.junit.Test;
@@ -70,7 +70,7 @@ public void testArrayObject() throws Exception {
assertNotNull(context.getFieldErrors().get("ints"));
assertEquals("ints field is required!", context.getFieldErrors().get("ints").get(0));
}
-
+
@Test
public void testCollectionObject() throws Exception {
// given
diff --git a/core/src/test/java/com/opensymphony/xwork2/validator/validators/RequiredStringValidatorTest.java b/core/src/test/java/org/apache/struts2/validator/validators/RequiredStringValidatorTest.java
similarity index 92%
rename from core/src/test/java/com/opensymphony/xwork2/validator/validators/RequiredStringValidatorTest.java
rename to core/src/test/java/org/apache/struts2/validator/validators/RequiredStringValidatorTest.java
index b80c406ab1..22ba2d3311 100644
--- a/core/src/test/java/com/opensymphony/xwork2/validator/validators/RequiredStringValidatorTest.java
+++ b/core/src/test/java/org/apache/struts2/validator/validators/RequiredStringValidatorTest.java
@@ -16,15 +16,15 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.validators;
-
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionSupport;
-import com.opensymphony.xwork2.TextProviderFactory;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.util.ValueStack;
-import com.opensymphony.xwork2.validator.DummyValidatorContext;
-import com.opensymphony.xwork2.validator.ValidatorContext;
+package org.apache.struts2.validator.validators;
+
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionSupport;
+import org.apache.struts2.TextProviderFactory;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.util.ValueStack;
+import org.apache.struts2.validator.DummyValidatorContext;
+import org.apache.struts2.validator.ValidatorContext;
import java.util.Arrays;
diff --git a/core/src/test/java/com/opensymphony/xwork2/validator/validators/ShortRangeFieldValidatorTest.java b/core/src/test/java/org/apache/struts2/validator/validators/ShortRangeFieldValidatorTest.java
similarity index 90%
rename from core/src/test/java/com/opensymphony/xwork2/validator/validators/ShortRangeFieldValidatorTest.java
rename to core/src/test/java/org/apache/struts2/validator/validators/ShortRangeFieldValidatorTest.java
index f0b716ca07..71871e0f08 100644
--- a/core/src/test/java/com/opensymphony/xwork2/validator/validators/ShortRangeFieldValidatorTest.java
+++ b/core/src/test/java/org/apache/struts2/validator/validators/ShortRangeFieldValidatorTest.java
@@ -16,14 +16,14 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.validators;
-
-import com.opensymphony.xwork2.TextProviderFactory;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.util.ValueStack;
-import com.opensymphony.xwork2.util.ValueStackFactory;
-import com.opensymphony.xwork2.validator.DummyValidatorContext;
-import com.opensymphony.xwork2.validator.ValidatorContext;
+package org.apache.struts2.validator.validators;
+
+import org.apache.struts2.TextProviderFactory;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.util.ValueStack;
+import org.apache.struts2.util.ValueStackFactory;
+import org.apache.struts2.validator.DummyValidatorContext;
+import org.apache.struts2.validator.ValidatorContext;
public class ShortRangeFieldValidatorTest extends XWorkTestCase {
diff --git a/core/src/test/java/com/opensymphony/xwork2/validator/validators/ValidationAction.java b/core/src/test/java/org/apache/struts2/validator/validators/ValidationAction.java
similarity index 98%
rename from core/src/test/java/com/opensymphony/xwork2/validator/validators/ValidationAction.java
rename to core/src/test/java/org/apache/struts2/validator/validators/ValidationAction.java
index b694ac98bf..fc9009e23c 100644
--- a/core/src/test/java/com/opensymphony/xwork2/validator/validators/ValidationAction.java
+++ b/core/src/test/java/org/apache/struts2/validator/validators/ValidationAction.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.validators;
+package org.apache.struts2.validator.validators;
import java.util.Collection;
import java.util.Date;
diff --git a/core/src/test/java/com/opensymphony/xwork2/validator/validators/ValidatorSupportTest.java b/core/src/test/java/org/apache/struts2/validator/validators/ValidatorSupportTest.java
similarity index 83%
rename from core/src/test/java/com/opensymphony/xwork2/validator/validators/ValidatorSupportTest.java
rename to core/src/test/java/org/apache/struts2/validator/validators/ValidatorSupportTest.java
index c1b7f1836d..ac5368b179 100644
--- a/core/src/test/java/com/opensymphony/xwork2/validator/validators/ValidatorSupportTest.java
+++ b/core/src/test/java/org/apache/struts2/validator/validators/ValidatorSupportTest.java
@@ -16,13 +16,13 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.opensymphony.xwork2.validator.validators;
+package org.apache.struts2.validator.validators;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.ognl.OgnlValueStack;
-import com.opensymphony.xwork2.util.ValueStackFactory;
-import com.opensymphony.xwork2.validator.ValidationException;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.ognl.OgnlValueStack;
+import org.apache.struts2.util.ValueStackFactory;
+import org.apache.struts2.validator.ValidationException;
public class ValidatorSupportTest extends XWorkTestCase {
diff --git a/core/src/test/java/org/apache/struts2/views/TemplateEngineManagerTest.java b/core/src/test/java/org/apache/struts2/views/TemplateEngineManagerTest.java
index dbd406d06a..5702a09121 100644
--- a/core/src/test/java/org/apache/struts2/views/TemplateEngineManagerTest.java
+++ b/core/src/test/java/org/apache/struts2/views/TemplateEngineManagerTest.java
@@ -30,17 +30,17 @@
import com.mockobjects.dynamic.C;
import com.mockobjects.dynamic.Mock;
-import com.opensymphony.xwork2.inject.Container;
+import org.apache.struts2.inject.Container;
/**
* TemplateEngineManagerTest
*
*/
public class TemplateEngineManagerTest extends TestCase {
-
+
TemplateEngineManager mgr;
Mock mockContainer;
-
+
public void setUp() throws Exception {
mgr = new TemplateEngineManager();
mockContainer = new Mock(Container.class);
@@ -51,11 +51,11 @@ public void setUp() throws Exception {
add("vm");
add("ftl");
}});
-
+
mgr.setContainer((Container)mockContainer.proxy());
mgr.setDefaultTemplateType("jsp");
}
-
+
public void testTemplateTypeFromTemplateNameAndDefaults() {
TemplateEngine engine = mgr.getTemplateEngine(new Template("/template", "simple", "foo"), null);
assertTrue(engine instanceof JspTemplateEngine);
diff --git a/core/src/test/java/org/apache/struts2/views/freemarker/FreeMarkerResultTest.java b/core/src/test/java/org/apache/struts2/views/freemarker/FreeMarkerResultTest.java
index 935d2aef20..f8a4bc4dab 100644
--- a/core/src/test/java/org/apache/struts2/views/freemarker/FreeMarkerResultTest.java
+++ b/core/src/test/java/org/apache/struts2/views/freemarker/FreeMarkerResultTest.java
@@ -18,11 +18,11 @@
*/
package org.apache.struts2.views.freemarker;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.mock.MockActionInvocation;
-import com.opensymphony.xwork2.mock.MockActionProxy;
-import com.opensymphony.xwork2.util.ValueStack;
-import com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.mock.MockActionInvocation;
+import org.apache.struts2.mock.MockActionProxy;
+import org.apache.struts2.util.ValueStack;
+import org.apache.struts2.util.fs.DefaultFileManagerFactory;
import org.apache.struts2.StrutsInternalTestCase;
import org.apache.struts2.views.jsp.StrutsMockHttpServletResponse;
import org.apache.struts2.views.jsp.StrutsMockServletContext;
diff --git a/core/src/test/java/org/apache/struts2/views/freemarker/FreemarkerManagerTest.java b/core/src/test/java/org/apache/struts2/views/freemarker/FreemarkerManagerTest.java
index f582b76e5b..57914e7e77 100644
--- a/core/src/test/java/org/apache/struts2/views/freemarker/FreemarkerManagerTest.java
+++ b/core/src/test/java/org/apache/struts2/views/freemarker/FreemarkerManagerTest.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.freemarker;
-import com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory;
+import org.apache.struts2.util.fs.DefaultFileManagerFactory;
import freemarker.template.Configuration;
import freemarker.template.Template;
import freemarker.template.Version;
@@ -57,7 +57,7 @@ public void testTemplateLoaderBaseOnFile() throws Exception {
servletContext.setAttribute(FreemarkerManager.CONFIG_SERVLET_CONTEXT_KEY, null);
String tmpPath = "file://" + FileUtils.getTempDirectoryPath();
-
+
// when
manager.load(servletContext, tmpPath);
@@ -91,7 +91,7 @@ public void testIncompatibleImprovementsWithTemplate() throws Exception {
// when
Writer out = new StringWriter();
- Map model = new HashMap<>();
+ Map model = new HashMap<>();
model.put("error", "It's an error message");
tpl.process(model, out);
@@ -119,5 +119,5 @@ class DummyFreemarkerManager extends FreemarkerManager {
public void load(StrutsMockServletContext servletContext, String path) {
createTemplateLoader(servletContext, path);
}
-
+
}
diff --git a/core/src/test/java/org/apache/struts2/views/freemarker/FreemarkerResultMockedTest.java b/core/src/test/java/org/apache/struts2/views/freemarker/FreemarkerResultMockedTest.java
index d4500cdb1b..50e3313ae3 100644
--- a/core/src/test/java/org/apache/struts2/views/freemarker/FreemarkerResultMockedTest.java
+++ b/core/src/test/java/org/apache/struts2/views/freemarker/FreemarkerResultMockedTest.java
@@ -18,10 +18,10 @@
*/
package org.apache.struts2.views.freemarker;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.mock.MockActionInvocation;
-import com.opensymphony.xwork2.util.ClassLoaderUtil;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.mock.MockActionInvocation;
+import org.apache.struts2.util.ClassLoaderUtil;
+import org.apache.struts2.util.ValueStack;
import freemarker.template.Configuration;
import freemarker.template.TemplateExceptionHandler;
import org.apache.struts2.ServletActionContext;
diff --git a/core/src/test/java/org/apache/struts2/views/freemarker/FreemarkerTest.java b/core/src/test/java/org/apache/struts2/views/freemarker/FreemarkerTest.java
index afa6ba0cbb..641d386cb3 100644
--- a/core/src/test/java/org/apache/struts2/views/freemarker/FreemarkerTest.java
+++ b/core/src/test/java/org/apache/struts2/views/freemarker/FreemarkerTest.java
@@ -24,7 +24,7 @@
import org.apache.struts2.util.ListEntry;
import org.apache.struts2.util.StrutsUtil;
-import com.opensymphony.xwork2.ActionContext;
+import org.apache.struts2.ActionContext;
import freemarker.ext.beans.CollectionModel;
import freemarker.template.ObjectWrapper;
diff --git a/core/src/test/java/org/apache/struts2/views/freemarker/TestAction.java b/core/src/test/java/org/apache/struts2/views/freemarker/TestAction.java
index 9f8d3036b3..b7a00cacd9 100644
--- a/core/src/test/java/org/apache/struts2/views/freemarker/TestAction.java
+++ b/core/src/test/java/org/apache/struts2/views/freemarker/TestAction.java
@@ -21,7 +21,7 @@
import java.util.ArrayList;
import java.util.List;
-import com.opensymphony.xwork2.ActionSupport;
+import org.apache.struts2.ActionSupport;
/**
diff --git a/core/src/test/java/org/apache/struts2/views/freemarker/tags/TagModelTest.java b/core/src/test/java/org/apache/struts2/views/freemarker/tags/TagModelTest.java
index 0c83249edc..73c7018552 100644
--- a/core/src/test/java/org/apache/struts2/views/freemarker/tags/TagModelTest.java
+++ b/core/src/test/java/org/apache/struts2/views/freemarker/tags/TagModelTest.java
@@ -30,8 +30,8 @@
import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.mock.web.MockHttpServletResponse;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ognl.OgnlValueStack;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ognl.OgnlValueStack;
import freemarker.ext.util.WrapperTemplateModel;
import freemarker.template.AdapterTemplateModel;
@@ -183,7 +183,7 @@ protected Component getBean() {
public void testGetWriter() throws Exception {
OgnlValueStack stack = (OgnlValueStack)ActionContext.getContext().getValueStack();
-
+
final InternalBean bean = new InternalBean(stack);
MockHttpServletRequest request = new MockHttpServletRequest();
diff --git a/core/src/test/java/org/apache/struts2/views/jsp/AbstractTagTest.java b/core/src/test/java/org/apache/struts2/views/jsp/AbstractTagTest.java
index 2cf04791dd..4c936148e4 100644
--- a/core/src/test/java/org/apache/struts2/views/jsp/AbstractTagTest.java
+++ b/core/src/test/java/org/apache/struts2/views/jsp/AbstractTagTest.java
@@ -19,14 +19,14 @@
package org.apache.struts2.views.jsp;
import com.mockobjects.dynamic.Mock;
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.ActionProxy;
-import com.opensymphony.xwork2.inject.Container;
-import com.opensymphony.xwork2.mock.MockActionInvocation;
-import com.opensymphony.xwork2.mock.MockActionProxy;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.inject.Container;
+import org.apache.struts2.mock.MockActionInvocation;
+import org.apache.struts2.mock.MockActionProxy;
+import org.apache.struts2.util.ValueStack;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.StrutsInternalTestCase;
@@ -106,7 +106,7 @@ protected void createMocks() {
pageContext = new StrutsMockPageContext(servletContext, request, response);
pageContext.setJspWriter(jspWriter);
-
+
mockContainer = new Mock(Container.class);
Dispatcher du = new Dispatcher(pageContext.getServletContext(), emptyMap());
du.init();
diff --git a/core/src/test/java/org/apache/struts2/views/jsp/AbstractUITagTest.java b/core/src/test/java/org/apache/struts2/views/jsp/AbstractUITagTest.java
index 3b0c571fbf..df1e4323d0 100644
--- a/core/src/test/java/org/apache/struts2/views/jsp/AbstractUITagTest.java
+++ b/core/src/test/java/org/apache/struts2/views/jsp/AbstractUITagTest.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp;
-import com.opensymphony.xwork2.ActionContext;
+import org.apache.struts2.ActionContext;
import org.apache.commons.beanutils.BeanUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
diff --git a/core/src/test/java/org/apache/struts2/views/jsp/ActionTagTest.java b/core/src/test/java/org/apache/struts2/views/jsp/ActionTagTest.java
index 8864a1edd5..3325b67ff1 100644
--- a/core/src/test/java/org/apache/struts2/views/jsp/ActionTagTest.java
+++ b/core/src/test/java/org/apache/struts2/views/jsp/ActionTagTest.java
@@ -19,11 +19,11 @@
package org.apache.struts2.views.jsp;
import com.mockobjects.dynamic.Mock;
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.ActionProxy;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.config.entities.ActionConfig;
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.StrutsException;
import org.apache.struts2.TestAction;
diff --git a/core/src/test/java/org/apache/struts2/views/jsp/AppendIteratorTagTest.java b/core/src/test/java/org/apache/struts2/views/jsp/AppendIteratorTagTest.java
index 6adb42a820..2554fc6487 100644
--- a/core/src/test/java/org/apache/struts2/views/jsp/AppendIteratorTagTest.java
+++ b/core/src/test/java/org/apache/struts2/views/jsp/AppendIteratorTagTest.java
@@ -24,8 +24,8 @@
import org.apache.struts2.views.jsp.iterator.AppendIteratorTag;
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionSupport;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionSupport;
/**
* Test case for AppendIteratorTag.
diff --git a/core/src/test/java/org/apache/struts2/views/jsp/BeanTagTest.java b/core/src/test/java/org/apache/struts2/views/jsp/BeanTagTest.java
index e8e2b24a17..8074bcc637 100644
--- a/core/src/test/java/org/apache/struts2/views/jsp/BeanTagTest.java
+++ b/core/src/test/java/org/apache/struts2/views/jsp/BeanTagTest.java
@@ -25,7 +25,7 @@
import java.util.HashMap;
import java.util.Map;
-import static com.opensymphony.xwork2.security.DefaultNotExcludedAcceptedPatternsCheckerTest.NO_EXCLUSION_ACCEPT_ALL_PATTERNS_CHECKER;
+import static org.apache.struts2.security.DefaultNotExcludedAcceptedPatternsCheckerTest.NO_EXCLUSION_ACCEPT_ALL_PATTERNS_CHECKER;
/**
@@ -51,8 +51,8 @@ public void testSimple() {
fail();
}
-
-
+
+
// Basic sanity check of clearTagStateForTagPoolingServers() behaviour for Struts Tags after doEndTag().
BeanTag freshTag = new BeanTag();
diff --git a/core/src/test/java/org/apache/struts2/views/jsp/ElseIfTagTest.java b/core/src/test/java/org/apache/struts2/views/jsp/ElseIfTagTest.java
index 48a12ce4de..71ad60d3bd 100644
--- a/core/src/test/java/org/apache/struts2/views/jsp/ElseIfTagTest.java
+++ b/core/src/test/java/org/apache/struts2/views/jsp/ElseIfTagTest.java
@@ -25,8 +25,8 @@
import org.springframework.mock.web.MockHttpServletResponse;
import org.springframework.mock.web.MockJspWriter;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.servlet.jsp.tagext.TagSupport;
@@ -232,14 +232,14 @@ protected void setUp() throws Exception {
}
/**
- * Helper method to simplify setting the performClearTagStateForTagPoolingServers state for a
+ * Helper method to simplify setting the performClearTagStateForTagPoolingServers state for a
* {@link ComponentTagSupport} tag's {@link Component} to match expectations for the test.
- *
+ *
* The component reference is not available to the tag until after the doStartTag() method is called.
* We need to ensure the component's {@link Component#performClearTagStateForTagPoolingServers} state matches
* what we set for the Tag when a non-default (true) value is used, so this method accesses the component instance,
* sets the value specified and forces the tag's parameters to be repopulated again.
- *
+ *
* @param tag The ComponentTagSupport tag upon whose component we will set the performClearTagStateForTagPoolingServers state.
* @param performClearTagStateForTagPoolingServers true to clear tag state, false otherwise
*/
diff --git a/core/src/test/java/org/apache/struts2/views/jsp/ElseTagTest.java b/core/src/test/java/org/apache/struts2/views/jsp/ElseTagTest.java
index 279f2ce78b..b35f5561d3 100644
--- a/core/src/test/java/org/apache/struts2/views/jsp/ElseTagTest.java
+++ b/core/src/test/java/org/apache/struts2/views/jsp/ElseTagTest.java
@@ -27,8 +27,8 @@
import org.springframework.mock.web.MockHttpServletResponse;
import org.springframework.mock.web.MockJspWriter;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.servlet.jsp.JspException;
@@ -197,14 +197,14 @@ public void testTestTrue_clearTagStateSet() {
}
/**
- * Helper method to simplify setting the performClearTagStateForTagPoolingServers state for a
+ * Helper method to simplify setting the performClearTagStateForTagPoolingServers state for a
* {@link ComponentTagSupport} tag's {@link Component} to match expecations for a test.
- *
+ *
* Since the component is not available to the tag until after the doStartTag() method is called,
* but we need to ensure the component's {@link Component#performClearTagStateForTagPoolingServers} state matches
* what we set for the Tag when a non-default (true) value is used, this method retrieves the component instance,
* sets the value specified and forces the parameters to be repopulated again.
- *
+ *
* @param tag The ComponentTagSupport tag upon whose component we will set the performClearTagStateForTagPoolingServers state.
* @param performClearTagStateForTagPoolingServers true to clear tag state, false otherwise
*/
diff --git a/core/src/test/java/org/apache/struts2/views/jsp/I18nTagTest.java b/core/src/test/java/org/apache/struts2/views/jsp/I18nTagTest.java
index 1011f2b9c3..6ac06b56a0 100644
--- a/core/src/test/java/org/apache/struts2/views/jsp/I18nTagTest.java
+++ b/core/src/test/java/org/apache/struts2/views/jsp/I18nTagTest.java
@@ -26,8 +26,8 @@
import org.apache.struts2.components.Component;
import org.springframework.mock.web.MockJspWriter;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.jsp.JspException;
import jakarta.servlet.jsp.tagext.TagSupport;
@@ -123,14 +123,14 @@ public void testSimple_clearTagStateSet() throws Exception {
}
/**
- * Helper method to simplify setting the performClearTagStateForTagPoolingServers state for a
+ * Helper method to simplify setting the performClearTagStateForTagPoolingServers state for a
* {@link ComponentTagSupport} tag's {@link Component} to match expecations for a test.
- *
+ *
* Since the component is not available to the tag until after the doStartTag() method is called,
* but we need to ensure the component's {@link Component#performClearTagStateForTagPoolingServers} state matches
* what we set for the Tag when a non-default (true) value is used, this method retrieves the component instance,
* sets the value specified and forces the parameters to be repopulated again.
- *
+ *
* @param tag The ComponentTagSupport tag upon whose component we will set the performClearTagStateForTagPoolingServers state.
* @param performClearTagStateForTagPoolingServers true to clear tag state, false otherwise
*/
diff --git a/core/src/test/java/org/apache/struts2/views/jsp/IfTagTest.java b/core/src/test/java/org/apache/struts2/views/jsp/IfTagTest.java
index 3b05151ccf..70e7552452 100644
--- a/core/src/test/java/org/apache/struts2/views/jsp/IfTagTest.java
+++ b/core/src/test/java/org/apache/struts2/views/jsp/IfTagTest.java
@@ -25,8 +25,8 @@
import org.apache.struts2.components.Component;
import org.springframework.mock.web.MockJspWriter;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.jsp.JspException;
import jakarta.servlet.jsp.tagext.TagSupport;
@@ -926,14 +926,14 @@ public void testNestedIfElse2_clearTagStateSet() throws Exception {
}
/**
- * Helper method to simplify setting the performClearTagStateForTagPoolingServers state for a
+ * Helper method to simplify setting the performClearTagStateForTagPoolingServers state for a
* {@link ComponentTagSupport} tag's {@link Component} to match expecations for a test.
- *
+ *
* Since the component is not available to the tag until after the doStartTag() method is called,
* but we need to ensure the component's {@link Component#performClearTagStateForTagPoolingServers} state matches
* what we set for the Tag when a non-default (true) value is used, this method retrieves the component instance,
* sets the value specified and forces the parameters to be repopulated again.
- *
+ *
* @param tag The ComponentTagSupport tag upon whose component we will set the performClearTagStateForTagPoolingServers state.
* @param performClearTagStateForTagPoolingServers true to clear tag state, false otherwise
*/
diff --git a/core/src/test/java/org/apache/struts2/views/jsp/IteratorGeneratorTagTest.java b/core/src/test/java/org/apache/struts2/views/jsp/IteratorGeneratorTagTest.java
index a5739b00e8..94b279395a 100644
--- a/core/src/test/java/org/apache/struts2/views/jsp/IteratorGeneratorTagTest.java
+++ b/core/src/test/java/org/apache/struts2/views/jsp/IteratorGeneratorTagTest.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts2.views.jsp;
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionSupport;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionSupport;
import org.apache.struts2.util.IteratorGenerator.Converter;
import org.apache.struts2.views.jsp.iterator.IteratorGeneratorTag;
diff --git a/core/src/test/java/org/apache/struts2/views/jsp/MergeIteratorTagTest.java b/core/src/test/java/org/apache/struts2/views/jsp/MergeIteratorTagTest.java
index f4a97842c0..bc6aa152fe 100644
--- a/core/src/test/java/org/apache/struts2/views/jsp/MergeIteratorTagTest.java
+++ b/core/src/test/java/org/apache/struts2/views/jsp/MergeIteratorTagTest.java
@@ -24,8 +24,8 @@
import org.apache.struts2.views.jsp.iterator.MergeIteratorTag;
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionSupport;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionSupport;
/**
* Test case for MergeIteratorTag.
diff --git a/core/src/test/java/org/apache/struts2/views/jsp/NumberTagTest.java b/core/src/test/java/org/apache/struts2/views/jsp/NumberTagTest.java
index c41aabeaf6..6a69eaffd0 100644
--- a/core/src/test/java/org/apache/struts2/views/jsp/NumberTagTest.java
+++ b/core/src/test/java/org/apache/struts2/views/jsp/NumberTagTest.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp;
-import com.opensymphony.xwork2.ActionContext;
+import org.apache.struts2.ActionContext;
import org.apache.struts2.TestAction;
import java.math.RoundingMode;
diff --git a/core/src/test/java/org/apache/struts2/views/jsp/PropertyTagTest.java b/core/src/test/java/org/apache/struts2/views/jsp/PropertyTagTest.java
index 86804946d8..1046b999c8 100644
--- a/core/src/test/java/org/apache/struts2/views/jsp/PropertyTagTest.java
+++ b/core/src/test/java/org/apache/struts2/views/jsp/PropertyTagTest.java
@@ -25,8 +25,8 @@
import org.apache.struts2.components.Component;
import org.springframework.mock.web.MockJspWriter;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.jsp.JspException;
@@ -64,9 +64,9 @@ public void testDefaultValue() {
fail();
}
-
+
assertEquals("TEST", sw.toString());
-
+
try {
tag.doEndTag();
@@ -95,7 +95,7 @@ public void testDefaultValue_clearTagStateSet() {
StrutsMockPageContext pageContext = new StrutsMockPageContext(null, request, null);
pageContext.setJspWriter(jspWriter);
-
+
tag.setPerformClearTagStateForTagPoolingServers(true); // Explicitly request tag state clearing.
tag.setPageContext(pageContext);
@@ -110,9 +110,9 @@ public void testDefaultValue_clearTagStateSet() {
fail();
}
-
+
assertEquals("TEST", sw.toString());
-
+
try {
tag.doEndTag();
@@ -142,7 +142,7 @@ public void testNull() {
StrutsMockPageContext pageContext = new StrutsMockPageContext(null, request, null);
pageContext.setJspWriter(jspWriter);
-
+
tag.setPageContext(pageContext);
tag.setValue("title");
@@ -154,9 +154,9 @@ public void testNull() {
fail();
}
-
+
assertEquals("", sw.toString());
-
+
try {
tag.doEndTag();
@@ -185,7 +185,7 @@ public void testNull_clearTagStateSet() {
StrutsMockPageContext pageContext = new StrutsMockPageContext(null, request, null);
pageContext.setJspWriter(jspWriter);
-
+
tag.setPerformClearTagStateForTagPoolingServers(true); // Explicitly request tag state clearing.
tag.setPageContext(pageContext);
@@ -200,7 +200,7 @@ public void testNull_clearTagStateSet() {
}
assertEquals("", sw.toString());
-
+
try {
tag.doEndTag();
@@ -231,7 +231,7 @@ public void testSimple() {
StrutsMockPageContext pageContext = new StrutsMockPageContext(null, request, null);
pageContext.setJspWriter(jspWriter);
-
+
tag.setPageContext(pageContext);
tag.setValue("title");
@@ -243,9 +243,9 @@ public void testSimple() {
fail();
}
-
+
assertEquals("test", sw.toString());
-
+
try {
tag.doEndTag();
@@ -275,7 +275,7 @@ public void testSimple_clearTagStateSet() {
StrutsMockPageContext pageContext = new StrutsMockPageContext(null, request, null);
pageContext.setJspWriter(jspWriter);
-
+
tag.setPerformClearTagStateForTagPoolingServers(true); // Explicitly request tag state clearing.
tag.setPageContext(pageContext);
@@ -289,9 +289,9 @@ public void testSimple_clearTagStateSet() {
fail();
}
-
+
assertEquals("test", sw.toString());
-
+
try {
tag.doEndTag();
@@ -322,7 +322,7 @@ public void testTopOfStack() {
StrutsMockPageContext pageContext = new StrutsMockPageContext(null, request, null);
pageContext.setJspWriter(jspWriter);
-
+
tag.setPageContext(pageContext);
@@ -333,9 +333,9 @@ public void testTopOfStack() {
fail();
}
-
+
assertEquals("Foo is: test", sw.toString());
-
+
try {
tag.doEndTag();
@@ -366,7 +366,7 @@ public void testTopOfStack_clearTagStateSet() {
StrutsMockPageContext pageContext = new StrutsMockPageContext(null, request, null);
pageContext.setJspWriter(jspWriter);
-
+
tag.setPerformClearTagStateForTagPoolingServers(true); // Explicitly request tag state clearing.
tag.setPageContext(pageContext);
@@ -379,9 +379,9 @@ public void testTopOfStack_clearTagStateSet() {
fail();
}
-
+
assertEquals("Foo is: test", sw.toString());
-
+
try {
tag.doEndTag();
@@ -410,7 +410,7 @@ public void testWithAltSyntax1() throws Exception {
StrutsMockPageContext pageContext = new StrutsMockPageContext(null, request, null);
pageContext.setJspWriter(jspWriter);
-
+
// test
{
@@ -429,9 +429,9 @@ public void testWithAltSyntax1() throws Exception {
}
// verify test
-
+
assertEquals("Foo is: tm_jee", sw.toString());
-
+
}
public void testWithAltSyntax1_clearTagStateSet() throws Exception {
@@ -445,7 +445,7 @@ public void testWithAltSyntax1_clearTagStateSet() throws Exception {
StrutsMockPageContext pageContext = new StrutsMockPageContext(null, request, null);
pageContext.setJspWriter(jspWriter);
-
+
// test
{
@@ -467,9 +467,9 @@ public void testWithAltSyntax1_clearTagStateSet() throws Exception {
}
// verify test
-
+
assertEquals("Foo is: tm_jee", sw.toString());
-
+
}
public void testEscapeJavaScript() throws Exception {
@@ -483,12 +483,12 @@ public void testEscapeJavaScript() throws Exception {
StrutsMockPageContext pageContext = new StrutsMockPageContext(null, request, null);
pageContext.setJspWriter(jspWriter);
-
+
// test
{PropertyTag tag = new PropertyTag();
tag.setEscapeHtml(false);
- tag.setEscapeJavaScript(true);
+ tag.setEscapeJavaScript(true);
tag.setPageContext(pageContext);
tag.setValue("%{formatTitle()}");
tag.doStartTag();
@@ -502,9 +502,9 @@ public void testEscapeJavaScript() throws Exception {
objectsAreReflectionEqual(tag, freshTag));}
// verify test
-
+
assertEquals("Foo is: \\t\\b\\n\\f\\r\\\"\\'\\/\\\\", sw.toString());
-
+
}
public void testEscapeJavaScript_clearTagStateSet() throws Exception {
@@ -518,7 +518,7 @@ public void testEscapeJavaScript_clearTagStateSet() throws Exception {
StrutsMockPageContext pageContext = new StrutsMockPageContext(null, request, null);
pageContext.setJspWriter(jspWriter);
-
+
// test
{PropertyTag tag = new PropertyTag();
@@ -540,9 +540,9 @@ public void testEscapeJavaScript_clearTagStateSet() throws Exception {
objectsAreReflectionEqual(tag, freshTag));}
// verify test
-
+
assertEquals("Foo is: \\t\\b\\n\\f\\r\\\"\\'\\/\\\\", sw.toString());
-
+
}
public void testEscapeXml() throws Exception {
@@ -556,7 +556,7 @@ public void testEscapeXml() throws Exception {
StrutsMockPageContext pageContext = new StrutsMockPageContext(null, request, null);
pageContext.setJspWriter(jspWriter);
-
+
// test
{PropertyTag tag = new PropertyTag();
@@ -575,9 +575,9 @@ public void testEscapeXml() throws Exception {
objectsAreReflectionEqual(tag, freshTag));}
// verify test
-
+
assertEquals("Foo is: <>'"&", sw.toString());
-
+
}
public void testEscapeXml_clearTagStateSet() throws Exception {
@@ -591,7 +591,7 @@ public void testEscapeXml_clearTagStateSet() throws Exception {
StrutsMockPageContext pageContext = new StrutsMockPageContext(null, request, null);
pageContext.setJspWriter(jspWriter);
-
+
// test
{PropertyTag tag = new PropertyTag();
@@ -613,9 +613,9 @@ public void testEscapeXml_clearTagStateSet() throws Exception {
objectsAreReflectionEqual(tag, freshTag));}
// verify test
-
+
assertEquals("Foo is: <>'"&", sw.toString());
-
+
}
public void testEscapeCsv() throws Exception {
@@ -626,10 +626,10 @@ public void testEscapeCsv() throws Exception {
StringWriter sw = new StringWriter();
MockJspWriter jspWriter = new MockJspWriter(sw);
-
+
StrutsMockPageContext pageContext = new StrutsMockPageContext(null, request, null);
pageContext.setJspWriter(jspWriter);
-
+
// test
{PropertyTag tag = new PropertyTag();
@@ -648,9 +648,9 @@ public void testEscapeCsv() throws Exception {
objectsAreReflectionEqual(tag, freshTag));}
// verify test
-
+
assertEquals("\"Foo is: \"\"something,\"\",\"\"\"", sw.toString());
-
+
}
public void testEscapeCsv_clearTagStateSet() throws Exception {
@@ -664,7 +664,7 @@ public void testEscapeCsv_clearTagStateSet() throws Exception {
StrutsMockPageContext pageContext = new StrutsMockPageContext(null, request, null);
pageContext.setJspWriter(jspWriter);
-
+
// test
{PropertyTag tag = new PropertyTag();
@@ -686,9 +686,9 @@ public void testEscapeCsv_clearTagStateSet() throws Exception {
objectsAreReflectionEqual(tag, freshTag));}
// verify test
-
+
assertEquals("\"Foo is: \"\"something,\"\",\"\"\"", sw.toString());
-
+
}
public void testWithAltSyntax2() throws Exception {
@@ -702,7 +702,7 @@ public void testWithAltSyntax2() throws Exception {
StrutsMockPageContext pageContext = new StrutsMockPageContext(null, request, null);
pageContext.setJspWriter(jspWriter);
-
+
// test
{PropertyTag tag = new PropertyTag();
@@ -719,9 +719,9 @@ public void testWithAltSyntax2() throws Exception {
objectsAreReflectionEqual(tag, freshTag));}
// verify test
-
+
assertEquals("Foo is: tm_jee", sw.toString());
-
+
}
public void testWithAltSyntax2_clearTagStateSet() throws Exception {
@@ -735,7 +735,7 @@ public void testWithAltSyntax2_clearTagStateSet() throws Exception {
StrutsMockPageContext pageContext = new StrutsMockPageContext(null, request, null);
pageContext.setJspWriter(jspWriter);
-
+
// test
{PropertyTag tag = new PropertyTag();
@@ -755,9 +755,9 @@ public void testWithAltSyntax2_clearTagStateSet() throws Exception {
objectsAreReflectionEqual(tag, freshTag));}
// verify test
-
+
assertEquals("Foo is: tm_jee", sw.toString());
-
+
}
public void testWithoutAltSyntax1() throws Exception {
@@ -771,7 +771,7 @@ public void testWithoutAltSyntax1() throws Exception {
StrutsMockPageContext pageContext = new StrutsMockPageContext(null, request, null);
pageContext.setJspWriter(jspWriter);
-
+
// test
{PropertyTag tag = new PropertyTag();
@@ -788,9 +788,9 @@ public void testWithoutAltSyntax1() throws Exception {
objectsAreReflectionEqual(tag, freshTag));}
// verify test
-
+
assertEquals("Foo is: tm_jee", sw.toString());
-
+
}
public void testWithoutAltSyntax1_clearTagStateSet() throws Exception {
@@ -804,7 +804,7 @@ public void testWithoutAltSyntax1_clearTagStateSet() throws Exception {
StrutsMockPageContext pageContext = new StrutsMockPageContext(null, request, null);
pageContext.setJspWriter(jspWriter);
-
+
// test
{PropertyTag tag = new PropertyTag();
@@ -824,9 +824,9 @@ public void testWithoutAltSyntax1_clearTagStateSet() throws Exception {
objectsAreReflectionEqual(tag, freshTag));}
// verify test
-
+
assertEquals("Foo is: tm_jee", sw.toString());
-
+
}
public void testWithoutAltSyntax2() throws Exception {
@@ -840,7 +840,7 @@ public void testWithoutAltSyntax2() throws Exception {
StrutsMockPageContext pageContext = new StrutsMockPageContext(null, request, null);
pageContext.setJspWriter(jspWriter);
-
+
// test
{PropertyTag tag = new PropertyTag();
@@ -857,9 +857,9 @@ public void testWithoutAltSyntax2() throws Exception {
objectsAreReflectionEqual(tag, freshTag));}
// verify test
-
+
assertEquals("Foo is: tm_jee", sw.toString());
-
+
}
public void testWithoutAltSyntax2_clearTagStateSet() throws Exception {
@@ -873,7 +873,7 @@ public void testWithoutAltSyntax2_clearTagStateSet() throws Exception {
StrutsMockPageContext pageContext = new StrutsMockPageContext(null, request, null);
pageContext.setJspWriter(jspWriter);
-
+
// test
{PropertyTag tag = new PropertyTag();
@@ -893,9 +893,9 @@ public void testWithoutAltSyntax2_clearTagStateSet() throws Exception {
objectsAreReflectionEqual(tag, freshTag));}
// verify test
-
+
assertEquals("Foo is: tm_jee", sw.toString());
-
+
}
public void testSimple_release() {
@@ -911,7 +911,7 @@ public void testSimple_release() {
StrutsMockPageContext pageContext = new StrutsMockPageContext(null, request, null);
pageContext.setJspWriter(jspWriter);
-
+
tag.setPageContext(pageContext);
tag.setValue("title");
@@ -923,9 +923,9 @@ public void testSimple_release() {
fail();
}
-
+
assertEquals("test", sw.toString());
-
+
try {
tag.doEndTag();
@@ -961,7 +961,7 @@ public void testSimple_release_clearTagStateSet() {
StrutsMockPageContext pageContext = new StrutsMockPageContext(null, request, null);
pageContext.setJspWriter(jspWriter);
-
+
tag.setPerformClearTagStateForTagPoolingServers(true); // Explicitly request tag state clearing.
tag.setPageContext(pageContext);
@@ -975,9 +975,9 @@ public void testSimple_release_clearTagStateSet() {
fail();
}
-
+
assertEquals("test", sw.toString());
-
+
try {
tag.doEndTag();
@@ -1009,14 +1009,14 @@ protected void setUp() throws Exception {
}
/**
- * Helper method to simplify setting the performClearTagStateForTagPoolingServers state for a
+ * Helper method to simplify setting the performClearTagStateForTagPoolingServers state for a
* {@link ComponentTagSupport} tag's {@link Component} to match expectations for the test.
- *
+ *
* The component reference is not available to the tag until after the doStartTag() method is called.
* We need to ensure the component's {@link Component#performClearTagStateForTagPoolingServers} state matches
* what we set for the Tag when a non-default (true) value is used, so this method accesses the component instance,
* sets the value specified and forces the tag's parameters to be repopulated again.
- *
+ *
* @param tag The ComponentTagSupport tag upon whose component we will set the performClearTagStateForTagPoolingServers state.
* @param performClearTagStateForTagPoolingServers true to clear tag state, false otherwise
*/
diff --git a/core/src/test/java/org/apache/struts2/views/jsp/SortIteratorTagTest.java b/core/src/test/java/org/apache/struts2/views/jsp/SortIteratorTagTest.java
index ea37888a41..6eb5fc1478 100644
--- a/core/src/test/java/org/apache/struts2/views/jsp/SortIteratorTagTest.java
+++ b/core/src/test/java/org/apache/struts2/views/jsp/SortIteratorTagTest.java
@@ -20,8 +20,8 @@
import jakarta.servlet.jsp.JspException;
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionSupport;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionSupport;
import org.apache.struts2.views.jsp.iterator.SortIteratorTag;
import java.util.ArrayList;
diff --git a/core/src/test/java/org/apache/struts2/views/jsp/SubsetIteratorTagTest.java b/core/src/test/java/org/apache/struts2/views/jsp/SubsetIteratorTagTest.java
index fc03dda0d8..999a2bfbb9 100644
--- a/core/src/test/java/org/apache/struts2/views/jsp/SubsetIteratorTagTest.java
+++ b/core/src/test/java/org/apache/struts2/views/jsp/SubsetIteratorTagTest.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts2.views.jsp;
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionSupport;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionSupport;
import org.apache.struts2.util.SubsetIteratorFilter.Decider;
import org.apache.struts2.views.jsp.iterator.SubsetIteratorTag;
diff --git a/core/src/test/java/org/apache/struts2/views/jsp/TextTagTest.java b/core/src/test/java/org/apache/struts2/views/jsp/TextTagTest.java
index 098b16709a..1e4d2fae6f 100644
--- a/core/src/test/java/org/apache/struts2/views/jsp/TextTagTest.java
+++ b/core/src/test/java/org/apache/struts2/views/jsp/TextTagTest.java
@@ -35,10 +35,10 @@
import org.apache.struts2.views.jsp.ui.TestAction1;
import org.springframework.mock.web.MockJspWriter;
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.util.ValueStack;
-import com.opensymphony.xwork2.util.ValueStackFactory;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.util.ValueStack;
+import org.apache.struts2.util.ValueStackFactory;
import jakarta.servlet.jsp.JspException;
import jakarta.servlet.jsp.tagext.BodyTag;
diff --git a/core/src/test/java/org/apache/struts2/views/jsp/URLTagTest.java b/core/src/test/java/org/apache/struts2/views/jsp/URLTagTest.java
index 64020d5987..04d7f5ba5d 100644
--- a/core/src/test/java/org/apache/struts2/views/jsp/URLTagTest.java
+++ b/core/src/test/java/org/apache/struts2/views/jsp/URLTagTest.java
@@ -38,11 +38,11 @@
import org.springframework.mock.web.MockBodyContent;
import com.mockobjects.dynamic.Mock;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionProxy;
-import com.opensymphony.xwork2.DefaultActionInvocation;
-import com.opensymphony.xwork2.DefaultActionProxyFactory;
-import com.opensymphony.xwork2.inject.Container;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.DefaultActionInvocation;
+import org.apache.struts2.DefaultActionProxyFactory;
+import org.apache.struts2.inject.Container;
import jakarta.servlet.http.HttpSession;
import jakarta.servlet.jsp.JspWriter;
diff --git a/core/src/test/java/org/apache/struts2/views/jsp/ui/ActionErrorTagTest.java b/core/src/test/java/org/apache/struts2/views/jsp/ui/ActionErrorTagTest.java
index 4185339863..3eeae5ae38 100644
--- a/core/src/test/java/org/apache/struts2/views/jsp/ui/ActionErrorTagTest.java
+++ b/core/src/test/java/org/apache/struts2/views/jsp/ui/ActionErrorTagTest.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts2.views.jsp.ui;
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionSupport;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionSupport;
import org.apache.commons.lang3.StringUtils;
import org.apache.struts2.TestAction;
import org.apache.struts2.views.jsp.AbstractUITagTest;
diff --git a/core/src/test/java/org/apache/struts2/views/jsp/ui/ActionMessageTagTest.java b/core/src/test/java/org/apache/struts2/views/jsp/ui/ActionMessageTagTest.java
index 776880c825..9fd50a47e0 100644
--- a/core/src/test/java/org/apache/struts2/views/jsp/ui/ActionMessageTagTest.java
+++ b/core/src/test/java/org/apache/struts2/views/jsp/ui/ActionMessageTagTest.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts2.views.jsp.ui;
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionSupport;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionSupport;
import org.apache.commons.lang3.StringUtils;
import org.apache.struts2.TestAction;
import org.apache.struts2.views.jsp.AbstractUITagTest;
diff --git a/core/src/test/java/org/apache/struts2/views/jsp/ui/CheckboxTest.java b/core/src/test/java/org/apache/struts2/views/jsp/ui/CheckboxTest.java
index b33e8dac70..e9375ae423 100644
--- a/core/src/test/java/org/apache/struts2/views/jsp/ui/CheckboxTest.java
+++ b/core/src/test/java/org/apache/struts2/views/jsp/ui/CheckboxTest.java
@@ -18,19 +18,12 @@
*/
package org.apache.struts2.views.jsp.ui;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.config.ConfigurationProvider;
-import com.opensymphony.xwork2.inject.ContainerBuilder;
-import com.opensymphony.xwork2.test.StubConfigurationProvider;
-import com.opensymphony.xwork2.util.ValueStack;
-import com.opensymphony.xwork2.util.location.LocatableProperties;
-import org.apache.struts2.ServletActionContext;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.config.ConfigurationProvider;
import org.apache.struts2.StrutsConstants;
import org.apache.struts2.TestAction;
import org.apache.struts2.views.jsp.AbstractUITagTest;
-import jakarta.servlet.http.HttpServletRequest;
import java.util.Map;
public class CheckboxTest extends AbstractUITagTest {
diff --git a/core/src/test/java/org/apache/struts2/views/jsp/ui/DateTagTest.java b/core/src/test/java/org/apache/struts2/views/jsp/ui/DateTagTest.java
index 3c03655906..a7fd143018 100644
--- a/core/src/test/java/org/apache/struts2/views/jsp/ui/DateTagTest.java
+++ b/core/src/test/java/org/apache/struts2/views/jsp/ui/DateTagTest.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp.ui;
-import com.opensymphony.xwork2.ActionContext;
+import org.apache.struts2.ActionContext;
import org.apache.struts2.TestAction;
import org.apache.struts2.components.Component;
import org.apache.struts2.components.DateTextField;
diff --git a/core/src/test/java/org/apache/struts2/views/jsp/ui/DebugTagTest.java b/core/src/test/java/org/apache/struts2/views/jsp/ui/DebugTagTest.java
index b7db51513b..a4ca5a94a5 100644
--- a/core/src/test/java/org/apache/struts2/views/jsp/ui/DebugTagTest.java
+++ b/core/src/test/java/org/apache/struts2/views/jsp/ui/DebugTagTest.java
@@ -18,11 +18,7 @@
*/
package org.apache.struts2.views.jsp.ui;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.inject.ContainerBuilder;
-import com.opensymphony.xwork2.test.StubConfigurationProvider;
-import com.opensymphony.xwork2.util.location.LocatableProperties;
+import org.apache.struts2.config.ConfigurationException;
import org.apache.commons.lang3.StringUtils;
import org.apache.struts2.StrutsConstants;
import org.apache.struts2.dispatcher.PrepareOperations;
diff --git a/core/src/test/java/org/apache/struts2/views/jsp/ui/DoubleValidationAction.java b/core/src/test/java/org/apache/struts2/views/jsp/ui/DoubleValidationAction.java
index aedc8596c4..f3462efb46 100644
--- a/core/src/test/java/org/apache/struts2/views/jsp/ui/DoubleValidationAction.java
+++ b/core/src/test/java/org/apache/struts2/views/jsp/ui/DoubleValidationAction.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp.ui;
-import com.opensymphony.xwork2.ActionSupport;
+import org.apache.struts2.ActionSupport;
import org.apache.struts2.interceptor.parameter.StrutsParameter;
/**
diff --git a/core/src/test/java/org/apache/struts2/views/jsp/ui/FieldErrorTagTest.java b/core/src/test/java/org/apache/struts2/views/jsp/ui/FieldErrorTagTest.java
index 348f98fbe5..3bd44769c9 100644
--- a/core/src/test/java/org/apache/struts2/views/jsp/ui/FieldErrorTagTest.java
+++ b/core/src/test/java/org/apache/struts2/views/jsp/ui/FieldErrorTagTest.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts2.views.jsp.ui;
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionSupport;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionSupport;
import org.apache.struts2.TestAction;
import org.apache.struts2.views.jsp.AbstractUITagTest;
import org.apache.struts2.views.jsp.ParamTag;
diff --git a/core/src/test/java/org/apache/struts2/views/jsp/ui/FormTagTest.java b/core/src/test/java/org/apache/struts2/views/jsp/ui/FormTagTest.java
index ca6fc3d437..97ce17acb6 100644
--- a/core/src/test/java/org/apache/struts2/views/jsp/ui/FormTagTest.java
+++ b/core/src/test/java/org/apache/struts2/views/jsp/ui/FormTagTest.java
@@ -18,11 +18,11 @@
*/
package org.apache.struts2.views.jsp.ui;
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.ActionProxy;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.config.entities.ActionConfig;
import org.apache.struts2.StrutsConstants;
import org.apache.struts2.TestAction;
import org.apache.struts2.TestConfigurationProvider;
diff --git a/core/src/test/java/org/apache/struts2/views/jsp/ui/HiddenTest.java b/core/src/test/java/org/apache/struts2/views/jsp/ui/HiddenTest.java
index 64d7ca7e5b..7b8044c316 100644
--- a/core/src/test/java/org/apache/struts2/views/jsp/ui/HiddenTest.java
+++ b/core/src/test/java/org/apache/struts2/views/jsp/ui/HiddenTest.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts2.views.jsp.ui;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.mock.MockActionInvocation;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.mock.MockActionInvocation;
import org.apache.struts2.TestAction;
import org.apache.struts2.views.jsp.AbstractUITagTest;
diff --git a/core/src/test/java/org/apache/struts2/views/jsp/ui/IntValidationAction.java b/core/src/test/java/org/apache/struts2/views/jsp/ui/IntValidationAction.java
index f996c066d0..5ea2d1976f 100644
--- a/core/src/test/java/org/apache/struts2/views/jsp/ui/IntValidationAction.java
+++ b/core/src/test/java/org/apache/struts2/views/jsp/ui/IntValidationAction.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp.ui;
-import com.opensymphony.xwork2.ActionSupport;
+import org.apache.struts2.ActionSupport;
import org.apache.struts2.interceptor.parameter.StrutsParameter;
/**
diff --git a/core/src/test/java/org/apache/struts2/views/jsp/ui/LocaleTestAction.java b/core/src/test/java/org/apache/struts2/views/jsp/ui/LocaleTestAction.java
index 02e7d4526a..56cec4340b 100644
--- a/core/src/test/java/org/apache/struts2/views/jsp/ui/LocaleTestAction.java
+++ b/core/src/test/java/org/apache/struts2/views/jsp/ui/LocaleTestAction.java
@@ -23,7 +23,7 @@
import org.apache.struts2.TestAction;
-import com.opensymphony.xwork2.Action;
+import org.apache.struts2.Action;
public class LocaleTestAction extends TestAction implements Action {
diff --git a/core/src/test/java/org/apache/struts2/views/jsp/ui/SubmitTest.java b/core/src/test/java/org/apache/struts2/views/jsp/ui/SubmitTest.java
index 2e80b4656d..e5c8299d26 100644
--- a/core/src/test/java/org/apache/struts2/views/jsp/ui/SubmitTest.java
+++ b/core/src/test/java/org/apache/struts2/views/jsp/ui/SubmitTest.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp.ui;
-import com.opensymphony.xwork2.TestBean;
+import org.apache.struts2.TestBean;
import org.apache.struts2.TestAction;
import org.apache.struts2.views.jsp.AbstractUITagTest;
diff --git a/core/src/test/java/org/apache/struts2/views/jsp/ui/TestAction1.java b/core/src/test/java/org/apache/struts2/views/jsp/ui/TestAction1.java
index 869381f228..140a7cc6a1 100644
--- a/core/src/test/java/org/apache/struts2/views/jsp/ui/TestAction1.java
+++ b/core/src/test/java/org/apache/struts2/views/jsp/ui/TestAction1.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jsp.ui;
-import com.opensymphony.xwork2.ActionSupport;
+import org.apache.struts2.ActionSupport;
/**
* TestAction1
diff --git a/core/src/test/java/org/apache/struts2/views/jsp/ui/UpDownSelectTagTest.java b/core/src/test/java/org/apache/struts2/views/jsp/ui/UpDownSelectTagTest.java
index 57942c1924..29af863ef6 100644
--- a/core/src/test/java/org/apache/struts2/views/jsp/ui/UpDownSelectTagTest.java
+++ b/core/src/test/java/org/apache/struts2/views/jsp/ui/UpDownSelectTagTest.java
@@ -25,8 +25,8 @@
import org.apache.struts2.views.jsp.AbstractUITagTest;
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionSupport;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionSupport;
/**
* Test case for UpDownSelectTag
diff --git a/core/src/test/java/org/apache/struts2/views/util/DefaultUrlHelperTest.java b/core/src/test/java/org/apache/struts2/views/util/DefaultUrlHelperTest.java
index d1f0509b61..22c1a2b9d5 100644
--- a/core/src/test/java/org/apache/struts2/views/util/DefaultUrlHelperTest.java
+++ b/core/src/test/java/org/apache/struts2/views/util/DefaultUrlHelperTest.java
@@ -28,9 +28,9 @@
import org.apache.struts2.url.StrutsUrlEncoder;
import com.mockobjects.dynamic.Mock;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.inject.Container;
-import com.opensymphony.xwork2.inject.Scope.Strategy;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.inject.Container;
+import org.apache.struts2.inject.Scope.Strategy;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
diff --git a/core/src/test/java/com/test/ExternalSecurityMemberAccess.java b/core/src/test/java/org/test/ExternalSecurityMemberAccess.java
similarity index 94%
rename from core/src/test/java/com/test/ExternalSecurityMemberAccess.java
rename to core/src/test/java/org/test/ExternalSecurityMemberAccess.java
index 4043e9ada9..c0bfc201e8 100644
--- a/core/src/test/java/com/test/ExternalSecurityMemberAccess.java
+++ b/core/src/test/java/org/test/ExternalSecurityMemberAccess.java
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.test;
+package org.test;
-import com.opensymphony.xwork2.ognl.SecurityMemberAccess;
+import org.apache.struts2.ognl.SecurityMemberAccess;
import org.apache.struts2.ognl.ProviderAllowlist;
import org.apache.struts2.ognl.ThreadAllowlist;
diff --git a/core/src/test/java/com/test/ExternalSecurityMemberAccessTest.java b/core/src/test/java/org/test/ExternalSecurityMemberAccessTest.java
similarity index 90%
rename from core/src/test/java/com/test/ExternalSecurityMemberAccessTest.java
rename to core/src/test/java/org/test/ExternalSecurityMemberAccessTest.java
index 5fd642eb01..4309790576 100644
--- a/core/src/test/java/com/test/ExternalSecurityMemberAccessTest.java
+++ b/core/src/test/java/org/test/ExternalSecurityMemberAccessTest.java
@@ -16,13 +16,13 @@
* specific language governing permissions and limitations
* under the License.
*/
-package com.test;
+package org.test;
-import com.opensymphony.xwork2.ognl.SecurityMemberAccessTest;
+import org.apache.struts2.ognl.SecurityMemberAccessTest;
/**
* Runs the same test suite using a SecurityMemberAccess class that is outside the
- * com.opensymphony.xwork2.ognl package.
+ * org.apache.struts2.ognl package.
*/
public class ExternalSecurityMemberAccessTest extends SecurityMemberAccessTest {
diff --git a/core/src/test/resources/com/opensymphony/xwork2/validator/validators-fail.xml b/core/src/test/resources/com/opensymphony/xwork2/validator/validators-fail.xml
deleted file mode 100644
index 03c5dd072f..0000000000
--- a/core/src/test/resources/com/opensymphony/xwork2/validator/validators-fail.xml
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/core/src/test/resources/includeTest.xml b/core/src/test/resources/includeTest.xml
index 455834f68e..c41d584323 100644
--- a/core/src/test/resources/includeTest.xml
+++ b/core/src/test/resources/includeTest.xml
@@ -24,6 +24,6 @@
"https://struts.apache.org/dtds/struts-6.0.dtd">
-
+
diff --git a/core/src/test/resources/my-validators.xml b/core/src/test/resources/my-validators.xml
index 431fac151a..7159872be1 100644
--- a/core/src/test/resources/my-validators.xml
+++ b/core/src/test/resources/my-validators.xml
@@ -23,5 +23,5 @@
"-//Apache Struts//XWork Validator Config 1.0//EN"
"https://struts.apache.org/dtds/xwork-validator-config-1.0.dtd">
-
+
diff --git a/core/src/test/resources/myOther-validators.xml b/core/src/test/resources/myOther-validators.xml
index 198cc68228..55fd8963b1 100644
--- a/core/src/test/resources/myOther-validators.xml
+++ b/core/src/test/resources/myOther-validators.xml
@@ -23,5 +23,5 @@
"-//Apache Struts//XWork Validator Config 1.0//EN"
"https://struts.apache.org/dtds/xwork-validator-config-1.0.dtd">
-
+
diff --git a/core/src/test/resources/com/opensymphony/xwork2/ActionSupportTest$MyActionSupport_da.properties b/core/src/test/resources/org/apache/struts2/ActionSupportTest$MyActionSupport_da.properties
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/ActionSupportTest$MyActionSupport_da.properties
rename to core/src/test/resources/org/apache/struts2/ActionSupportTest$MyActionSupport_da.properties
diff --git a/core/src/test/resources/com/opensymphony/xwork2/AnnotatedTestBean.properties b/core/src/test/resources/org/apache/struts2/AnnotatedTestBean.properties
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/AnnotatedTestBean.properties
rename to core/src/test/resources/org/apache/struts2/AnnotatedTestBean.properties
diff --git a/core/src/test/resources/com/opensymphony/xwork2/DefaultTextProviderTest_en_CA.properties b/core/src/test/resources/org/apache/struts2/DefaultTextProviderTest_en_CA.properties
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/DefaultTextProviderTest_en_CA.properties
rename to core/src/test/resources/org/apache/struts2/DefaultTextProviderTest_en_CA.properties
diff --git a/core/src/test/resources/com/opensymphony/xwork2/ModelDrivenAction-validation.xml b/core/src/test/resources/org/apache/struts2/ModelDrivenAction-validation.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/ModelDrivenAction-validation.xml
rename to core/src/test/resources/org/apache/struts2/ModelDrivenAction-validation.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/ModelDrivenAction.properties b/core/src/test/resources/org/apache/struts2/ModelDrivenAction.properties
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/ModelDrivenAction.properties
rename to core/src/test/resources/org/apache/struts2/ModelDrivenAction.properties
diff --git a/core/src/test/resources/com/opensymphony/xwork2/ModelDrivenAnnotationAction.properties b/core/src/test/resources/org/apache/struts2/ModelDrivenAnnotationAction.properties
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/ModelDrivenAnnotationAction.properties
rename to core/src/test/resources/org/apache/struts2/ModelDrivenAnnotationAction.properties
diff --git a/core/src/test/resources/com/opensymphony/xwork2/SimpleAction-some-alias-validation.xml b/core/src/test/resources/org/apache/struts2/SimpleAction-some-alias-validation.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/SimpleAction-some-alias-validation.xml
rename to core/src/test/resources/org/apache/struts2/SimpleAction-some-alias-validation.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/SimpleAction-subproperty-validation.xml b/core/src/test/resources/org/apache/struts2/SimpleAction-subproperty-validation.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/SimpleAction-subproperty-validation.xml
rename to core/src/test/resources/org/apache/struts2/SimpleAction-subproperty-validation.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/SimpleAction-validation.xml b/core/src/test/resources/org/apache/struts2/SimpleAction-validation.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/SimpleAction-validation.xml
rename to core/src/test/resources/org/apache/struts2/SimpleAction-validation.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/SimpleAction-validationAlias-validation.xml b/core/src/test/resources/org/apache/struts2/SimpleAction-validationAlias-validation.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/SimpleAction-validationAlias-validation.xml
rename to core/src/test/resources/org/apache/struts2/SimpleAction-validationAlias-validation.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/SimpleAction.properties b/core/src/test/resources/org/apache/struts2/SimpleAction.properties
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/SimpleAction.properties
rename to core/src/test/resources/org/apache/struts2/SimpleAction.properties
diff --git a/core/src/test/resources/com/opensymphony/xwork2/SimpleAction_de.properties b/core/src/test/resources/org/apache/struts2/SimpleAction_de.properties
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/SimpleAction_de.properties
rename to core/src/test/resources/org/apache/struts2/SimpleAction_de.properties
diff --git a/core/src/test/resources/com/opensymphony/xwork2/SimpleAction_en.properties b/core/src/test/resources/org/apache/struts2/SimpleAction_en.properties
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/SimpleAction_en.properties
rename to core/src/test/resources/org/apache/struts2/SimpleAction_en.properties
diff --git a/core/src/test/resources/com/opensymphony/xwork2/SimpleAnnotationAction.properties b/core/src/test/resources/org/apache/struts2/SimpleAnnotationAction.properties
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/SimpleAnnotationAction.properties
rename to core/src/test/resources/org/apache/struts2/SimpleAnnotationAction.properties
diff --git a/core/src/test/resources/com/opensymphony/xwork2/SimpleAnnotationAction_de.properties b/core/src/test/resources/org/apache/struts2/SimpleAnnotationAction_de.properties
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/SimpleAnnotationAction_de.properties
rename to core/src/test/resources/org/apache/struts2/SimpleAnnotationAction_de.properties
diff --git a/core/src/test/resources/com/opensymphony/xwork2/SimpleAnnotationAction_en.properties b/core/src/test/resources/org/apache/struts2/SimpleAnnotationAction_en.properties
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/SimpleAnnotationAction_en.properties
rename to core/src/test/resources/org/apache/struts2/SimpleAnnotationAction_en.properties
diff --git a/core/src/test/resources/com/opensymphony/xwork2/TestBean-anotherContext-validation.xml b/core/src/test/resources/org/apache/struts2/TestBean-anotherContext-validation.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/TestBean-anotherContext-validation.xml
rename to core/src/test/resources/org/apache/struts2/TestBean-anotherContext-validation.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/TestBean-badtest-validation.xml b/core/src/test/resources/org/apache/struts2/TestBean-badtest-validation.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/TestBean-badtest-validation.xml
rename to core/src/test/resources/org/apache/struts2/TestBean-badtest-validation.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/TestBean-beanMessageBundle-validation.xml b/core/src/test/resources/org/apache/struts2/TestBean-beanMessageBundle-validation.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/TestBean-beanMessageBundle-validation.xml
rename to core/src/test/resources/org/apache/struts2/TestBean-beanMessageBundle-validation.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/TestBean-expressionValidation-validation.xml b/core/src/test/resources/org/apache/struts2/TestBean-expressionValidation-validation.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/TestBean-expressionValidation-validation.xml
rename to core/src/test/resources/org/apache/struts2/TestBean-expressionValidation-validation.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/TestBean-validation.xml b/core/src/test/resources/org/apache/struts2/TestBean-validation.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/TestBean-validation.xml
rename to core/src/test/resources/org/apache/struts2/TestBean-validation.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/TestBean-visitorChildValidation-validation.xml b/core/src/test/resources/org/apache/struts2/TestBean-visitorChildValidation-validation.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/TestBean-visitorChildValidation-validation.xml
rename to core/src/test/resources/org/apache/struts2/TestBean-visitorChildValidation-validation.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/TestBean-visitorValidation-validation.xml b/core/src/test/resources/org/apache/struts2/TestBean-visitorValidation-validation.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/TestBean-visitorValidation-validation.xml
rename to core/src/test/resources/org/apache/struts2/TestBean-visitorValidation-validation.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/TestBean.properties b/core/src/test/resources/org/apache/struts2/TestBean.properties
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/TestBean.properties
rename to core/src/test/resources/org/apache/struts2/TestBean.properties
diff --git a/core/src/test/resources/com/opensymphony/xwork2/TestChildBean-validation.xml b/core/src/test/resources/org/apache/struts2/TestChildBean-validation.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/TestChildBean-validation.xml
rename to core/src/test/resources/org/apache/struts2/TestChildBean-validation.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/TextProviderSupportTest_en.properties b/core/src/test/resources/org/apache/struts2/TextProviderSupportTest_en.properties
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/TextProviderSupportTest_en.properties
rename to core/src/test/resources/org/apache/struts2/TextProviderSupportTest_en.properties
diff --git a/core/src/test/resources/com/opensymphony/xwork2/ValidationOrderAction-validation.xml b/core/src/test/resources/org/apache/struts2/ValidationOrderAction-validation.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/ValidationOrderAction-validation.xml
rename to core/src/test/resources/org/apache/struts2/ValidationOrderAction-validation.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/loadorder1/xwork-test-load-order.xml b/core/src/test/resources/org/apache/struts2/config/providers/loadorder1/xwork-test-load-order.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/loadorder1/xwork-test-load-order.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/loadorder1/xwork-test-load-order.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/loadorder2/xwork-test-load-order.xml b/core/src/test/resources/org/apache/struts2/config/providers/loadorder2/xwork-test-load-order.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/loadorder2/xwork-test-load-order.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/loadorder2/xwork-test-load-order.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/loadorder3/xwork-test-load-order.xml b/core/src/test/resources/org/apache/struts2/config/providers/loadorder3/xwork-test-load-order.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/loadorder3/xwork-test-load-order.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/loadorder3/xwork-test-load-order.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork- test.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork- test.xml
similarity index 78%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork- test.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/xwork- test.xml
index 7cc074fa2a..42941e5f24 100644
--- a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork- test.xml
+++ b/core/src/test/resources/org/apache/struts2/config/providers/xwork- test.xml
@@ -26,14 +26,14 @@
-
-
+
+
-
-
+
+
fooDefault
@@ -48,7 +48,7 @@
-
+
17
23
foo.jspa?fooID=${fooID}&something=bar
@@ -58,19 +58,19 @@
-
+
18
24
-
+
-
+
18
24
@@ -78,13 +78,13 @@
-
+
expectedFooValue
-
+
foo123
expectedFooValue
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-include-after-package-2.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-include-after-package-2.xml
similarity index 94%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-include-after-package-2.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/xwork-include-after-package-2.xml
index 8b4c873601..b3bfd15e9b 100644
--- a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-include-after-package-2.xml
+++ b/core/src/test/resources/org/apache/struts2/config/providers/xwork-include-after-package-2.xml
@@ -24,7 +24,7 @@
"https://struts.apache.org/dtds/struts-6.0.dtd">
-
+
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-include-after-package.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-include-after-package.xml
similarity index 81%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-include-after-package.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/xwork-include-after-package.xml
index b48a4c49e3..7e8bdd02e9 100644
--- a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-include-after-package.xml
+++ b/core/src/test/resources/org/apache/struts2/config/providers/xwork-include-after-package.xml
@@ -25,15 +25,15 @@
-
+
-
+
-
+
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-include-before-package-2.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-include-before-package-2.xml
similarity index 94%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-include-before-package-2.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/xwork-include-before-package-2.xml
index 58f277135f..634a2646d6 100644
--- a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-include-before-package-2.xml
+++ b/core/src/test/resources/org/apache/struts2/config/providers/xwork-include-before-package-2.xml
@@ -24,7 +24,7 @@
"https://struts.apache.org/dtds/struts-6.0.dtd">
-
+
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-include-before-package.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-include-before-package.xml
similarity index 81%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-include-before-package.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/xwork-include-before-package.xml
index ca67f9f531..783d15b297 100644
--- a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-include-before-package.xml
+++ b/core/src/test/resources/org/apache/struts2/config/providers/xwork-include-before-package.xml
@@ -27,15 +27,15 @@
-
+
-
+
-
+
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-include-parent.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-include-parent.xml
similarity index 81%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-include-parent.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/xwork-include-parent.xml
index fc7ca38299..ca38ab0aba 100644
--- a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-include-parent.xml
+++ b/core/src/test/resources/org/apache/struts2/config/providers/xwork-include-parent.xml
@@ -27,15 +27,15 @@
-
+
-
+
-
+
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-action-invalid.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-action-invalid.xml
similarity index 78%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-action-invalid.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/xwork-test-action-invalid.xml
index 33194f9195..e739ff3dc4 100644
--- a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-action-invalid.xml
+++ b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-action-invalid.xml
@@ -23,18 +23,18 @@
"-//Apache Software Foundation//DTD Struts Configuration 6.0//EN"
"https://struts.apache.org/dtds/struts-6.0.dtd">
-
+
-
+
13
-
+
17
-
+
17
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-actions-packagedefaultclassref.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-actions-packagedefaultclassref.xml
similarity index 73%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-actions-packagedefaultclassref.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/xwork-test-actions-packagedefaultclassref.xml
index f7f4a8f06d..f94e7fd13d 100644
--- a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-actions-packagedefaultclassref.xml
+++ b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-actions-packagedefaultclassref.xml
@@ -26,13 +26,13 @@
-
-
+
+
-
-
+
+
fooDefault
@@ -40,7 +40,7 @@
-
+
@@ -48,11 +48,11 @@
-
+
17
23
-
+
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-actions.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-actions.xml
similarity index 78%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-actions.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/xwork-test-actions.xml
index 7cc074fa2a..42941e5f24 100644
--- a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-actions.xml
+++ b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-actions.xml
@@ -26,14 +26,14 @@
-
-
+
+
-
-
+
+
fooDefault
@@ -48,7 +48,7 @@
-
+
17
23
foo.jspa?fooID=${fooID}&something=bar
@@ -58,19 +58,19 @@
-
+
18
24
-
+
-
+
18
24
@@ -78,13 +78,13 @@
-
+
expectedFooValue
-
+
foo123
expectedFooValue
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-allowed-methods.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-allowed-methods.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-allowed-methods.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/xwork-test-allowed-methods.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-allowlist-2.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-allowlist-2.xml
similarity index 88%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-allowlist-2.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/xwork-test-allowlist-2.xml
index f5e9b184d1..d920b03bd0 100644
--- a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-allowlist-2.xml
+++ b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-allowlist-2.xml
@@ -25,14 +25,14 @@
-
+
-
+
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-allowlist.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-allowlist.xml
similarity index 86%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-allowlist.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/xwork-test-allowlist.xml
index 1de061efd1..86dc604222 100644
--- a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-allowlist.xml
+++ b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-allowlist.xml
@@ -25,11 +25,11 @@
-
+
-
+
fooDefault
@@ -38,7 +38,7 @@
-
+
18
24
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-bad-inheritance.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-bad-inheritance.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-bad-inheritance.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/xwork-test-bad-inheritance.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-basic-packages.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-basic-packages.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-basic-packages.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/xwork-test-basic-packages.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-default-package.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-default-package.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-default-package.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/xwork-test-default-package.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-defaultclassref-package.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-defaultclassref-package.xml
similarity index 93%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-defaultclassref-package.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/xwork-test-defaultclassref-package.xml
index deedbed125..786fcc85e8 100644
--- a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-defaultclassref-package.xml
+++ b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-defaultclassref-package.xml
@@ -24,7 +24,7 @@
"https://struts.apache.org/dtds/struts-6.0.dtd">
-
+
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-envs-substitution.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-envs-substitution.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-envs-substitution.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/xwork-test-envs-substitution.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-exception-mappings.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-exception-mappings.xml
similarity index 77%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-exception-mappings.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/xwork-test-exception-mappings.xml
index ab503c15ba..99a6b4ecce 100644
--- a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-exception-mappings.xml
+++ b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-exception-mappings.xml
@@ -26,8 +26,8 @@
-
-
+
+
@@ -37,11 +37,11 @@
-
+
-
-
+
+
bar.vm
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-global-result-inheritence.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-global-result-inheritence.xml
similarity index 92%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-global-result-inheritence.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/xwork-test-global-result-inheritence.xml
index 143b9f5c60..0a894404f9 100644
--- a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-global-result-inheritence.xml
+++ b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-global-result-inheritence.xml
@@ -26,7 +26,7 @@
-
+
@@ -42,7 +42,7 @@
-
+
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-include-wildcard.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-include-wildcard.xml
similarity index 92%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-include-wildcard.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/xwork-test-include-wildcard.xml
index bec77a184c..8966bc7246 100644
--- a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-include-wildcard.xml
+++ b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-include-wildcard.xml
@@ -23,5 +23,5 @@
"-//Apache Software Foundation//DTD Struts Configuration 6.0//EN"
"https://struts.apache.org/dtds/struts-6.0.dtd">
-
+
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-interceptor-defaultref.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-interceptor-defaultref.xml
similarity index 79%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-interceptor-defaultref.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/xwork-test-interceptor-defaultref.xml
index c5290c3356..d6453d2dcf 100644
--- a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-interceptor-defaultref.xml
+++ b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-interceptor-defaultref.xml
@@ -27,22 +27,22 @@
-
+
-
+
-
+
-
+
-
+
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-interceptor-inheritance.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-interceptor-inheritance.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-interceptor-inheritance.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/xwork-test-interceptor-inheritance.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-interceptor-param-overriding.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-interceptor-param-overriding.xml
similarity index 82%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-interceptor-param-overriding.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/xwork-test-interceptor-param-overriding.xml
index 15f5ace02b..82cad1ea32 100644
--- a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-interceptor-param-overriding.xml
+++ b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-interceptor-param-overriding.xml
@@ -26,13 +26,13 @@
-
+
-
-
-
+
+
+
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-interceptor-params.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-interceptor-params.xml
similarity index 87%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-interceptor-params.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/xwork-test-interceptor-params.xml
index 0b502a1633..f328ebae5c 100644
--- a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-interceptor-params.xml
+++ b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-interceptor-params.xml
@@ -27,7 +27,7 @@
-
+
fooDefault
@@ -39,13 +39,13 @@
-
+
expectedFooValue
-
+
foo123
expectedFooValue2
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-interceptor-stack-param-overriding.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-interceptor-stack-param-overriding.xml
similarity index 87%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-interceptor-stack-param-overriding.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/xwork-test-interceptor-stack-param-overriding.xml
index 47eb82bd56..9ebaa5ad45 100644
--- a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-interceptor-stack-param-overriding.xml
+++ b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-interceptor-stack-param-overriding.xml
@@ -25,16 +25,16 @@
-
+
+ class="org.apache.struts2.config.providers.InterceptorForTestPurpose"/>
+ class="org.apache.struts2.config.providers.InterceptorForTestPurpose"/>
+ class="org.apache.struts2.config.providers.InterceptorForTestPurpose"/>
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-interceptors-basic.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-interceptors-basic.xml
similarity index 89%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-interceptors-basic.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/xwork-test-interceptors-basic.xml
index c271410bb2..2be3e0534b 100644
--- a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-interceptors-basic.xml
+++ b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-interceptors-basic.xml
@@ -27,8 +27,8 @@
-
-
+
+
expectedFoo
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-interceptors-spring.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-interceptors-spring.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-interceptors-spring.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/xwork-test-interceptors-spring.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-invalid-file.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-invalid-file.xml
similarity index 94%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-invalid-file.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/xwork-test-invalid-file.xml
index bb4db400db..6eb33f1073 100644
--- a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-invalid-file.xml
+++ b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-invalid-file.xml
@@ -19,7 +19,7 @@
* under the License.
*/
-->
-
+
17
23
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-multilevel.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-multilevel.xml
similarity index 81%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-multilevel.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/xwork-test-multilevel.xml
index b86dbc2e41..f710519b79 100644
--- a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-multilevel.xml
+++ b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-multilevel.xml
@@ -26,7 +26,7 @@
-
+
@@ -35,10 +35,10 @@
-
+
-
+
@@ -46,14 +46,14 @@
-
+
-
+
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-package-extends-final.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-package-extends-final.xml
similarity index 83%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-package-extends-final.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/xwork-test-package-extends-final.xml
index 4e42422350..e19c1fd845 100644
--- a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-package-extends-final.xml
+++ b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-package-extends-final.xml
@@ -24,14 +24,14 @@
"struts-6.5.dtd">
-
+
-
+
-
+
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-package-final.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-package-final.xml
similarity index 84%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-package-final.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/xwork-test-package-final.xml
index 2a49a153b1..3b553493b1 100644
--- a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-package-final.xml
+++ b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-package-final.xml
@@ -24,14 +24,14 @@
"struts-6.5.dtd">
-
+
-
+
-
+
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-package-inheritance.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-package-inheritance.xml
similarity index 79%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-package-inheritance.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/xwork-test-package-inheritance.xml
index f6c2b974f7..c320131985 100644
--- a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-package-inheritance.xml
+++ b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-package-inheritance.xml
@@ -25,22 +25,22 @@
-
+
-
+
-
+
-
+
-
+
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-reload.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-reload.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-reload.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/xwork-test-reload.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-result-inheritance.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-result-inheritance.xml
similarity index 80%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-result-inheritance.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/xwork-test-result-inheritance.xml
index 8d6300e80a..e42274f2ea 100644
--- a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-result-inheritance.xml
+++ b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-result-inheritance.xml
@@ -26,17 +26,17 @@
-
-
+
+
-
+
-
+
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-result-names.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-result-names.xml
similarity index 94%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-result-names.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/xwork-test-result-names.xml
index 4e5b93f86e..f7c67b165b 100644
--- a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-result-names.xml
+++ b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-result-names.xml
@@ -26,7 +26,7 @@
-
+
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-result-types.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-result-types.xml
similarity index 87%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-result-types.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/xwork-test-result-types.xml
index 5bfcaee988..f274747886 100644
--- a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-result-types.xml
+++ b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-result-types.xml
@@ -26,12 +26,12 @@
-
+
value1
value2
value3
-
+
valueA
valueB
@@ -41,12 +41,12 @@
-
+
value1
value2
value3
-
+
valueA
valueB
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-results.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-results.xml
similarity index 87%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-results.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/xwork-test-results.xml
index a4f279e9a1..82582db3cb 100644
--- a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-results.xml
+++ b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-results.xml
@@ -26,8 +26,8 @@
-
-
+
+
@@ -35,7 +35,7 @@
login
-
+
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-wildcard-1.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-wildcard-1.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-wildcard-1.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/xwork-test-wildcard-1.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-wildcard-2.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-wildcard-2.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-wildcard-2.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/xwork-test-wildcard-2.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-wildcard-include.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-wildcard-include.xml
similarity index 93%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-wildcard-include.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/xwork-test-wildcard-include.xml
index 2d7003f56e..7ad471521c 100644
--- a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-test-wildcard-include.xml
+++ b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-wildcard-include.xml
@@ -24,7 +24,7 @@
"https://struts.apache.org/dtds/struts-6.0.dtd">
-
+
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-unknownhandler-stack-empty.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-unknownhandler-stack-empty.xml
similarity index 79%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-unknownhandler-stack-empty.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/xwork-unknownhandler-stack-empty.xml
index 7073d9441d..b47098a12a 100644
--- a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-unknownhandler-stack-empty.xml
+++ b/core/src/test/resources/org/apache/struts2/config/providers/xwork-unknownhandler-stack-empty.xml
@@ -23,8 +23,8 @@
"-//Apache Software Foundation//DTD Struts Configuration 6.0//EN"
"https://struts.apache.org/dtds/struts-6.0.dtd">
-
-
+
+
diff --git a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-unknownhandler-stack.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-unknownhandler-stack.xml
similarity index 81%
rename from core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-unknownhandler-stack.xml
rename to core/src/test/resources/org/apache/struts2/config/providers/xwork-unknownhandler-stack.xml
index ea0be853cf..d31857754a 100644
--- a/core/src/test/resources/com/opensymphony/xwork2/config/providers/xwork-unknownhandler-stack.xml
+++ b/core/src/test/resources/org/apache/struts2/config/providers/xwork-unknownhandler-stack.xml
@@ -23,8 +23,8 @@
"-//Apache Software Foundation//DTD Struts Configuration 6.0//EN"
"https://struts.apache.org/dtds/struts-6.0.dtd">
-
-
+
+
diff --git a/core/src/test/resources/com/opensymphony/xwork2/conversion/impl/test-struts-conversion.properties b/core/src/test/resources/org/apache/struts2/conversion/impl/test-struts-conversion.properties
similarity index 89%
rename from core/src/test/resources/com/opensymphony/xwork2/conversion/impl/test-struts-conversion.properties
rename to core/src/test/resources/org/apache/struts2/conversion/impl/test-struts-conversion.properties
index 1cd0f58178..3ba6267351 100644
--- a/core/src/test/resources/com/opensymphony/xwork2/conversion/impl/test-struts-conversion.properties
+++ b/core/src/test/resources/org/apache/struts2/conversion/impl/test-struts-conversion.properties
@@ -16,4 +16,4 @@
# specific language governing permissions and limitations
# under the License.
#
-com.opensymphony.xwork2.util.Bar=com.opensymphony.xwork2.conversion.impl.FooBarConverter
\ No newline at end of file
+org.apache.struts2.util.Bar=org.apache.struts2.conversion.impl.FooBarConverter
\ No newline at end of file
diff --git a/core/src/test/resources/com/opensymphony/xwork2/somefile.txt b/core/src/test/resources/org/apache/struts2/somefile.txt
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/somefile.txt
rename to core/src/test/resources/org/apache/struts2/somefile.txt
diff --git a/core/src/test/resources/com/opensymphony/xwork2/test.properties b/core/src/test/resources/org/apache/struts2/test.properties
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/test.properties
rename to core/src/test/resources/org/apache/struts2/test.properties
diff --git a/core/src/test/resources/com/opensymphony/xwork2/test/DataAware-conversion.properties b/core/src/test/resources/org/apache/struts2/test/DataAware-conversion.properties
similarity index 92%
rename from core/src/test/resources/com/opensymphony/xwork2/test/DataAware-conversion.properties
rename to core/src/test/resources/org/apache/struts2/test/DataAware-conversion.properties
index e33ea166c6..e6bb64b18a 100644
--- a/core/src/test/resources/com/opensymphony/xwork2/test/DataAware-conversion.properties
+++ b/core/src/test/resources/org/apache/struts2/test/DataAware-conversion.properties
@@ -16,4 +16,4 @@
# specific language governing permissions and limitations
# under the License.
#
-barObj=com.opensymphony.xwork2.conversion.impl.FooBarConverter
+barObj=org.apache.struts2.conversion.impl.FooBarConverter
diff --git a/core/src/test/resources/com/opensymphony/xwork2/test/DataAware-validation.xml b/core/src/test/resources/org/apache/struts2/test/DataAware-validation.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/test/DataAware-validation.xml
rename to core/src/test/resources/org/apache/struts2/test/DataAware-validation.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/test/DataAware-validationAlias-validation.xml b/core/src/test/resources/org/apache/struts2/test/DataAware-validationAlias-validation.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/test/DataAware-validationAlias-validation.xml
rename to core/src/test/resources/org/apache/struts2/test/DataAware-validationAlias-validation.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/test/DataAware.properties b/core/src/test/resources/org/apache/struts2/test/DataAware.properties
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/test/DataAware.properties
rename to core/src/test/resources/org/apache/struts2/test/DataAware.properties
diff --git a/core/src/test/resources/com/opensymphony/xwork2/test/DataAware2-validation.xml b/core/src/test/resources/org/apache/struts2/test/DataAware2-validation.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/test/DataAware2-validation.xml
rename to core/src/test/resources/org/apache/struts2/test/DataAware2-validation.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/test/Equidae-validation.xml b/core/src/test/resources/org/apache/struts2/test/Equidae-validation.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/test/Equidae-validation.xml
rename to core/src/test/resources/org/apache/struts2/test/Equidae-validation.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/test/SimpleAction2-validation.xml b/core/src/test/resources/org/apache/struts2/test/SimpleAction2-validation.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/test/SimpleAction2-validation.xml
rename to core/src/test/resources/org/apache/struts2/test/SimpleAction2-validation.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/test/SimpleAction2-validationAlias-validation.xml b/core/src/test/resources/org/apache/struts2/test/SimpleAction2-validationAlias-validation.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/test/SimpleAction2-validationAlias-validation.xml
rename to core/src/test/resources/org/apache/struts2/test/SimpleAction2-validationAlias-validation.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/test/TestBean2-conversion.properties b/core/src/test/resources/org/apache/struts2/test/TestBean2-conversion.properties
similarity index 92%
rename from core/src/test/resources/com/opensymphony/xwork2/test/TestBean2-conversion.properties
rename to core/src/test/resources/org/apache/struts2/test/TestBean2-conversion.properties
index f6847debc5..e7ba798129 100644
--- a/core/src/test/resources/com/opensymphony/xwork2/test/TestBean2-conversion.properties
+++ b/core/src/test/resources/org/apache/struts2/test/TestBean2-conversion.properties
@@ -16,4 +16,4 @@
# specific language governing permissions and limitations
# under the License.
#
-cat = com.opensymphony.xwork2.conversion.impl.FooBarConverter
+cat = org.apache.struts2.conversion.impl.FooBarConverter
diff --git a/core/src/test/resources/com/opensymphony/xwork2/test/User-conversion.properties b/core/src/test/resources/org/apache/struts2/test/User-conversion.properties
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/test/User-conversion.properties
rename to core/src/test/resources/org/apache/struts2/test/User-conversion.properties
diff --git a/core/src/test/resources/com/opensymphony/xwork2/test/User-validation.xml b/core/src/test/resources/org/apache/struts2/test/User-validation.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/test/User-validation.xml
rename to core/src/test/resources/org/apache/struts2/test/User-validation.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/test/UserMarker-validation.xml b/core/src/test/resources/org/apache/struts2/test/UserMarker-validation.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/test/UserMarker-validation.xml
rename to core/src/test/resources/org/apache/struts2/test/UserMarker-validation.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/test/package.properties b/core/src/test/resources/org/apache/struts2/test/package.properties
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/test/package.properties
rename to core/src/test/resources/org/apache/struts2/test/package.properties
diff --git a/core/src/test/resources/com/opensymphony/xwork2/util/Bar.properties b/core/src/test/resources/org/apache/struts2/util/Bar.properties
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/util/Bar.properties
rename to core/src/test/resources/org/apache/struts2/util/Bar.properties
diff --git a/core/src/test/resources/com/opensymphony/xwork2/util/Cat-conversion.properties b/core/src/test/resources/org/apache/struts2/util/Cat-conversion.properties
similarity index 86%
rename from core/src/test/resources/com/opensymphony/xwork2/util/Cat-conversion.properties
rename to core/src/test/resources/org/apache/struts2/util/Cat-conversion.properties
index 144fa3c2f4..15f159b45b 100644
--- a/core/src/test/resources/com/opensymphony/xwork2/util/Cat-conversion.properties
+++ b/core/src/test/resources/org/apache/struts2/util/Cat-conversion.properties
@@ -16,5 +16,5 @@
# specific language governing permissions and limitations
# under the License.
#
-Collection_kittens = com.opensymphony.xwork2.util.Cat
-foo.number = com.opensymphony.xwork2.conversion.impl.FooNumberConverter
+Collection_kittens = org.apache.struts2.util.Cat
+foo.number = org.apache.struts2.conversion.impl.FooNumberConverter
diff --git a/core/src/test/resources/com/opensymphony/xwork2/util/FindMe.properties b/core/src/test/resources/org/apache/struts2/util/FindMe.properties
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/util/FindMe.properties
rename to core/src/test/resources/org/apache/struts2/util/FindMe.properties
diff --git a/core/src/test/resources/com/opensymphony/xwork2/util/Foo-conversion.properties b/core/src/test/resources/org/apache/struts2/util/Foo-conversion.properties
similarity index 68%
rename from core/src/test/resources/com/opensymphony/xwork2/util/Foo-conversion.properties
rename to core/src/test/resources/org/apache/struts2/util/Foo-conversion.properties
index b4960c4c1d..3e9af508f2 100644
--- a/core/src/test/resources/com/opensymphony/xwork2/util/Foo-conversion.properties
+++ b/core/src/test/resources/org/apache/struts2/util/Foo-conversion.properties
@@ -16,15 +16,15 @@
# specific language governing permissions and limitations
# under the License.
#
-bar=com.opensymphony.xwork2.conversion.impl.FooBarConverter
-Element_cats=com.opensymphony.xwork2.util.Cat
-Element_moreCats=com.opensymphony.xwork2.util.Cat
-Element_catMap=com.opensymphony.xwork2.util.Cat
+bar=org.apache.struts2.conversion.impl.FooBarConverter
+Element_cats=org.apache.struts2.util.Cat
+Element_moreCats=org.apache.struts2.util.Cat
+Element_catMap=org.apache.struts2.util.Cat
Key_anotherCatMap=java.lang.Long
-Element_anotherCatMap=com.opensymphony.xwork2.util.Cat
+Element_anotherCatMap=org.apache.struts2.util.Cat
KeyProperty_barCollection=id
-Element_barCollection=com.opensymphony.xwork2.util.Bar
+Element_barCollection=org.apache.struts2.util.Bar
KeyProperty_barList=id
-Element_barList=com.opensymphony.xwork2.util.Bar
+Element_barList=org.apache.struts2.util.Bar
Key_animalMap=java.lang.Long
-Element_animalMap=com.opensymphony.xwork2.util.Cat
+Element_animalMap=org.apache.struts2.util.Cat
diff --git a/core/src/test/resources/com/opensymphony/xwork2/util/ListHolder-conversion.properties b/core/src/test/resources/org/apache/struts2/util/ListHolder-conversion.properties
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/util/ListHolder-conversion.properties
rename to core/src/test/resources/org/apache/struts2/util/ListHolder-conversion.properties
diff --git a/core/src/test/resources/com/opensymphony/xwork2/util/LocalizedTextUtilTest.properties b/core/src/test/resources/org/apache/struts2/util/LocalizedTextUtilTest.properties
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/util/LocalizedTextUtilTest.properties
rename to core/src/test/resources/org/apache/struts2/util/LocalizedTextUtilTest.properties
diff --git a/core/src/test/resources/com/opensymphony/xwork2/util/MyBeanAction-conversion.properties b/core/src/test/resources/org/apache/struts2/util/MyBeanAction-conversion.properties
similarity index 89%
rename from core/src/test/resources/com/opensymphony/xwork2/util/MyBeanAction-conversion.properties
rename to core/src/test/resources/org/apache/struts2/util/MyBeanAction-conversion.properties
index 649b97c3f6..1a54259c80 100644
--- a/core/src/test/resources/com/opensymphony/xwork2/util/MyBeanAction-conversion.properties
+++ b/core/src/test/resources/org/apache/struts2/util/MyBeanAction-conversion.properties
@@ -17,10 +17,10 @@
# under the License.
#
KeyProperty_beanList=id
-Element_beanList=com.opensymphony.xwork2.util.MyBean
+Element_beanList=org.apache.struts2.util.MyBean
CreateIfNull_beanList=true
Key_beanMap=java.lang.Long
KeyProperty_beanMap=id
-Element_beanMap=com.opensymphony.xwork2.util.MyBean
+Element_beanMap=org.apache.struts2.util.MyBean
diff --git a/core/src/test/resources/com/opensymphony/xwork2/util/Tiger-conversion.properties b/core/src/test/resources/org/apache/struts2/util/Tiger-conversion.properties
similarity index 93%
rename from core/src/test/resources/com/opensymphony/xwork2/util/Tiger-conversion.properties
rename to core/src/test/resources/org/apache/struts2/util/Tiger-conversion.properties
index b1b9639a12..2c4b3039a2 100644
--- a/core/src/test/resources/com/opensymphony/xwork2/util/Tiger-conversion.properties
+++ b/core/src/test/resources/org/apache/struts2/util/Tiger-conversion.properties
@@ -16,4 +16,4 @@
# specific language governing permissions and limitations
# under the License.
#
-Collection_dogs = com.opensymphony.xwork2.util.Dog
+Collection_dogs = org.apache.struts2.util.Dog
diff --git a/core/src/test/resources/com/opensymphony/xwork2/util/XW404_de.properties b/core/src/test/resources/org/apache/struts2/util/XW404_de.properties
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/util/XW404_de.properties
rename to core/src/test/resources/org/apache/struts2/util/XW404_de.properties
diff --git a/core/src/test/resources/com/opensymphony/xwork2/util/XW404_fr.properties b/core/src/test/resources/org/apache/struts2/util/XW404_fr.properties
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/util/XW404_fr.properties
rename to core/src/test/resources/org/apache/struts2/util/XW404_fr.properties
diff --git a/core/src/test/resources/com/opensymphony/xwork2/util/location/xml-with-location.xml b/core/src/test/resources/org/apache/struts2/util/location/xml-with-location.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/util/location/xml-with-location.xml
rename to core/src/test/resources/org/apache/struts2/util/location/xml-with-location.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/validator/CompositeTextProviderTestResourceBundle1.properties b/core/src/test/resources/org/apache/struts2/validator/CompositeTextProviderTestResourceBundle1.properties
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/validator/CompositeTextProviderTestResourceBundle1.properties
rename to core/src/test/resources/org/apache/struts2/validator/CompositeTextProviderTestResourceBundle1.properties
diff --git a/core/src/test/resources/com/opensymphony/xwork2/validator/CompositeTextProviderTestResourceBundle2.properties b/core/src/test/resources/org/apache/struts2/validator/CompositeTextProviderTestResourceBundle2.properties
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/validator/CompositeTextProviderTestResourceBundle2.properties
rename to core/src/test/resources/org/apache/struts2/validator/CompositeTextProviderTestResourceBundle2.properties
diff --git a/core/src/test/resources/com/opensymphony/xwork2/validator/VisitorValidatorModelAction-validation.xml b/core/src/test/resources/org/apache/struts2/validator/VisitorValidatorModelAction-validation.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/validator/VisitorValidatorModelAction-validation.xml
rename to core/src/test/resources/org/apache/struts2/validator/VisitorValidatorModelAction-validation.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/validator/VisitorValidatorTestAction-beanMessageBundle-validation.xml b/core/src/test/resources/org/apache/struts2/validator/VisitorValidatorTestAction-beanMessageBundle-validation.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/validator/VisitorValidatorTestAction-beanMessageBundle-validation.xml
rename to core/src/test/resources/org/apache/struts2/validator/VisitorValidatorTestAction-beanMessageBundle-validation.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/validator/VisitorValidatorTestAction-validateArray-validation.xml b/core/src/test/resources/org/apache/struts2/validator/VisitorValidatorTestAction-validateArray-validation.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/validator/VisitorValidatorTestAction-validateArray-validation.xml
rename to core/src/test/resources/org/apache/struts2/validator/VisitorValidatorTestAction-validateArray-validation.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/validator/VisitorValidatorTestAction-validateList-validation.xml b/core/src/test/resources/org/apache/struts2/validator/VisitorValidatorTestAction-validateList-validation.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/validator/VisitorValidatorTestAction-validateList-validation.xml
rename to core/src/test/resources/org/apache/struts2/validator/VisitorValidatorTestAction-validateList-validation.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/validator/VisitorValidatorTestAction-validation.xml b/core/src/test/resources/org/apache/struts2/validator/VisitorValidatorTestAction-validation.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/validator/VisitorValidatorTestAction-validation.xml
rename to core/src/test/resources/org/apache/struts2/validator/VisitorValidatorTestAction-validation.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/validator/VisitorValidatorTestAction-visitorChildValidation-validation.xml b/core/src/test/resources/org/apache/struts2/validator/VisitorValidatorTestAction-visitorChildValidation-validation.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/validator/VisitorValidatorTestAction-visitorChildValidation-validation.xml
rename to core/src/test/resources/org/apache/struts2/validator/VisitorValidatorTestAction-visitorChildValidation-validation.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/validator/VisitorValidatorTestAction-visitorValidation-validation.xml b/core/src/test/resources/org/apache/struts2/validator/VisitorValidatorTestAction-visitorValidation-validation.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/validator/VisitorValidatorTestAction-visitorValidation-validation.xml
rename to core/src/test/resources/org/apache/struts2/validator/VisitorValidatorTestAction-visitorValidation-validation.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/validator/VisitorValidatorTestAction-visitorValidationAlias-validation.xml b/core/src/test/resources/org/apache/struts2/validator/VisitorValidatorTestAction-visitorValidationAlias-validation.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/validator/VisitorValidatorTestAction-visitorValidationAlias-validation.xml
rename to core/src/test/resources/org/apache/struts2/validator/VisitorValidatorTestAction-visitorValidationAlias-validation.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/validator/VisitorValidatorTestAction.properties b/core/src/test/resources/org/apache/struts2/validator/VisitorValidatorTestAction.properties
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/validator/VisitorValidatorTestAction.properties
rename to core/src/test/resources/org/apache/struts2/validator/VisitorValidatorTestAction.properties
diff --git a/core/src/test/resources/com/opensymphony/xwork2/validator/validator-parser-test.xml b/core/src/test/resources/org/apache/struts2/validator/validator-parser-test.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/validator/validator-parser-test.xml
rename to core/src/test/resources/org/apache/struts2/validator/validator-parser-test.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/validator/validator-parser-test2.xml b/core/src/test/resources/org/apache/struts2/validator/validator-parser-test2.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/validator/validator-parser-test2.xml
rename to core/src/test/resources/org/apache/struts2/validator/validator-parser-test2.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/validator/validator-parser-test3.xml b/core/src/test/resources/org/apache/struts2/validator/validator-parser-test3.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/validator/validator-parser-test3.xml
rename to core/src/test/resources/org/apache/struts2/validator/validator-parser-test3.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/validator/validator-parser-test4.xml b/core/src/test/resources/org/apache/struts2/validator/validator-parser-test4.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/validator/validator-parser-test4.xml
rename to core/src/test/resources/org/apache/struts2/validator/validator-parser-test4.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/validator/validator-parser-test5.xml b/core/src/test/resources/org/apache/struts2/validator/validator-parser-test5.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/validator/validator-parser-test5.xml
rename to core/src/test/resources/org/apache/struts2/validator/validator-parser-test5.xml
diff --git a/core/src/test/resources/com/opensymphony/xwork2/validator/validator-parser-test6.xml b/core/src/test/resources/org/apache/struts2/validator/validator-parser-test6.xml
similarity index 100%
rename from core/src/test/resources/com/opensymphony/xwork2/validator/validator-parser-test6.xml
rename to core/src/test/resources/org/apache/struts2/validator/validator-parser-test6.xml
diff --git a/core/src/test/resources/org/apache/struts2/validator/validators-fail.xml b/core/src/test/resources/org/apache/struts2/validator/validators-fail.xml
new file mode 100644
index 0000000000..7cec497d04
--- /dev/null
+++ b/core/src/test/resources/org/apache/struts2/validator/validators-fail.xml
@@ -0,0 +1,41 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/core/src/test/resources/struts-object-factory-result-builder.xml b/core/src/test/resources/struts-object-factory-result-builder.xml
index 76b872f9b0..c085d9bb70 100644
--- a/core/src/test/resources/struts-object-factory-result-builder.xml
+++ b/core/src/test/resources/struts-object-factory-result-builder.xml
@@ -25,7 +25,7 @@
-
diff --git a/core/src/test/resources/struts-testing.xml b/core/src/test/resources/struts-testing.xml
index f1af997ce6..a43c3de7ef 100644
--- a/core/src/test/resources/struts-testing.xml
+++ b/core/src/test/resources/struts-testing.xml
@@ -33,21 +33,21 @@
-
+
/fetchMetadataExempted
hello.jsp
-
+
/nonMatchingActionPath
hello.jsp
-
+
hello.jsp
diff --git a/core/src/test/resources/struts.xml b/core/src/test/resources/struts.xml
index 55b6805e42..6f62df0a98 100644
--- a/core/src/test/resources/struts.xml
+++ b/core/src/test/resources/struts.xml
@@ -24,7 +24,7 @@
"https://struts.apache.org/dtds/struts-6.0.dtd">
-
+
hello.jsp
/tutorial/test.action
@@ -36,17 +36,17 @@
class="org.apache.struts2.views.freemarker.FreemarkerResult"/>
-
+
sitegraph/guess-input.ftl
-
+
org/apache/struts2/views/freemarker/callActionFreeMarker.ftl
-
+
org/apache/struts2/views/freemarker/nested.ftl
@@ -56,43 +56,43 @@
-
+
org/apache/struts2/views/freemarker/callActionFreeMarker2.ftl
-
+
org/apache/struts2/views/freemarker/dynaAttributes.ftl
-
+
org/apache/struts2/views/freemarker/manual-list.ftl
-
+
org/apache/struts2/views/freemarker/customTextField.ftl
-
+
org/apache/struts2/views/freemarker/select.ftl
-
+
org/apache/struts2/views/freemarker/nonceTest.ftl
-
+
org/apache/struts2/views/freemarker/iterator.ftl
@@ -105,7 +105,7 @@
class="org.apache.struts2.views.freemarker.FreemarkerResult"/>
-
+
guess-success.jsp
guess-input.ftl
guess-error.ftl
diff --git a/core/src/test/resources/validators.xml b/core/src/test/resources/validators.xml
index dc99a4e8c1..00ae5bda89 100644
--- a/core/src/test/resources/validators.xml
+++ b/core/src/test/resources/validators.xml
@@ -23,21 +23,21 @@
"-//Apache Struts//XWork Validator Config 1.0//EN"
"https://struts.apache.org/dtds/xwork-validator-config-1.0.dtd">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/core/src/test/resources/xwork - jar.jar b/core/src/test/resources/xwork - jar.jar
index 94050febecab0711b73cc56d307ecb5ecd73d533..001de63fc56f667c02c5167dcd1e73f351369d7f 100644
GIT binary patch
literal 2042
zcmWIWW@Zs#;Nak3;ImhZWIzI(3@i-3t|5-Po_=on|4uP5Ff#;rvvYt{FhP|C;M6Pv
zQ~}rQ>*(j{<{BKL=j-;__snS@Z(Y5MyxzK6=gyqp9At3C_`%a6JuhD!Pv48Bt5~>Z
zyq0_+DW#cF@#Oh3HPNNhvOg7lEMf%P?Hl}u!3t=yB@iR*j*62CsQw_6LTc&%GMc2dQj?2wca(9pT@_NeLEf4m%{Vx=PMjz3iuRhQm3d}5bv;VY8y
z&(8e53jD$R+T6l9duPn+;HGwq0*Hu<@zTsA*XW#Gv)mZ&nj>T>$LET-m)y?9u-!)21g03)t_b09kxpKsvnN{I>GWOWuNur(Y^qkw^i^FjQ^iJQXUd+rslFjf
z9uYE^b>i3;r9GJ!^>uPqrsnCV61(D}QzOf7e~G#_{qdGBmWe!UuM9WzRG;984hZ1&
z?pS@3URI;`80A@6LN^@ICCwkM1f<
z$shT3v;N2D7tX2|(@`y2wd$SrdH)Yp0vyb#&dcf(
zMgKBH`$TK?!&>`qhb883OUZC
zJ0=|bRj}}%%B%HPd9IyX=Y95AG55wJC=?g>*2v8kg8o>GWqhA2}dTr
zb-1|Yzuj@q+1|I8isr20&wNz;e_wHq_3y){51#E`Evz!tW2#H|{l4?(*lL0nVVXWK%}aGY$H~Vx
zu2^i{$K*)|qSfZ@ev;Q*-j|8%v#Uhpw=jq$+;-_-A5wwRdC4HI@vWx0NDE
zE-}KVF4n!zWYAbP@!Ho!ugd|664namf|lu}fErk=J+U#h_I
zv!yM}@9VF3x{qHSE1kGGKhon|h19PMrW0R`jcV1uhA<{^8Fo&Y_kNLGN~A7F@a4DS
zzhrl-onhI|&httK3`N(jHB1T=a(ot(Es%`=SKbK%YXh?c`tsl`HA3)nalRAw|)QMtHz14IlG?SyLTy?
z`El-@c}0cR@8rrh?q2kMg3OQJkU3dD;-+==-wrC=5V!H#Q=_jo6NF~>#pNujzfq&r
z94Vc?iCHCC>=(1vpY(@8s~_F9KN}zX>l5?0{hPCV66U>pUA3k|ty6B5nJ!UX(OI2^LWSYlh
zKf7rAr;l^nG`Gy36S*Z_tnMd+lYx93XT#Cdg}W0U*QXx&GN*6mrS|PoDKDP5zl*nd
zEybByR6MiHnlJLsv3h1u9<_>(@p}r)q((f*S!6L<7U6?s5#7-YGMYg~a0X#y5@A5C
z17Q^$s18I0@JbC-BL;Y*YDKP^Ks6u&*aDewtw{ADvI(Fn3_0h5sxSoD2V|mGXvn%j
ixf@wGD0d^kLuROMcwP_iW@Q7(vjE|DAkD-M;sF4h&Sx$F
diff --git a/core/src/test/resources/xwork - zip.zip b/core/src/test/resources/xwork - zip.zip
index 49e97010aaa2d8e60cd2a22084fabff6358ce989..6490cf77ea074b42f7ad2995619a232228859c4b 100644
GIT binary patch
literal 2653
zcmWIWW@Zs#-~hrYPKuEXP{7E;z`)0#z)(@1UzDv|m04hb-)wJh?w*Zb6@6>+?*BYzxoz*=f3EpoY72Ol2<@Dd@Zsx=H(RbVKIOOK
zkWI6gBWUm>xU`*>QQgL0d5wm@;H&;$2^qT8Hghjoh`TY}+nq0HW!FA+`OKi1e>x`c
zK1q6f^{JBE#IBT`Z!)aI>kluu{P9iDg_|EUq&C?oC3s1GeE6rYTiRW4xJj>h;|j^0>0y7jL`9t}GIa}F&z>4te)~(*weSZ^zF0n$Vf%G)dr$QV
zj_7~@Uhm$8WdLvnt?vl~q7-(S&M
zmv@PwVs{_&lb+`~Ou|e)@0l)V1o;avhA?V1UOF7}j9n(3`|yn|-*?uvH*yy99~bkt
zU2FEoE2VZCW8a1wS45p>rS#lT%oa`BD!hyR^~I~A>Q-?ZzUS>uy0||4@!xmzUK)Il
zO8c?7&hqW=^>wrU$FDD(R6EH=F>BfCciHFrKU7JGOM3?wr>DPM>-ygL&b)#`(|2+u
zi5nKZS3Lc5Z>Yt^FSgO5b~anMe!mu#-mClBKqbiO^6~DyMThf(rH>yISnR&RaGB1l
zL_yoBliZl{<3x7pJ=yGc<$s)aveUEHedmsQ7EF8jQnS}(p4O^zy$vBB9-8hus&_c^
zOXPPxVtHFa;2M->!PGZ&9{!5pDEh(
zw?Svo-^6p`+g&)MCQd(JTPXYD-sb)PlQ(@y=v#T|_~uulM{YQO)tAfEb!fd4)7#wF
zE>`~fetsb%L;)ul&Q
zYHD_>t~|wfFyQk)=8fzZELwKmIr2niK|)5y>~*bM7jEpFxNzsv){|o2v@;dHe!jlz
zbwh?(o6FJnm6O==?msV@W_@kB-iG7vO=Ca-!Oo#G;mqqzz#;(TeMG=aKr2!NfB^#z
z4Fz2VltN`AFdRU56J~gf7Am8K%1A6!kn;{GS4m?jRB&aZL0_y0fr}Nr&--3AV<}eB
zlYf||1~0y5zWwUt*ZhA?=S93v%%cYQDh0+eQ!z
zPdN-~(4dvW0p6%)BbRWX0v-n5Hd-+=kYC&*TLX%6WG{e`+Uk3gz+b;;z*
zS0)^p_}1a#mj8CgJ!gC0UMiZihClOB@&A3rIo7`qpFViDf3>j6RFA1H;rIK_pJ$T|
z`Ln_GM4;1N$pwP*SGj93%>88YZDo>;T1thn%i=pl2Oev32PLYkNUv9T@`P#nyfiP>
z`5Y%7-?(D2btgy1`kF|c=v!y5-M{g+WKPY=w{I+Uz8$*4Zj!3_<>Q};-PPWWA=g+k
zblz5qB)P;0pSoE0K9fOX*~DvK6TL16B$m%?S9W+M>TRp4aQf-86&t>%O*tx2sW>&L
z{^N;foJT%sdZpRaZSvK!{e9wemR!oN>&IB#Tp!q7b7fFl+o<&J?)GCRr@UGJE6`=-
zj#7`k>w*p>u^wu6DZIF5yOP!=j!J6A?_q$yW
zVlJ#Guz4!8`vrmdsTeKofi?=ShbT=e_Y2dakdY!B0He@niP*X}#^_hCw
zDt)N}$Iq6wFu$+A-swJmb*yya=KM&Ha}`p*GMG+$F*d4I{~E%W#AVnyW#0Qmb}5m%
z9Ko00ivN<`t#*d3=X1@fRMX4)t~<{w9WWGKyVfu%P{_%yg4ZnU_QL8Nc1Kq|a$zs6
zet%nZ^SQmU@+H;F&c3mpc|rfz)0`XipD+LUU*)~{$>t}5D`qa+x8C;sgRdGV%I55P
zcJJP$Xy(VccjgrpTECMk+qiqt`w22XdPC-9{fL{^)qgvva6{b2Yfp{7+Ds6d-4~a$
zsQyNcR&%6u`X*+TWU*h&T7S|X2CaT{*ZypL@UKtI-}Z0L@=2KY@^#gk4z*6XWrsYL
zY)q;$clK_z+qani3SXwojq5wVq$nQN@ZZ)y{gw5@`o->>isr?pX4rK1e)X8aye(C|
zy^?7jll|nd687My9*U{NO
zI6_}99!Flv0OlhQM$1dd38KmA2}ubbe0{<`@P~B-G%!t&U{)89X8h=;!1hs|+0eNo
z+l7NU?tz4m5KC%Pi40>>rHQIfKw%vl+s7w=V)hq)6YNAW0Wq&IASi}gn+c)?RgB8$ZOCUzrt(GW{;&6VTY(;r~QMQ7v
zLRMmtUPW%s*|2E;+Xfh;H;k?WaH$(IONohqQe8xqTTmvqF|)%cGsn~7Dr856;dL+||a?$;<6gt!D~zJ0^bkkQdzH^seq=zmdb)#qG0hhA_?2QgWK4sdp>#nu{va
zvBxu(eN+=LRsMcw)%;Lz??}Dl8mG1fPb=N-yFRs+)z53b@VUeV^0lXTwD)XaWxcxL
zibU4ok|mesUe1~AxN!@Y%U!<-p54dHBr`O9_BNgM3T>M4(J-w~_roi{wU1t@@iuIK
zZsFipc}~ed?Z6j3gI=|-41x}#3xqUm&!yHKDBNby<69m7qFiEzLAJ%VidUIiABHQv
z-po_bb9C7{i3=*pNBAOF3!I*N!8WFM-8zeFADjM`-xlqz+bbzs^4+(6=XRsR^S_>s
zykGzI@}K`zy_4Tee!>|T99tS+UDtAb@s1l2({9H9$QInw{Ww@J&+YEvyyEr^CF^w$
ztW0}%lj}p`btaiLVL4m2o;f_hgVUFL`t2uewad&pdOz0kNGhLNBqw$;STgfL{pU$1
zN+su)PWkuQOG?;C`%9^nU(;rv^FEm>pF#rnCO5V=@#lZEEtB+1{(j5L|CteoPMEyj
z75Sro0{r9Np4p{!q9RK+Y;r>1IbCVfnW-uvDq6=ZSJc)V)=|IBe@y9?{Ii-$|CR-U
zl|S!1zuxd}R_$N;$xELXxlFa27P?;HnB21Zj~dyGT2G#N$&}cb><|6V2Fj0<`1WRA
z2WH6M-1zbYFDy^!j^>Eb95Iq|1S69O18M~atGz%K94dg?
DgTFYF
literal 2059
zcmWIWW@Zs#;Nak3;H#?*WIzI(3@i-3t|5-Po_=on|4uP5Ff#;rvvYt{FhP|C;M6Pv
zQ~}rQ>*(j{<{BKL=j-;__snS@Z(Y5MyxzK6=gyqp9At3C_`%a6JuhD!Pv48Bt5`TA
zUPvC1o;g!1!(!PJ@hLyVmprT7S&{vz=wlHh*a1(H<+AO8#)B}z0l#WdUC$4cttihg
z%2v=-$Vx2ItH{kc8y4+<+d!ml+5STjm*vz{!>rYo>7HfL_3+>kNY$<`nSA-mgd-E*
zI$YfH-|o2QZ13AkMRV5hXFe+azppsQ`uE|}2haAe7FL<+G1Vpfe&6}?Y_cJLHn^S$
zblNMqKydylcP)mwpG>~3OtMi+sW5g~e5dHZV@>X$M3oik^$Jg(FioGA=A}BH&&(LH{O=asX6)fjit`FLs!^MQWd{^{4=q;+Pg928cT-G+e(on
zml)ww7wg_1G{Uk3~Fl|mEPUme(dCwH|u`|x~$w$>allS
z(19e@L(MLQ7uRf8(z?V^DX_sJ?8{NpWh6R)lHs)+LwjhU6~|+_pupbJg62Oy&z}N-3&7Q%_r^FIC|9
z+0qu~_x0C1-N&zvl}_B8AL((fLh4rr(}^#}Mz!i+Ll~2|3_GXHd%wsoB~q6o`0`uv
zU$VQ^&am}-u3438dRgCf=Xs?AhN5fN8YTq_IoVb4nuXn7SiQsU=&DC9?4{N3Z;Ng|
zw^vraqK|}bEE$AA`Q
zj+9Q{#H^Am_KR8TPx`~4)sODlpN$Xx^@;i0{>@oF3G-gQu3FQf)+x8_kjIjZNmb^~
z-mP}~7V}@>%aplsedm`H#lsr@+xn-!vVK^<*nLycyx7zXo9^DP9y6G?rK-1AGRr;<>nbSA(Qu}tPlowCj-^JU!
zmf}n;DxO(p%@=v+SUoc+i(19U_&o*YQ6nDY9KwW_zjN$O
zKv?w#ssT{}yh;PrhXLNGT9GRzQ2mDhwm>FaD^hKUYyzkPL(aIM3Jd}E0hwsk8M0
-
+
-
+
-
-
-
+
+
+
-
-
+
+
-
-
-
-
-
+
+
+
+
+
expectedFoo
@@ -61,6 +61,6 @@
-
+
diff --git a/core/src/test/resources/xwork-sample.xml b/core/src/test/resources/xwork-sample.xml
index 4e62f4c12a..a27985b1bc 100644
--- a/core/src/test/resources/xwork-sample.xml
+++ b/core/src/test/resources/xwork-sample.xml
@@ -34,7 +34,7 @@
execute,input,back,cancel,browse
-
+
17
23
@@ -44,18 +44,18 @@
-
+
-
+
-
+
@@ -63,7 +63,7 @@
-
+
17
23
@@ -71,7 +71,7 @@
-
+
17
23
@@ -79,13 +79,13 @@
-
+
-
{1}
{2}
@@ -93,14 +93,14 @@
-
+
#{ "aliasSource" : "aliasDest", "bar":"baz", "notExisting":"blah" }
-
+
#{ #parameters['name'] : #parameters['value'] }
@@ -110,26 +110,26 @@
-
+
17
23
-
+
-
+
expectedFoo
-
+
foo123
foo123
@@ -137,17 +137,17 @@
-
+
-
+
InfiniteRecursionChain
-
+
chain_without_namespace
%{blah}
@@ -155,7 +155,7 @@
-
+
Foo
@@ -177,19 +177,19 @@
-
+
-
+
expectedFoo
-
+
foo123
foo123
@@ -199,13 +199,13 @@
-
+
-
+
123
bar
@@ -213,21 +213,21 @@
-
+
456
foo
-
+
-
+
-
+
-
+
456
foo
@@ -237,14 +237,14 @@
-
+
-
+
foo
@@ -255,7 +255,7 @@
-
+
edit.vm
edit.vm
@@ -277,18 +277,18 @@
-
+
-
+
somethingelse.vm
-
+
diff --git a/core/src/test/resources/xwork-test-beans.xml b/core/src/test/resources/xwork-test-beans.xml
index dca70917cd..281ea4c58b 100644
--- a/core/src/test/resources/xwork-test-beans.xml
+++ b/core/src/test/resources/xwork-test-beans.xml
@@ -24,7 +24,7 @@
"https://struts.apache.org/dtds/struts-6.0.dtd">
-
+
diff --git a/core/src/test/resources/xwork-test-default.xml b/core/src/test/resources/xwork-test-default.xml
index 5d27f64b88..7f9f3c0ae9 100644
--- a/core/src/test/resources/xwork-test-default.xml
+++ b/core/src/test/resources/xwork-test-default.xml
@@ -25,23 +25,23 @@
-
-
-
+
+
+
-
-
+
+
-
-
-
-
-
+
+
+
+
+
expectedFoo
-
+
diff --git a/core/src/test/resources/xwork-test-validation.xml b/core/src/test/resources/xwork-test-validation.xml
index a570f93350..feb14423a6 100644
--- a/core/src/test/resources/xwork-test-validation.xml
+++ b/core/src/test/resources/xwork-test-validation.xml
@@ -26,22 +26,22 @@
-
-
-
+
+
+
-
-
+
+
-
-
-
+
+
+
true
-
-
+
+
expectedFoo
@@ -66,12 +66,12 @@
-
+
-
+
diff --git a/core/src/test/resources/xwork-zip.zip b/core/src/test/resources/xwork-zip.zip
index 136a03afd5c7439d15be9785c15e4eb83ced53f4..19c19c12af467c9e1b10abb8cbd79861be781907 100644
GIT binary patch
literal 2645
zcmWIWW@Zs#-~hrjC&fqxC}8AaVBlv^V5lh1FUnTXRjA4=(5uMJ2@T<8U{7Sfk_N-2
z72FJrEMFNJ7=VT_Fq{pG_P=c)QnzgXp@_?JYN~OPQkSQtG>NIGu!+76`}RUDFRS3u
ziLwQkxBRy|?l;@po4aS@S4H2Ny!$`TS#H~V_n&M2m)ZiJB|{vN(o+)A0Phd>y~yGTsepH;L4Kc
zoXrfZYSWhgz4u^7gNS;Rxl-^PW7cL>0e^v&;WA&9l{ZD@b$k6TXv^esJh5Sl-IWaS
z1G+nGzZ>X$dMlbW{g_mf(K7z6T#XsoJuU6#vze!m(1j2|!AU-a
z7td`{(-Jh0J8sfz-nc??XL{J*Em2V?i%i`D*R!Wamf!vobuIkCk}sA|W!QdQ+}=}t
zf+IR0fY-Zsp_z}n)?Lf9+a$%jUpriR%QACYM$Y8MutQh0Z>$MX?U0whHfJe|_<)sJd0$hVOa1lP<0gfBg5|yq5;w
zqtbqCuCsjmdwt!k|MBY!C)G}}QOsJl`d#+<{ts0W;?my1#p&rU*SfxUzB8|&(Da>L
zN#ce@?-ft~+#70f@r!M=sGZFguHUakrT6N7Hc$z2x_rEQZ_(krVCmz>1Qxq*FkGhd
zDpAmO>LfR&{5X+adQUd{UHKp9o$U0ib>F$;o(0ohzSQh>nWwd?TyI0jhli&7j_MuG
zd=nS-@}m=5BkSwKOMfk1A^%cx&D_}LrrzaZNw%ENIPPvroLuSV%xtl6Bq7W+UjZYd#cHVU)R2b
zPEwfFs~GsPdft-8+uwK2dD{1NCHI?;)x6@MkYMNdwfE7XO~5h$ItloPJ|bb!w!^~VBl?IA3LTOu-bwpX$5$*
UvVlxu0m3#$28Nx$m||c60A4H}J^%m!
literal 2564
zcmWIWW@Zs#-~d96y4pYnC@|t-VBlp?V5lh1FUr=f$}G^U$ju22;bmZdv*mF7MB|sy
zAiA`In}Lz#Do{qUa#=v3Dfj>XTa)}W>b+PV!CWFSZiPyd+dR-1kET7q~?C?s|+g4TK^wVW4HhfQ;a#W&HacWTg
z#}m&uk9^YfO0%ik!?qGR`hZ%AEh)EdA*vuf3}qjec!gzx~zjce@_M
zTv$#yDx`j8FrD~fY*efMHH0yV%dm6Gy!VUjQX+LZ
zf-k=n|0TOy?F?Jb=bBZirkC|ycb-=|U?{qFtzlB2kds{nuUXjbh1EOkj;?y-!d_ba
z{#8*!YMpY+4tXru
zm{eu%?A>a&Z!!NBzD$`L*LQwNQ9P{Szpa1zE9-~#i`_RB&5KRVu<7po>M?_PTdI0{
zCDS}6``Ja?KYg6rrnzPQoX9QdVs$?moDAgSI2(?pF5I2?xIXpBmpOeiFST!%N_p|b
z{aw7xYbnmuqT-ol)_jq7j@2^~n2kUfEh{A_h$g2eBqe`IfAD{e**?Xj^X->%A30Jy=uJ3vBXUds9B^|p?
zJLnuZpwJpHd2&QdP}H1RlO{z>S|uaE6C@(_Xjyh*ZbnX0N=9C0;-`Ys4=W~oSh)B3
zRYwz`57{~1e*U|&2k0k|zYsoFL@P1)VI_uwt^#tIaUbZx7GRkHqR~7$T4s!v86&vN
zK+Zv+yd{OD%)pYF24$&HlnE|1F6}dN6W|4x8XY}n0uiMKBa;X-qNRachJsoeFz~h!
z#KK-!;%IjSc%vGPTv&k$VHkMZ=)lZCc9D#13n#+w1Pr`wEMdp=0v3C4q>un_RyL4XEI`=C$iR@n0pbAwc~CUt
diff --git a/plugins/async/src/main/java/org/apache/struts2/async/DefaultAsyncManager.java b/plugins/async/src/main/java/org/apache/struts2/async/DefaultAsyncManager.java
index ed2f1c780c..cdba72f9de 100644
--- a/plugins/async/src/main/java/org/apache/struts2/async/DefaultAsyncManager.java
+++ b/plugins/async/src/main/java/org/apache/struts2/async/DefaultAsyncManager.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.async;
-import com.opensymphony.xwork2.AsyncManager;
+import org.apache.struts2.AsyncManager;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.struts2.ServletActionContext;
diff --git a/plugins/async/src/main/resources/struts-plugin.xml b/plugins/async/src/main/resources/struts-plugin.xml
index 012c505174..e57c3776ce 100644
--- a/plugins/async/src/main/resources/struts-plugin.xml
+++ b/plugins/async/src/main/resources/struts-plugin.xml
@@ -24,6 +24,6 @@
"https://struts.apache.org/dtds/struts-6.0.dtd">
-
diff --git a/plugins/async/src/test/java/org/apache/struts2/async/DefaultAsyncManagerTest.java b/plugins/async/src/test/java/org/apache/struts2/async/DefaultAsyncManagerTest.java
index f4bc21bef5..d3a7b6a3d3 100644
--- a/plugins/async/src/test/java/org/apache/struts2/async/DefaultAsyncManagerTest.java
+++ b/plugins/async/src/test/java/org/apache/struts2/async/DefaultAsyncManagerTest.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.async;
-import com.opensymphony.xwork2.XWorkTestCase;
+import org.apache.struts2.XWorkTestCase;
import org.apache.struts2.ServletActionContext;
import org.springframework.mock.web.MockAsyncContext;
import org.springframework.mock.web.MockHttpServletRequest;
diff --git a/plugins/bean-validation/src/main/java/org/apache/struts/beanvalidation/validation/interceptor/BeanValidationInterceptor.java b/plugins/bean-validation/src/main/java/org/apache/struts/beanvalidation/validation/interceptor/BeanValidationInterceptor.java
index fd14205e30..95d95108a3 100644
--- a/plugins/bean-validation/src/main/java/org/apache/struts/beanvalidation/validation/interceptor/BeanValidationInterceptor.java
+++ b/plugins/bean-validation/src/main/java/org/apache/struts/beanvalidation/validation/interceptor/BeanValidationInterceptor.java
@@ -18,14 +18,14 @@
*/
package org.apache.struts.beanvalidation.validation.interceptor;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.ActionProxy;
-import com.opensymphony.xwork2.ModelDriven;
-import com.opensymphony.xwork2.TextProviderFactory;
-import com.opensymphony.xwork2.inject.Inject;
-import com.opensymphony.xwork2.interceptor.MethodFilterInterceptor;
-import com.opensymphony.xwork2.validator.DelegatingValidatorContext;
-import com.opensymphony.xwork2.validator.ValidatorContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.ModelDriven;
+import org.apache.struts2.TextProviderFactory;
+import org.apache.struts2.inject.Inject;
+import org.apache.struts2.interceptor.MethodFilterInterceptor;
+import org.apache.struts2.validator.DelegatingValidatorContext;
+import org.apache.struts2.validator.ValidatorContext;
import org.apache.commons.lang3.BooleanUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.reflect.MethodUtils;
diff --git a/plugins/bean-validation/src/main/java/org/apache/struts/beanvalidation/validation/interceptor/DefaultBeanValidationManager.java b/plugins/bean-validation/src/main/java/org/apache/struts/beanvalidation/validation/interceptor/DefaultBeanValidationManager.java
index 9fb2359d41..6b099a7bd5 100644
--- a/plugins/bean-validation/src/main/java/org/apache/struts/beanvalidation/validation/interceptor/DefaultBeanValidationManager.java
+++ b/plugins/bean-validation/src/main/java/org/apache/struts/beanvalidation/validation/interceptor/DefaultBeanValidationManager.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts.beanvalidation.validation.interceptor;
-import com.opensymphony.xwork2.ObjectFactory;
-import com.opensymphony.xwork2.inject.Inject;
+import org.apache.struts2.ObjectFactory;
+import org.apache.struts2.inject.Inject;
import org.apache.commons.lang3.BooleanUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.LogManager;
diff --git a/plugins/bean-validation/src/test/java/org/apache/struts/beanvalidation/BeanValidationInterceptorTest.java b/plugins/bean-validation/src/test/java/org/apache/struts/beanvalidation/BeanValidationInterceptorTest.java
index 88b16d8213..a5d7a83712 100644
--- a/plugins/bean-validation/src/test/java/org/apache/struts/beanvalidation/BeanValidationInterceptorTest.java
+++ b/plugins/bean-validation/src/test/java/org/apache/struts/beanvalidation/BeanValidationInterceptorTest.java
@@ -18,10 +18,10 @@
*/
package org.apache.struts.beanvalidation;
-import com.opensymphony.xwork2.ActionProxy;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.config.providers.XmlConfigurationProvider;
-import com.opensymphony.xwork2.interceptor.ValidationAware;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.config.providers.XmlConfigurationProvider;
+import org.apache.struts2.interceptor.ValidationAware;
import org.apache.struts.beanvalidation.actions.FieldAction;
import org.apache.struts.beanvalidation.actions.FieldMatchAction;
import org.apache.struts.beanvalidation.actions.ModelDrivenAction;
diff --git a/plugins/bean-validation/src/test/java/org/apache/struts/beanvalidation/VoidResult.java b/plugins/bean-validation/src/test/java/org/apache/struts/beanvalidation/VoidResult.java
index a5f5016022..01acceca23 100644
--- a/plugins/bean-validation/src/test/java/org/apache/struts/beanvalidation/VoidResult.java
+++ b/plugins/bean-validation/src/test/java/org/apache/struts/beanvalidation/VoidResult.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts.beanvalidation;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.Result;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.Result;
public class VoidResult implements Result {
public void execute(ActionInvocation invocation) throws Exception {
diff --git a/plugins/bean-validation/src/test/java/org/apache/struts/beanvalidation/actions/FieldAction.java b/plugins/bean-validation/src/test/java/org/apache/struts/beanvalidation/actions/FieldAction.java
index 1c0470d82a..a615307c99 100644
--- a/plugins/bean-validation/src/test/java/org/apache/struts/beanvalidation/actions/FieldAction.java
+++ b/plugins/bean-validation/src/test/java/org/apache/struts/beanvalidation/actions/FieldAction.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts.beanvalidation.actions;
-import com.opensymphony.xwork2.ActionSupport;
+import org.apache.struts2.ActionSupport;
import org.apache.struts2.interceptor.parameter.StrutsParameter;
import org.hibernate.validator.constraints.NotBlank;
diff --git a/plugins/bean-validation/src/test/java/org/apache/struts/beanvalidation/actions/FieldActionDoExecute.java b/plugins/bean-validation/src/test/java/org/apache/struts/beanvalidation/actions/FieldActionDoExecute.java
index cd96e18ac8..0e8dd7cde5 100644
--- a/plugins/bean-validation/src/test/java/org/apache/struts/beanvalidation/actions/FieldActionDoExecute.java
+++ b/plugins/bean-validation/src/test/java/org/apache/struts/beanvalidation/actions/FieldActionDoExecute.java
@@ -20,8 +20,8 @@
import org.hibernate.validator.constraints.NotBlank;
-import com.opensymphony.xwork2.ActionSupport;
-import com.opensymphony.xwork2.ValidationAwareSupport;
+import org.apache.struts2.ActionSupport;
+import org.apache.struts2.ValidationAwareSupport;
public class FieldActionDoExecute extends ValidationAwareSupport {
@NotBlank(message = "canNotBeBlank")
diff --git a/plugins/bean-validation/src/test/java/org/apache/struts/beanvalidation/actions/FieldMatchAction.java b/plugins/bean-validation/src/test/java/org/apache/struts/beanvalidation/actions/FieldMatchAction.java
index 688661f638..aeb0bd9a91 100644
--- a/plugins/bean-validation/src/test/java/org/apache/struts/beanvalidation/actions/FieldMatchAction.java
+++ b/plugins/bean-validation/src/test/java/org/apache/struts/beanvalidation/actions/FieldMatchAction.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts.beanvalidation.actions;
-import com.opensymphony.xwork2.ActionSupport;
+import org.apache.struts2.ActionSupport;
import org.apache.struts.beanvalidation.constraints.FieldMatch;
import org.apache.struts2.interceptor.parameter.StrutsParameter;
import org.hibernate.validator.constraints.Email;
diff --git a/plugins/bean-validation/src/test/java/org/apache/struts/beanvalidation/actions/ModelDrivenAction.java b/plugins/bean-validation/src/test/java/org/apache/struts/beanvalidation/actions/ModelDrivenAction.java
index 296f42c62b..f7eabca93b 100644
--- a/plugins/bean-validation/src/test/java/org/apache/struts/beanvalidation/actions/ModelDrivenAction.java
+++ b/plugins/bean-validation/src/test/java/org/apache/struts/beanvalidation/actions/ModelDrivenAction.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts.beanvalidation.actions;
-import com.opensymphony.xwork2.ActionSupport;
-import com.opensymphony.xwork2.ModelDriven;
+import org.apache.struts2.ActionSupport;
+import org.apache.struts2.ModelDriven;
import org.apache.struts.beanvalidation.models.Person;
import org.apache.struts2.interceptor.parameter.StrutsParameter;
diff --git a/plugins/bean-validation/src/test/java/org/apache/struts/beanvalidation/actions/ValidateGroupAction.java b/plugins/bean-validation/src/test/java/org/apache/struts/beanvalidation/actions/ValidateGroupAction.java
index 20aabf15bc..a2077f6bdd 100644
--- a/plugins/bean-validation/src/test/java/org/apache/struts/beanvalidation/actions/ValidateGroupAction.java
+++ b/plugins/bean-validation/src/test/java/org/apache/struts/beanvalidation/actions/ValidateGroupAction.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts.beanvalidation.actions;
-import com.opensymphony.xwork2.ActionSupport;
-import com.opensymphony.xwork2.ModelDriven;
+import org.apache.struts2.ActionSupport;
+import org.apache.struts2.ModelDriven;
import org.apache.struts.beanvalidation.constraints.ValidationGroup;
import org.apache.struts.beanvalidation.models.Person;
import org.apache.struts2.interceptor.parameter.StrutsParameter;
diff --git a/plugins/cdi/src/main/java/org/apache/struts2/cdi/CdiObjectFactory.java b/plugins/cdi/src/main/java/org/apache/struts2/cdi/CdiObjectFactory.java
index 30fd312ed2..8ca19502b4 100644
--- a/plugins/cdi/src/main/java/org/apache/struts2/cdi/CdiObjectFactory.java
+++ b/plugins/cdi/src/main/java/org/apache/struts2/cdi/CdiObjectFactory.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts2.cdi;
-import com.opensymphony.xwork2.ObjectFactory;
-import com.opensymphony.xwork2.inject.Inject;
+import org.apache.struts2.ObjectFactory;
+import org.apache.struts2.inject.Inject;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
diff --git a/plugins/cdi/src/main/resources/struts-plugin.xml b/plugins/cdi/src/main/resources/struts-plugin.xml
index a17a81e769..b0458e9409 100644
--- a/plugins/cdi/src/main/resources/struts-plugin.xml
+++ b/plugins/cdi/src/main/resources/struts-plugin.xml
@@ -25,7 +25,7 @@
-
+
diff --git a/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ActionNamesAction.java b/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ActionNamesAction.java
index 0686f21925..f630c156b7 100644
--- a/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ActionNamesAction.java
+++ b/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ActionNamesAction.java
@@ -18,9 +18,9 @@
*/
package org.apache.struts2.config_browser;
-import com.opensymphony.xwork2.ActionSupport;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.inject.Inject;
+import org.apache.struts2.ActionSupport;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.inject.Inject;
import org.apache.commons.text.StringEscapeUtils;
import org.apache.struts2.StrutsConstants;
import org.apache.struts2.interceptor.parameter.StrutsParameter;
diff --git a/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ConfigurationHelper.java b/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ConfigurationHelper.java
index 296ae9a9aa..95e1ff3091 100644
--- a/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ConfigurationHelper.java
+++ b/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ConfigurationHelper.java
@@ -18,10 +18,10 @@
*/
package org.apache.struts2.config_browser;
-import com.opensymphony.xwork2.config.Configuration;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.inject.Inject;
-import com.opensymphony.xwork2.util.ResolverUtil;
+import org.apache.struts2.config.Configuration;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.inject.Inject;
+import org.apache.struts2.util.ResolverUtil;
import java.io.IOException;
import java.net.URL;
@@ -36,14 +36,14 @@
* ConfigurationHelper
*/
public class ConfigurationHelper {
-
+
private Configuration configuration;
@Inject
public void setConfiguration(Configuration config) {
this.configuration = config;
}
-
+
public Set getNamespaces() {
Set namespaces = Collections.emptySet();
Map> allActionConfigs = configuration.getRuntimeConfiguration().getActionConfigs();
@@ -76,7 +76,7 @@ public ActionConfig getActionConfig(String namespace, String actionName) {
}
return config;
}
-
+
public List getJarProperties() throws IOException {
ResolverUtil resolver = new ResolverUtil();
List poms = new ArrayList();
diff --git a/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ListValidatorsAction.java b/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ListValidatorsAction.java
index 5a3344cf11..7de2093185 100644
--- a/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ListValidatorsAction.java
+++ b/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ListValidatorsAction.java
@@ -18,12 +18,12 @@
*/
package org.apache.struts2.config_browser;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionSupport;
-import com.opensymphony.xwork2.inject.Inject;
-import com.opensymphony.xwork2.util.ClassLoaderUtil;
-import com.opensymphony.xwork2.validator.ActionValidatorManager;
-import com.opensymphony.xwork2.validator.Validator;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionSupport;
+import org.apache.struts2.inject.Inject;
+import org.apache.struts2.util.ClassLoaderUtil;
+import org.apache.struts2.validator.ActionValidatorManager;
+import org.apache.struts2.validator.Validator;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.struts2.interceptor.parameter.StrutsParameter;
diff --git a/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ShowBeansAction.java b/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ShowBeansAction.java
index 53f8eeebc2..0c2374c13d 100644
--- a/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ShowBeansAction.java
+++ b/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ShowBeansAction.java
@@ -18,12 +18,12 @@
*/
package org.apache.struts2.config_browser;
-import com.opensymphony.xwork2.ActionProxyFactory;
-import com.opensymphony.xwork2.ObjectFactory;
-import com.opensymphony.xwork2.conversion.ObjectTypeDeterminer;
-import com.opensymphony.xwork2.conversion.impl.XWorkConverter;
-import com.opensymphony.xwork2.inject.Container;
-import com.opensymphony.xwork2.inject.Inject;
+import org.apache.struts2.ActionProxyFactory;
+import org.apache.struts2.ObjectFactory;
+import org.apache.struts2.conversion.ObjectTypeDeterminer;
+import org.apache.struts2.conversion.impl.XWorkConverter;
+import org.apache.struts2.inject.Container;
+import org.apache.struts2.inject.Inject;
import org.apache.struts2.StrutsConstants;
import org.apache.struts2.components.UrlRenderer;
import org.apache.struts2.dispatcher.mapper.ActionMapper;
diff --git a/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ShowConfigAction.java b/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ShowConfigAction.java
index 25547c3958..ed20b907fe 100644
--- a/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ShowConfigAction.java
+++ b/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ShowConfigAction.java
@@ -18,10 +18,10 @@
*/
package org.apache.struts2.config_browser;
-import com.opensymphony.xwork2.ObjectFactory;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.inject.Inject;
-import com.opensymphony.xwork2.util.reflection.ReflectionProvider;
+import org.apache.struts2.ObjectFactory;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.inject.Inject;
+import org.apache.struts2.util.reflection.ReflectionProvider;
import org.apache.commons.text.StringEscapeUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
diff --git a/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ShowConstantsAction.java b/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ShowConstantsAction.java
index abd6711cd5..a54bb5394d 100644
--- a/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ShowConstantsAction.java
+++ b/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ShowConstantsAction.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts2.config_browser;
-import com.opensymphony.xwork2.inject.Container;
-import com.opensymphony.xwork2.inject.Inject;
+import org.apache.struts2.inject.Container;
+import org.apache.struts2.inject.Inject;
import java.util.HashMap;
import java.util.Map;
diff --git a/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ShowJarsAction.java b/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ShowJarsAction.java
index 81135062dd..d71ede8171 100644
--- a/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ShowJarsAction.java
+++ b/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ShowJarsAction.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.config_browser;
-import com.opensymphony.xwork2.util.ClassLoaderUtil;
+import org.apache.struts2.util.ClassLoaderUtil;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
diff --git a/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ShowValidatorAction.java b/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ShowValidatorAction.java
index 524cee0212..8a84f6a564 100644
--- a/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ShowValidatorAction.java
+++ b/plugins/config-browser/src/main/java/org/apache/struts2/config_browser/ShowValidatorAction.java
@@ -18,11 +18,11 @@
*/
package org.apache.struts2.config_browser;
-import com.opensymphony.xwork2.inject.Inject;
-import com.opensymphony.xwork2.util.reflection.ReflectionContextFactory;
-import com.opensymphony.xwork2.util.reflection.ReflectionException;
-import com.opensymphony.xwork2.util.reflection.ReflectionProvider;
-import com.opensymphony.xwork2.validator.Validator;
+import org.apache.struts2.inject.Inject;
+import org.apache.struts2.util.reflection.ReflectionContextFactory;
+import org.apache.struts2.util.reflection.ReflectionException;
+import org.apache.struts2.util.reflection.ReflectionProvider;
+import org.apache.struts2.validator.Validator;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.struts2.interceptor.parameter.StrutsParameter;
diff --git a/plugins/convention/src/main/java/org/apache/struts2/convention/AbstractActionNameBuilder.java b/plugins/convention/src/main/java/org/apache/struts2/convention/AbstractActionNameBuilder.java
index 9e95dae5dc..bf00609790 100644
--- a/plugins/convention/src/main/java/org/apache/struts2/convention/AbstractActionNameBuilder.java
+++ b/plugins/convention/src/main/java/org/apache/struts2/convention/AbstractActionNameBuilder.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts2.convention;
-import com.opensymphony.xwork2.inject.Inject;
-import com.opensymphony.xwork2.util.TextParseUtil;
+import org.apache.struts2.inject.Inject;
+import org.apache.struts2.util.TextParseUtil;
import org.apache.commons.lang3.StringUtils;
import java.util.Collections;
diff --git a/plugins/convention/src/main/java/org/apache/struts2/convention/ClasspathConfigurationProvider.java b/plugins/convention/src/main/java/org/apache/struts2/convention/ClasspathConfigurationProvider.java
index 71ac094cfb..90416adb12 100644
--- a/plugins/convention/src/main/java/org/apache/struts2/convention/ClasspathConfigurationProvider.java
+++ b/plugins/convention/src/main/java/org/apache/struts2/convention/ClasspathConfigurationProvider.java
@@ -18,13 +18,13 @@
*/
package org.apache.struts2.convention;
-import com.opensymphony.xwork2.config.Configuration;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.config.ConfigurationProvider;
-import com.opensymphony.xwork2.inject.Container;
-import com.opensymphony.xwork2.inject.ContainerBuilder;
-import com.opensymphony.xwork2.inject.Inject;
-import com.opensymphony.xwork2.util.location.LocatableProperties;
+import org.apache.struts2.config.Configuration;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.config.ConfigurationProvider;
+import org.apache.struts2.inject.Container;
+import org.apache.struts2.inject.ContainerBuilder;
+import org.apache.struts2.inject.Inject;
+import org.apache.struts2.util.location.LocatableProperties;
import org.apache.commons.lang3.BooleanUtils;
import org.apache.struts2.StrutsConstants;
import org.apache.struts2.dispatcher.Dispatcher;
diff --git a/plugins/convention/src/main/java/org/apache/struts2/convention/ClasspathPackageProvider.java b/plugins/convention/src/main/java/org/apache/struts2/convention/ClasspathPackageProvider.java
index 3ffec8488c..27d2b2ee32 100644
--- a/plugins/convention/src/main/java/org/apache/struts2/convention/ClasspathPackageProvider.java
+++ b/plugins/convention/src/main/java/org/apache/struts2/convention/ClasspathPackageProvider.java
@@ -18,11 +18,11 @@
*/
package org.apache.struts2.convention;
-import com.opensymphony.xwork2.config.Configuration;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.config.PackageProvider;
-import com.opensymphony.xwork2.inject.Container;
-import com.opensymphony.xwork2.inject.Inject;
+import org.apache.struts2.config.Configuration;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.config.PackageProvider;
+import org.apache.struts2.inject.Container;
+import org.apache.struts2.inject.Inject;
/**
*
diff --git a/plugins/convention/src/main/java/org/apache/struts2/convention/ConventionUnknownHandler.java b/plugins/convention/src/main/java/org/apache/struts2/convention/ConventionUnknownHandler.java
index f155a9aa92..c5be55ffce 100644
--- a/plugins/convention/src/main/java/org/apache/struts2/convention/ConventionUnknownHandler.java
+++ b/plugins/convention/src/main/java/org/apache/struts2/convention/ConventionUnknownHandler.java
@@ -18,15 +18,15 @@
*/
package org.apache.struts2.convention;
-import com.opensymphony.xwork2.*;
-import com.opensymphony.xwork2.config.Configuration;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.config.entities.*;
-import com.opensymphony.xwork2.config.providers.InterceptorBuilder;
-import com.opensymphony.xwork2.inject.Container;
-import com.opensymphony.xwork2.inject.Inject;
-import com.opensymphony.xwork2.util.ClassLoaderUtil;
-import com.opensymphony.xwork2.util.TextParseUtil;
+import org.apache.struts2.*;
+import org.apache.struts2.config.Configuration;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.config.entities.*;
+import org.apache.struts2.config.providers.InterceptorBuilder;
+import org.apache.struts2.inject.Container;
+import org.apache.struts2.inject.Inject;
+import org.apache.struts2.util.ClassLoaderUtil;
+import org.apache.struts2.util.TextParseUtil;
import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
diff --git a/plugins/convention/src/main/java/org/apache/struts2/convention/ConventionsService.java b/plugins/convention/src/main/java/org/apache/struts2/convention/ConventionsService.java
index 3548c9d4cb..7a3ef6ec82 100644
--- a/plugins/convention/src/main/java/org/apache/struts2/convention/ConventionsService.java
+++ b/plugins/convention/src/main/java/org/apache/struts2/convention/ConventionsService.java
@@ -20,9 +20,9 @@
import java.util.Map;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.config.entities.PackageConfig;
-import com.opensymphony.xwork2.config.entities.ResultTypeConfig;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.config.entities.PackageConfig;
+import org.apache.struts2.config.entities.ResultTypeConfig;
/**
*
diff --git a/plugins/convention/src/main/java/org/apache/struts2/convention/ConventionsServiceImpl.java b/plugins/convention/src/main/java/org/apache/struts2/convention/ConventionsServiceImpl.java
index 81dd0d398d..fb58c4dbdf 100644
--- a/plugins/convention/src/main/java/org/apache/struts2/convention/ConventionsServiceImpl.java
+++ b/plugins/convention/src/main/java/org/apache/struts2/convention/ConventionsServiceImpl.java
@@ -18,13 +18,13 @@
*/
package org.apache.struts2.convention;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.config.entities.PackageConfig;
-import com.opensymphony.xwork2.config.entities.ResultTypeConfig;
-import com.opensymphony.xwork2.inject.Inject;
-import com.opensymphony.xwork2.util.AnnotationUtils;
-import com.opensymphony.xwork2.util.ClassLoaderUtil;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.config.entities.PackageConfig;
+import org.apache.struts2.config.entities.ResultTypeConfig;
+import org.apache.struts2.inject.Inject;
+import org.apache.struts2.util.AnnotationUtils;
+import org.apache.struts2.util.ClassLoaderUtil;
import org.apache.struts2.convention.annotation.ResultPath;
import java.util.HashMap;
diff --git a/plugins/convention/src/main/java/org/apache/struts2/convention/DefaultActionNameBuilder.java b/plugins/convention/src/main/java/org/apache/struts2/convention/DefaultActionNameBuilder.java
index 46d6797afd..73dea0e6ae 100644
--- a/plugins/convention/src/main/java/org/apache/struts2/convention/DefaultActionNameBuilder.java
+++ b/plugins/convention/src/main/java/org/apache/struts2/convention/DefaultActionNameBuilder.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.convention;
-import com.opensymphony.xwork2.inject.Inject;
+import org.apache.struts2.inject.Inject;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
diff --git a/plugins/convention/src/main/java/org/apache/struts2/convention/DefaultClassFinder.java b/plugins/convention/src/main/java/org/apache/struts2/convention/DefaultClassFinder.java
index 9b6fdb86d8..500f39c740 100644
--- a/plugins/convention/src/main/java/org/apache/struts2/convention/DefaultClassFinder.java
+++ b/plugins/convention/src/main/java/org/apache/struts2/convention/DefaultClassFinder.java
@@ -18,12 +18,12 @@
*/
package org.apache.struts2.convention;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.FileManager;
-import com.opensymphony.xwork2.FileManagerFactory;
-import com.opensymphony.xwork2.util.finder.ClassFinder;
-import com.opensymphony.xwork2.util.finder.ClassLoaderInterface;
-import com.opensymphony.xwork2.util.finder.Test;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.FileManager;
+import org.apache.struts2.FileManagerFactory;
+import org.apache.struts2.util.finder.ClassFinder;
+import org.apache.struts2.util.finder.ClassLoaderInterface;
+import org.apache.struts2.util.finder.Test;
import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
diff --git a/plugins/convention/src/main/java/org/apache/struts2/convention/DefaultInterceptorMapBuilder.java b/plugins/convention/src/main/java/org/apache/struts2/convention/DefaultInterceptorMapBuilder.java
index 013421aa93..0adea13118 100644
--- a/plugins/convention/src/main/java/org/apache/struts2/convention/DefaultInterceptorMapBuilder.java
+++ b/plugins/convention/src/main/java/org/apache/struts2/convention/DefaultInterceptorMapBuilder.java
@@ -18,13 +18,13 @@
*/
package org.apache.struts2.convention;
-import com.opensymphony.xwork2.ObjectFactory;
-import com.opensymphony.xwork2.config.Configuration;
-import com.opensymphony.xwork2.config.entities.InterceptorMapping;
-import com.opensymphony.xwork2.config.entities.PackageConfig;
-import com.opensymphony.xwork2.config.providers.InterceptorBuilder;
-import com.opensymphony.xwork2.inject.Inject;
-import com.opensymphony.xwork2.util.AnnotationUtils;
+import org.apache.struts2.ObjectFactory;
+import org.apache.struts2.config.Configuration;
+import org.apache.struts2.config.entities.InterceptorMapping;
+import org.apache.struts2.config.entities.PackageConfig;
+import org.apache.struts2.config.providers.InterceptorBuilder;
+import org.apache.struts2.inject.Inject;
+import org.apache.struts2.util.AnnotationUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.struts2.convention.annotation.Action;
diff --git a/plugins/convention/src/main/java/org/apache/struts2/convention/DefaultResultMapBuilder.java b/plugins/convention/src/main/java/org/apache/struts2/convention/DefaultResultMapBuilder.java
index 0bc877a419..9de94c217a 100644
--- a/plugins/convention/src/main/java/org/apache/struts2/convention/DefaultResultMapBuilder.java
+++ b/plugins/convention/src/main/java/org/apache/struts2/convention/DefaultResultMapBuilder.java
@@ -18,18 +18,18 @@
*/
package org.apache.struts2.convention;
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.config.entities.PackageConfig;
-import com.opensymphony.xwork2.config.entities.ResultConfig;
-import com.opensymphony.xwork2.config.entities.ResultTypeConfig;
-import com.opensymphony.xwork2.inject.Container;
-import com.opensymphony.xwork2.inject.Inject;
-import com.opensymphony.xwork2.util.finder.ClassLoaderInterface;
-import com.opensymphony.xwork2.util.finder.ClassLoaderInterfaceDelegate;
-import com.opensymphony.xwork2.util.finder.ResourceFinder;
-import com.opensymphony.xwork2.util.finder.Test;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.config.entities.PackageConfig;
+import org.apache.struts2.config.entities.ResultConfig;
+import org.apache.struts2.config.entities.ResultTypeConfig;
+import org.apache.struts2.inject.Container;
+import org.apache.struts2.inject.Inject;
+import org.apache.struts2.util.finder.ClassLoaderInterface;
+import org.apache.struts2.util.finder.ClassLoaderInterfaceDelegate;
+import org.apache.struts2.util.finder.ResourceFinder;
+import org.apache.struts2.util.finder.Test;
import jakarta.servlet.ServletContext;
import org.apache.commons.lang3.BooleanUtils;
import org.apache.commons.lang3.ObjectUtils;
diff --git a/plugins/convention/src/main/java/org/apache/struts2/convention/InterceptorMapBuilder.java b/plugins/convention/src/main/java/org/apache/struts2/convention/InterceptorMapBuilder.java
index 5f2d0a4fb7..88fbe43d9d 100644
--- a/plugins/convention/src/main/java/org/apache/struts2/convention/InterceptorMapBuilder.java
+++ b/plugins/convention/src/main/java/org/apache/struts2/convention/InterceptorMapBuilder.java
@@ -22,8 +22,8 @@
import org.apache.struts2.convention.annotation.Action;
-import com.opensymphony.xwork2.config.entities.InterceptorMapping;
-import com.opensymphony.xwork2.config.entities.PackageConfig;
+import org.apache.struts2.config.entities.InterceptorMapping;
+import org.apache.struts2.config.entities.PackageConfig;
/**
*
diff --git a/plugins/convention/src/main/java/org/apache/struts2/convention/PackageBasedActionConfigBuilder.java b/plugins/convention/src/main/java/org/apache/struts2/convention/PackageBasedActionConfigBuilder.java
index 71331d4efc..f993ea153f 100644
--- a/plugins/convention/src/main/java/org/apache/struts2/convention/PackageBasedActionConfigBuilder.java
+++ b/plugins/convention/src/main/java/org/apache/struts2/convention/PackageBasedActionConfigBuilder.java
@@ -18,30 +18,30 @@
*/
package org.apache.struts2.convention;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.FileManager;
-import com.opensymphony.xwork2.FileManagerFactory;
-import com.opensymphony.xwork2.ObjectFactory;
-import com.opensymphony.xwork2.config.Configuration;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.config.ConfigurationUtil;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.config.entities.ExceptionMappingConfig;
-import com.opensymphony.xwork2.config.entities.InterceptorMapping;
-import com.opensymphony.xwork2.config.entities.PackageConfig;
-import com.opensymphony.xwork2.config.entities.ResultConfig;
-import com.opensymphony.xwork2.inject.Container;
-import com.opensymphony.xwork2.inject.Inject;
-import com.opensymphony.xwork2.util.AnnotationUtils;
-import com.opensymphony.xwork2.util.TextParseUtil;
-import com.opensymphony.xwork2.util.WildcardHelper;
-import com.opensymphony.xwork2.util.classloader.ReloadingClassLoader;
-import com.opensymphony.xwork2.util.finder.ClassFinder;
-import com.opensymphony.xwork2.util.finder.ClassFinderFactory;
-import com.opensymphony.xwork2.util.finder.ClassLoaderInterface;
-import com.opensymphony.xwork2.util.finder.ClassLoaderInterfaceDelegate;
-import com.opensymphony.xwork2.util.finder.Test;
-import com.opensymphony.xwork2.util.finder.UrlSet;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.FileManager;
+import org.apache.struts2.FileManagerFactory;
+import org.apache.struts2.ObjectFactory;
+import org.apache.struts2.config.Configuration;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.config.ConfigurationUtil;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.config.entities.ExceptionMappingConfig;
+import org.apache.struts2.config.entities.InterceptorMapping;
+import org.apache.struts2.config.entities.PackageConfig;
+import org.apache.struts2.config.entities.ResultConfig;
+import org.apache.struts2.inject.Container;
+import org.apache.struts2.inject.Inject;
+import org.apache.struts2.util.AnnotationUtils;
+import org.apache.struts2.util.TextParseUtil;
+import org.apache.struts2.util.WildcardHelper;
+import org.apache.struts2.util.classloader.ReloadingClassLoader;
+import org.apache.struts2.util.finder.ClassFinder;
+import org.apache.struts2.util.finder.ClassFinderFactory;
+import org.apache.struts2.util.finder.ClassLoaderInterface;
+import org.apache.struts2.util.finder.ClassLoaderInterfaceDelegate;
+import org.apache.struts2.util.finder.Test;
+import org.apache.struts2.util.finder.UrlSet;
import org.apache.commons.lang3.BooleanUtils;
import org.apache.commons.lang3.ObjectUtils;
import org.apache.commons.lang3.StringUtils;
@@ -259,7 +259,7 @@ public void setActionPackages(String actionPackages) {
}
/**
- * @param checkImplementsAction (Optional) Map classes that implement com.opensymphony.xwork2.Action
+ * @param checkImplementsAction (Optional) Map classes that implement org.apache.struts2.Action
* as actions
*/
@Inject(value = ConventionConstants.CONVENTION_ACTION_CHECK_IMPLEMENTS_ACTION, required = false)
@@ -545,7 +545,7 @@ private UrlSet buildUrlSet(List resourceUrls) throws IOException {
/**
* Note that we can't include the test for {@link #actionSuffix} here
* because a class is included if its name ends in {@link #actionSuffix} OR
- * it implements {@link com.opensymphony.xwork2.Action}. Since the whole
+ * it implements {@link org.apache.struts2.Action}. Since the whole
* goal is to avoid loading the class if we don't have to, the (actionSuffix
* || implements Action) test will have to remain until later. See
* {@link #getActionClassTest()} for the test performed on the loaded
@@ -654,13 +654,13 @@ public boolean test(ClassFinder.ClassInfo classInfo) {
// already been called to in the initial call to ClassFinder?
// When some action class passes our package filter in that step,
// ClassFinder automatically includes parent classes of that action,
- // such as com.opensymphony.xwork2.ActionSupport. We repeat the
+ // such as org.apache.struts2.ActionSupport. We repeat the
// package filter here to filter out such results.
boolean inPackage = includeClassNameInActionScan(classInfo.getName());
boolean nameMatches = matchesSuffix(classInfo.getName());
try {
- return inPackage && (nameMatches || (checkImplementsAction && com.opensymphony.xwork2.Action.class.isAssignableFrom(classInfo.get())));
+ return inPackage && (nameMatches || (checkImplementsAction && org.apache.struts2.Action.class.isAssignableFrom(classInfo.get())));
} catch (ClassNotFoundException ex) {
LOG.error("Unable to load class [{}]", classInfo.getName(), ex);
return false;
diff --git a/plugins/convention/src/main/java/org/apache/struts2/convention/ResultMapBuilder.java b/plugins/convention/src/main/java/org/apache/struts2/convention/ResultMapBuilder.java
index b120c0cc17..797f7214c5 100644
--- a/plugins/convention/src/main/java/org/apache/struts2/convention/ResultMapBuilder.java
+++ b/plugins/convention/src/main/java/org/apache/struts2/convention/ResultMapBuilder.java
@@ -22,8 +22,8 @@
import org.apache.struts2.convention.annotation.Action;
-import com.opensymphony.xwork2.config.entities.PackageConfig;
-import com.opensymphony.xwork2.config.entities.ResultConfig;
+import org.apache.struts2.config.entities.PackageConfig;
+import org.apache.struts2.config.entities.ResultConfig;
/**
*
diff --git a/plugins/convention/src/main/java/org/apache/struts2/convention/SEOActionNameBuilder.java b/plugins/convention/src/main/java/org/apache/struts2/convention/SEOActionNameBuilder.java
index 1f23ba8619..872b7e6525 100644
--- a/plugins/convention/src/main/java/org/apache/struts2/convention/SEOActionNameBuilder.java
+++ b/plugins/convention/src/main/java/org/apache/struts2/convention/SEOActionNameBuilder.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.convention;
-import com.opensymphony.xwork2.inject.Inject;
+import org.apache.struts2.inject.Inject;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.LogManager;
diff --git a/plugins/convention/src/main/java/org/apache/struts2/convention/StringTools.java b/plugins/convention/src/main/java/org/apache/struts2/convention/StringTools.java
index b24deeca18..41919ae4f2 100644
--- a/plugins/convention/src/main/java/org/apache/struts2/convention/StringTools.java
+++ b/plugins/convention/src/main/java/org/apache/struts2/convention/StringTools.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.convention;
-import com.opensymphony.xwork2.config.ConfigurationException;
+import org.apache.struts2.config.ConfigurationException;
import java.util.HashMap;
import java.util.Map;
diff --git a/plugins/convention/src/main/java/org/apache/struts2/convention/annotation/AllowedMethods.java b/plugins/convention/src/main/java/org/apache/struts2/convention/annotation/AllowedMethods.java
index 05203b5670..5f61dba473 100644
--- a/plugins/convention/src/main/java/org/apache/struts2/convention/annotation/AllowedMethods.java
+++ b/plugins/convention/src/main/java/org/apache/struts2/convention/annotation/AllowedMethods.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.convention.annotation;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
+import org.apache.struts2.config.entities.ActionConfig;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
diff --git a/plugins/convention/src/main/java/org/apache/struts2/convention/annotation/Result.java b/plugins/convention/src/main/java/org/apache/struts2/convention/annotation/Result.java
index 84a91034dd..d55fd6019d 100644
--- a/plugins/convention/src/main/java/org/apache/struts2/convention/annotation/Result.java
+++ b/plugins/convention/src/main/java/org/apache/struts2/convention/annotation/Result.java
@@ -67,7 +67,7 @@
* @return The name of the result mapping. This is the value that is returned from the action
* method and is used to associate a location with a return value.
*/
- String[] name() default com.opensymphony.xwork2.Action.SUCCESS;
+ String[] name() default org.apache.struts2.Action.SUCCESS;
/**
* @return The location of the result within the web application or anywhere on disk. This location
diff --git a/plugins/convention/src/main/resources/struts-plugin.xml b/plugins/convention/src/main/resources/struts-plugin.xml
index c80ca9b363..541c79f0c1 100644
--- a/plugins/convention/src/main/resources/struts-plugin.xml
+++ b/plugins/convention/src/main/resources/struts-plugin.xml
@@ -25,7 +25,7 @@
"https://struts.apache.org/dtds/struts-6.0.dtd">
-
+
@@ -33,8 +33,8 @@
-
-
+
+
diff --git a/plugins/convention/src/test/java/actions/MessageAction.java b/plugins/convention/src/test/java/actions/MessageAction.java
index 3c963d5ca0..718fea3209 100644
--- a/plugins/convention/src/test/java/actions/MessageAction.java
+++ b/plugins/convention/src/test/java/actions/MessageAction.java
@@ -18,7 +18,7 @@
*/
package actions;
-import com.opensymphony.xwork2.ActionSupport;
+import org.apache.struts2.ActionSupport;
/**
* Example action, called by {@link org.apache.struts2.convention.ConventionJUnit4Test}.
diff --git a/plugins/convention/src/test/java/org/apache/struts2/convention/ConventionUnknownHandlerTest.java b/plugins/convention/src/test/java/org/apache/struts2/convention/ConventionUnknownHandlerTest.java
index 6f2d491d9a..ea33f10cd6 100644
--- a/plugins/convention/src/test/java/org/apache/struts2/convention/ConventionUnknownHandlerTest.java
+++ b/plugins/convention/src/test/java/org/apache/struts2/convention/ConventionUnknownHandlerTest.java
@@ -18,12 +18,12 @@
*/
package org.apache.struts2.convention;
-import com.opensymphony.xwork2.config.Configuration;
-import com.opensymphony.xwork2.config.RuntimeConfiguration;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.config.entities.PackageConfig;
-import com.opensymphony.xwork2.config.entities.ResultTypeConfig;
-import com.opensymphony.xwork2.inject.Container;
+import org.apache.struts2.config.Configuration;
+import org.apache.struts2.config.RuntimeConfiguration;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.config.entities.PackageConfig;
+import org.apache.struts2.config.entities.ResultTypeConfig;
+import org.apache.struts2.inject.Container;
import junit.framework.TestCase;
import org.apache.struts2.result.ServletDispatcherResult;
diff --git a/plugins/convention/src/test/java/org/apache/struts2/convention/DefaultResultMapBuilderTest.java b/plugins/convention/src/test/java/org/apache/struts2/convention/DefaultResultMapBuilderTest.java
index 763ddf1cca..0b7ab7c6ed 100644
--- a/plugins/convention/src/test/java/org/apache/struts2/convention/DefaultResultMapBuilderTest.java
+++ b/plugins/convention/src/test/java/org/apache/struts2/convention/DefaultResultMapBuilderTest.java
@@ -18,10 +18,10 @@
*/
package org.apache.struts2.convention;
-import com.opensymphony.xwork2.config.entities.PackageConfig;
-import com.opensymphony.xwork2.config.entities.ResultConfig;
-import com.opensymphony.xwork2.config.entities.ResultTypeConfig;
-import com.opensymphony.xwork2.inject.Container;
+import org.apache.struts2.config.entities.PackageConfig;
+import org.apache.struts2.config.entities.ResultConfig;
+import org.apache.struts2.config.entities.ResultTypeConfig;
+import org.apache.struts2.inject.Container;
import junit.framework.TestCase;
import org.apache.struts2.convention.actions.NoAnnotationAction;
import org.apache.struts2.convention.actions.result.*;
diff --git a/plugins/convention/src/test/java/org/apache/struts2/convention/PackageBasedActionConfigBuilderTest.java b/plugins/convention/src/test/java/org/apache/struts2/convention/PackageBasedActionConfigBuilderTest.java
index 5fef87760d..fb80fae666 100644
--- a/plugins/convention/src/test/java/org/apache/struts2/convention/PackageBasedActionConfigBuilderTest.java
+++ b/plugins/convention/src/test/java/org/apache/struts2/convention/PackageBasedActionConfigBuilderTest.java
@@ -18,31 +18,31 @@
*/
package org.apache.struts2.convention;
-import com.opensymphony.xwork2.ActionChainResult;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.FileManager;
-import com.opensymphony.xwork2.FileManagerFactory;
-import com.opensymphony.xwork2.ObjectFactory;
-import com.opensymphony.xwork2.Result;
-import com.opensymphony.xwork2.config.Configuration;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.config.entities.ExceptionMappingConfig;
-import com.opensymphony.xwork2.config.entities.InterceptorConfig;
-import com.opensymphony.xwork2.config.entities.InterceptorMapping;
-import com.opensymphony.xwork2.config.entities.InterceptorStackConfig;
-import com.opensymphony.xwork2.config.entities.PackageConfig;
-import com.opensymphony.xwork2.config.entities.ResultConfig;
-import com.opensymphony.xwork2.config.entities.ResultTypeConfig;
-import com.opensymphony.xwork2.config.impl.DefaultConfiguration;
-import com.opensymphony.xwork2.factory.DefaultInterceptorFactory;
-import com.opensymphony.xwork2.factory.DefaultResultFactory;
-import com.opensymphony.xwork2.inject.Container;
-import com.opensymphony.xwork2.inject.Scope.Strategy;
-import com.opensymphony.xwork2.ognl.OgnlReflectionProvider;
-import com.opensymphony.xwork2.util.TextParseUtil;
-import com.opensymphony.xwork2.util.fs.DefaultFileManager;
-import com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory;
-import com.opensymphony.xwork2.util.reflection.ReflectionException;
+import org.apache.struts2.ActionChainResult;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.FileManager;
+import org.apache.struts2.FileManagerFactory;
+import org.apache.struts2.ObjectFactory;
+import org.apache.struts2.Result;
+import org.apache.struts2.config.Configuration;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.config.entities.ExceptionMappingConfig;
+import org.apache.struts2.config.entities.InterceptorConfig;
+import org.apache.struts2.config.entities.InterceptorMapping;
+import org.apache.struts2.config.entities.InterceptorStackConfig;
+import org.apache.struts2.config.entities.PackageConfig;
+import org.apache.struts2.config.entities.ResultConfig;
+import org.apache.struts2.config.entities.ResultTypeConfig;
+import org.apache.struts2.config.impl.DefaultConfiguration;
+import org.apache.struts2.factory.DefaultInterceptorFactory;
+import org.apache.struts2.factory.DefaultResultFactory;
+import org.apache.struts2.inject.Container;
+import org.apache.struts2.inject.Scope.Strategy;
+import org.apache.struts2.ognl.OgnlReflectionProvider;
+import org.apache.struts2.util.TextParseUtil;
+import org.apache.struts2.util.fs.DefaultFileManager;
+import org.apache.struts2.util.fs.DefaultFileManagerFactory;
+import org.apache.struts2.util.reflection.ReflectionException;
import junit.framework.TestCase;
import org.apache.commons.lang3.StringUtils;
import org.apache.struts2.convention.actions.DefaultResultPathAction;
diff --git a/plugins/convention/src/test/java/org/apache/struts2/convention/TestInterceptor.java b/plugins/convention/src/test/java/org/apache/struts2/convention/TestInterceptor.java
index 14a01f880c..ac8dbf9a0c 100644
--- a/plugins/convention/src/test/java/org/apache/struts2/convention/TestInterceptor.java
+++ b/plugins/convention/src/test/java/org/apache/struts2/convention/TestInterceptor.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts2.convention;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.interceptor.AbstractInterceptor;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.interceptor.AbstractInterceptor;
public class TestInterceptor extends AbstractInterceptor {
private String string1;
diff --git a/plugins/convention/src/test/java/org/apache/struts2/convention/actions/Skip.java b/plugins/convention/src/test/java/org/apache/struts2/convention/actions/Skip.java
index 105832760f..3af91c99fa 100644
--- a/plugins/convention/src/test/java/org/apache/struts2/convention/actions/Skip.java
+++ b/plugins/convention/src/test/java/org/apache/struts2/convention/actions/Skip.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.convention.actions;
-import com.opensymphony.xwork2.Action;
+import org.apache.struts2.Action;
public class Skip implements Action {
public String execute() throws Exception {
diff --git a/plugins/convention/src/test/java/org/apache/struts2/convention/actions/action/TestBase.java b/plugins/convention/src/test/java/org/apache/struts2/convention/actions/action/TestBase.java
index 21520312e1..fc8134573e 100644
--- a/plugins/convention/src/test/java/org/apache/struts2/convention/actions/action/TestBase.java
+++ b/plugins/convention/src/test/java/org/apache/struts2/convention/actions/action/TestBase.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.convention.actions.action;
-import com.opensymphony.xwork2.ActionSupport;
+import org.apache.struts2.ActionSupport;
public abstract class TestBase extends ActionSupport {
diff --git a/plugins/convention/src/test/java/org/apache/struts2/convention/actions/defaultinterceptor/SingleActionNameAction2.java b/plugins/convention/src/test/java/org/apache/struts2/convention/actions/defaultinterceptor/SingleActionNameAction2.java
index 37d88ce52e..b658c76e22 100644
--- a/plugins/convention/src/test/java/org/apache/struts2/convention/actions/defaultinterceptor/SingleActionNameAction2.java
+++ b/plugins/convention/src/test/java/org/apache/struts2/convention/actions/defaultinterceptor/SingleActionNameAction2.java
@@ -25,7 +25,7 @@
* This is a test action.
*
*/
-public class SingleActionNameAction2 implements com.opensymphony.xwork2.Action{
+public class SingleActionNameAction2 implements org.apache.struts2.Action{
@Action("action345")
public String execute() {
return null;
diff --git a/plugins/convention/src/test/java/org/apache/struts2/convention/actions/idx/Index.java b/plugins/convention/src/test/java/org/apache/struts2/convention/actions/idx/Index.java
index 37fa8f9fb8..23ce3d9d5c 100644
--- a/plugins/convention/src/test/java/org/apache/struts2/convention/actions/idx/Index.java
+++ b/plugins/convention/src/test/java/org/apache/struts2/convention/actions/idx/Index.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.convention.actions.idx;
-import com.opensymphony.xwork2.Action;
+import org.apache.struts2.Action;
public class Index implements Action {
public String execute() throws Exception {
diff --git a/plugins/convention/src/test/java/org/apache/struts2/convention/actions/idx/idx2/Index.java b/plugins/convention/src/test/java/org/apache/struts2/convention/actions/idx/idx2/Index.java
index 33235c48b0..8a0325c26e 100644
--- a/plugins/convention/src/test/java/org/apache/struts2/convention/actions/idx/idx2/Index.java
+++ b/plugins/convention/src/test/java/org/apache/struts2/convention/actions/idx/idx2/Index.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.convention.actions.idx.idx2;
-import com.opensymphony.xwork2.Action;
+import org.apache.struts2.Action;
public class Index implements Action {
public String execute() throws Exception {
diff --git a/plugins/convention/src/test/java/org/apache/struts2/convention/actions/result/InheritedResultTestBase.java b/plugins/convention/src/test/java/org/apache/struts2/convention/actions/result/InheritedResultTestBase.java
index 9bfb8f6526..e6c2edf3c4 100644
--- a/plugins/convention/src/test/java/org/apache/struts2/convention/actions/result/InheritedResultTestBase.java
+++ b/plugins/convention/src/test/java/org/apache/struts2/convention/actions/result/InheritedResultTestBase.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.convention.actions.result;
-import com.opensymphony.xwork2.ActionSupport;
+import org.apache.struts2.ActionSupport;
import org.apache.struts2.convention.annotation.Result;
@Result(name="error", location="error.jsp", params={"key", "value", "key1", "value1"})
diff --git a/plugins/convention/src/test/java/org/apache/struts2/convention/actions/skip/Index.java b/plugins/convention/src/test/java/org/apache/struts2/convention/actions/skip/Index.java
index 28a262f8cf..ce2b2ccb3e 100644
--- a/plugins/convention/src/test/java/org/apache/struts2/convention/actions/skip/Index.java
+++ b/plugins/convention/src/test/java/org/apache/struts2/convention/actions/skip/Index.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.convention.actions.skip;
-import com.opensymphony.xwork2.Action;
+import org.apache.struts2.Action;
public class Index implements Action {
public String execute() throws Exception {
diff --git a/plugins/jasperreports/src/main/java/org/apache/struts2/views/jasperreports/JasperReportsResult.java b/plugins/jasperreports/src/main/java/org/apache/struts2/views/jasperreports/JasperReportsResult.java
index 743826c330..f24ddd1b83 100644
--- a/plugins/jasperreports/src/main/java/org/apache/struts2/views/jasperreports/JasperReportsResult.java
+++ b/plugins/jasperreports/src/main/java/org/apache/struts2/views/jasperreports/JasperReportsResult.java
@@ -18,10 +18,10 @@
*/
package org.apache.struts2.views.jasperreports;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.inject.Inject;
-import com.opensymphony.xwork2.security.NotExcludedAcceptedPatternsChecker;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.inject.Inject;
+import org.apache.struts2.security.NotExcludedAcceptedPatternsChecker;
+import org.apache.struts2.util.ValueStack;
import net.sf.jasperreports.engine.JRException;
import net.sf.jasperreports.engine.JRExporter;
import net.sf.jasperreports.engine.JRExporterParameter;
diff --git a/plugins/jasperreports/src/main/java/org/apache/struts2/views/jasperreports/ValueStackDataSource.java b/plugins/jasperreports/src/main/java/org/apache/struts2/views/jasperreports/ValueStackDataSource.java
index 016e9414d9..f470388f52 100644
--- a/plugins/jasperreports/src/main/java/org/apache/struts2/views/jasperreports/ValueStackDataSource.java
+++ b/plugins/jasperreports/src/main/java/org/apache/struts2/views/jasperreports/ValueStackDataSource.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jasperreports;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.LogManager;
import net.sf.jasperreports.engine.JRException;
diff --git a/plugins/jasperreports/src/main/java/org/apache/struts2/views/jasperreports/ValueStackShadowMap.java b/plugins/jasperreports/src/main/java/org/apache/struts2/views/jasperreports/ValueStackShadowMap.java
index f91ecc1846..7e78edf755 100644
--- a/plugins/jasperreports/src/main/java/org/apache/struts2/views/jasperreports/ValueStackShadowMap.java
+++ b/plugins/jasperreports/src/main/java/org/apache/struts2/views/jasperreports/ValueStackShadowMap.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.jasperreports;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import java.util.HashMap;
diff --git a/plugins/jasperreports/src/test/java/org/apache/struts2/views/jasperreports/JasperReportsResultTest.java b/plugins/jasperreports/src/test/java/org/apache/struts2/views/jasperreports/JasperReportsResultTest.java
index 8ac6928864..1fb31763ed 100644
--- a/plugins/jasperreports/src/test/java/org/apache/struts2/views/jasperreports/JasperReportsResultTest.java
+++ b/plugins/jasperreports/src/test/java/org/apache/struts2/views/jasperreports/JasperReportsResultTest.java
@@ -18,11 +18,11 @@
*/
package org.apache.struts2.views.jasperreports;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.mock.MockActionInvocation;
-import com.opensymphony.xwork2.security.NotExcludedAcceptedPatternsChecker;
-import com.opensymphony.xwork2.util.ClassLoaderUtil;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.mock.MockActionInvocation;
+import org.apache.struts2.security.NotExcludedAcceptedPatternsChecker;
+import org.apache.struts2.util.ClassLoaderUtil;
+import org.apache.struts2.util.ValueStack;
import net.sf.jasperreports.engine.JasperCompileManager;
import org.apache.struts2.StrutsStatics;
import org.apache.struts2.junit.StrutsTestCase;
diff --git a/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/JavaTemplateEngine.java b/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/JavaTemplateEngine.java
index dea448c787..2c327b4f0e 100644
--- a/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/JavaTemplateEngine.java
+++ b/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/JavaTemplateEngine.java
@@ -18,10 +18,10 @@
*/
package org.apache.struts2.views.java;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ObjectFactory;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.inject.Inject;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ObjectFactory;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.inject.Inject;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.LogManager;
import org.apache.struts2.StrutsException;
diff --git a/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/AbstractTagHandler.java b/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/AbstractTagHandler.java
index 7c3a9c4710..6d102b5dee 100644
--- a/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/AbstractTagHandler.java
+++ b/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/AbstractTagHandler.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts2.views.java.simple;
-import com.opensymphony.xwork2.util.TextParseUtil;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.TextParseUtil;
+import org.apache.struts2.util.ValueStack;
import org.apache.struts2.components.template.TemplateRenderingContext;
import org.apache.struts2.util.ComponentUtils;
import org.apache.struts2.views.java.Attributes;
diff --git a/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/CheckboxListHandler.java b/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/CheckboxListHandler.java
index 0937490d5f..2ef97f4f44 100644
--- a/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/CheckboxListHandler.java
+++ b/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/CheckboxListHandler.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.java.simple;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import org.apache.commons.text.StringEscapeUtils;
import org.apache.commons.lang3.StringUtils;
@@ -103,13 +103,13 @@ public void generate() throws IOException {
/**
* It's set to true if the nameValue (the value associated with the name
* which is typically set in the action is equal to the current key value.
- *
+ *
* @param params
* the params
- *
+ *
* @param itemKeyStr
* the item key str
- *
+ *
* @return the boolean
*/
private Boolean isChecked(Map params, String itemKeyStr) {
diff --git a/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/RadioHandler.java b/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/RadioHandler.java
index 369c23a940..a3f87a8a1d 100644
--- a/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/RadioHandler.java
+++ b/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/RadioHandler.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.java.simple;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import org.apache.struts2.util.MakeIterator;
import org.apache.struts2.views.java.Attributes;
@@ -91,13 +91,13 @@ public void generate() throws IOException {
/**
* It's set to true if the nameValue (the value associated with the name
* which is typically set in the action is equal to the current key value.
- *
+ *
* @param params
* the params
- *
+ *
* @param itemKeyStr
* the item key str
- *
+ *
* @return the boolean
*/
private Boolean isChecked(Map params, String itemKeyStr) {
diff --git a/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/SelectHandler.java b/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/SelectHandler.java
index f53a3d2a3d..22d8846e95 100644
--- a/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/SelectHandler.java
+++ b/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/SelectHandler.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.java.simple;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import org.apache.struts2.components.ListUIBean;
import org.apache.struts2.components.OptGroup;
import org.apache.struts2.util.ContainUtil;
@@ -61,7 +61,7 @@ public void generate() throws IOException {
boolean selected = ContainUtil.contains(value, params.get("headerKey"));
writeOption(headerKey, headerValue, selected);
}
-
+
//emptyoption
Object emptyOption = params.get("emptyOption");
if (emptyOption != null && emptyOption.toString().equals(Boolean.toString(true))) {
@@ -81,10 +81,10 @@ public void generate() throws IOException {
//key
Object itemKey = findValue(listKey != null ? listKey : "top");
- String itemKeyStr = StringUtils.defaultString(itemKey == null ? null : itemKey.toString());
+ String itemKeyStr = StringUtils.defaultString(itemKey == null ? null : itemKey.toString());
//value
Object itemValue = findValue(listValue != null ? listValue : "top");
- String itemValueStr = StringUtils.defaultString(itemValue == null ? null : itemValue.toString());
+ String itemValueStr = StringUtils.defaultString(itemValue == null ? null : itemValue.toString());
boolean selected = ContainUtil.contains(value, itemKey);
writeOption(itemKeyStr, itemValueStr, selected);
diff --git a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/AbstractTest.java b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/AbstractTest.java
index f48c52b2f1..198bdff260 100644
--- a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/AbstractTest.java
+++ b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/AbstractTest.java
@@ -21,12 +21,12 @@
package org.apache.struts2.views.java.simple;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.conversion.impl.XWorkConverter;
-import com.opensymphony.xwork2.inject.Container;
-import com.opensymphony.xwork2.util.OgnlTextParser;
-import com.opensymphony.xwork2.util.TextParser;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.conversion.impl.XWorkConverter;
+import org.apache.struts2.inject.Container;
+import org.apache.struts2.util.OgnlTextParser;
+import org.apache.struts2.util.TextParser;
+import org.apache.struts2.util.ValueStack;
import junit.framework.TestCase;
import org.apache.struts2.components.Component;
import org.apache.struts2.components.UIBean;
diff --git a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/AnchorTest.java b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/AnchorTest.java
index 5957135478..d52d39c68c 100644
--- a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/AnchorTest.java
+++ b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/AnchorTest.java
@@ -20,7 +20,7 @@
*/
package org.apache.struts2.views.java.simple;
-import com.opensymphony.xwork2.security.DefaultNotExcludedAcceptedPatternsChecker;
+import org.apache.struts2.security.DefaultNotExcludedAcceptedPatternsChecker;
import org.apache.struts2.components.Anchor;
import org.apache.struts2.components.UIBean;
import org.apache.struts2.components.ServletUrlRenderer;
diff --git a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/CheckboxTest.java b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/CheckboxTest.java
index d7d56ec0ac..856cc6ce40 100644
--- a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/CheckboxTest.java
+++ b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/CheckboxTest.java
@@ -20,7 +20,7 @@
*/
package org.apache.struts2.views.java.simple;
-import com.opensymphony.xwork2.security.DefaultNotExcludedAcceptedPatternsChecker;
+import org.apache.struts2.security.DefaultNotExcludedAcceptedPatternsChecker;
import org.apache.struts2.components.Checkbox;
import org.apache.struts2.components.UIBean;
diff --git a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/LinkTest.java b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/LinkTest.java
index 873ede2696..07e8c44991 100644
--- a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/LinkTest.java
+++ b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/LinkTest.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.java.simple;
-import com.opensymphony.xwork2.ActionContext;
+import org.apache.struts2.ActionContext;
import org.apache.struts2.components.Link;
import org.apache.struts2.components.UIBean;
diff --git a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/ScriptTest.java b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/ScriptTest.java
index 832653692e..46af056b9d 100644
--- a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/ScriptTest.java
+++ b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/ScriptTest.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts2.views.java.simple;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.security.DefaultNotExcludedAcceptedPatternsChecker;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.security.DefaultNotExcludedAcceptedPatternsChecker;
import org.apache.struts2.components.Script;
import org.apache.struts2.components.UIBean;
diff --git a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/TokenTest.java b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/TokenTest.java
index e1ad3f9070..56208b9538 100644
--- a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/TokenTest.java
+++ b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/TokenTest.java
@@ -20,7 +20,7 @@
*/
package org.apache.struts2.views.java.simple;
-import com.opensymphony.xwork2.ActionContext;
+import org.apache.struts2.ActionContext;
import org.apache.struts2.components.Token;
import org.apache.struts2.components.UIBean;
diff --git a/plugins/jfreechart/src/main/java/org/apache/struts2/dispatcher/ChartResult.java b/plugins/jfreechart/src/main/java/org/apache/struts2/dispatcher/ChartResult.java
index 26c2827a1e..fc1bdd3d0b 100644
--- a/plugins/jfreechart/src/main/java/org/apache/struts2/dispatcher/ChartResult.java
+++ b/plugins/jfreechart/src/main/java/org/apache/struts2/dispatcher/ChartResult.java
@@ -18,9 +18,9 @@
*/
package org.apache.struts2.dispatcher;
-import com.opensymphony.xwork2.config.ConfigurationException;
+import org.apache.struts2.config.ConfigurationException;
import org.apache.struts2.ServletActionContext;
-import com.opensymphony.xwork2.ActionInvocation;
+import org.apache.struts2.ActionInvocation;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.LogManager;
import org.apache.struts2.result.StrutsResultSupport;
@@ -85,7 +85,7 @@
*
* return SUCCESS;
* }
- *
+ *
* // this method will get called if we specify <param name="value">chart</param>
* public JFreeChart getChart() {
* return chart;
@@ -172,10 +172,6 @@ public void setChart(JFreeChart chart) {
this.chart = chart;
}
- // OTHER METHODS -----------------------
-
- // Required by com.opensymphony.xwork2.Result
-
/**
* Executes the result. Writes the given chart as a PNG or JPG to the servlet output stream.
*
@@ -185,7 +181,7 @@ public void setChart(JFreeChart chart) {
public void doExecute(String finalLocation, ActionInvocation invocation) throws Exception {
initializeProperties(invocation);
-
+
if (!chartSet) // if our chart hasn't been set (by the testcase), we'll look it up in the value stack
chart = (JFreeChart) invocation.getStack().findValue(value, JFreeChart.class);
if (chart == null) // we need to have a chart object - if not, blow up
@@ -234,7 +230,7 @@ private void initializeProperties(ActionInvocation invocation) {
if (type != null) {
type = conditionalParse(type, invocation);
}
-
+
if ( type == null) {
type = DEFAULT_TYPE;
}
diff --git a/plugins/jfreechart/src/test/java/org/apache/struts2/dispatcher/ChartResultTest.java b/plugins/jfreechart/src/test/java/org/apache/struts2/dispatcher/ChartResultTest.java
index 8e63257c91..3afd792964 100644
--- a/plugins/jfreechart/src/test/java/org/apache/struts2/dispatcher/ChartResultTest.java
+++ b/plugins/jfreechart/src/test/java/org/apache/struts2/dispatcher/ChartResultTest.java
@@ -18,10 +18,10 @@
*/
package org.apache.struts2.dispatcher;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.ActionProxy;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.util.ValueStack;
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.junit.StrutsTestCase;
import org.easymock.EasyMock;
diff --git a/plugins/json/src/main/java/org/apache/struts2/json/DefaultJSONWriter.java b/plugins/json/src/main/java/org/apache/struts2/json/DefaultJSONWriter.java
index bd2ebe90e5..d6328af526 100644
--- a/plugins/json/src/main/java/org/apache/struts2/json/DefaultJSONWriter.java
+++ b/plugins/json/src/main/java/org/apache/struts2/json/DefaultJSONWriter.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts2.json;
-import com.opensymphony.xwork2.inject.Inject;
-import com.opensymphony.xwork2.util.ProxyUtil;
+import org.apache.struts2.inject.Inject;
+import org.apache.struts2.util.ProxyUtil;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.struts2.json.annotations.JSON;
@@ -339,7 +339,7 @@ protected Method findBaseAccessor(Class clazz, Method accessor) {
} catch (Exception ex) {
LOG.debug(ex.getMessage(), ex);
}
-
+
//in hibernate4.3.7,because javassist3.18.1's class name generate rule is '_$$_jvst'+...
} else if(clazz.getName().contains("$$_jvst")){
try {
@@ -667,7 +667,7 @@ public void setDateFormatter(String defaultDateFormat) {
this.formatter = new SimpleDateFormat(defaultDateFormat);
}
}
-
+
@Override
public void setCacheBeanInfo(boolean cacheBeanInfo) {
this.cacheBeanInfo = cacheBeanInfo;
diff --git a/plugins/json/src/main/java/org/apache/struts2/json/JSONCleaner.java b/plugins/json/src/main/java/org/apache/struts2/json/JSONCleaner.java
index 35daab0df0..f6080631ea 100644
--- a/plugins/json/src/main/java/org/apache/struts2/json/JSONCleaner.java
+++ b/plugins/json/src/main/java/org/apache/struts2/json/JSONCleaner.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts2.json;
-import com.opensymphony.xwork2.util.TextParseUtil;
-import com.opensymphony.xwork2.util.WildcardUtil;
+import org.apache.struts2.util.TextParseUtil;
+import org.apache.struts2.util.WildcardUtil;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@@ -29,7 +29,7 @@
/**
* Isolate the process of cleaning JSON data from the Interceptor class
* itself.
- *
+ *
* The allowed and blocked wildcard patterns, combined with
* defaultBlock, let you filter out values that should not be injected, in
* the same way that ParameterFilterInterceptor does. Note that you can
diff --git a/plugins/json/src/main/java/org/apache/struts2/json/JSONInterceptor.java b/plugins/json/src/main/java/org/apache/struts2/json/JSONInterceptor.java
index a4a496c0be..7b96378763 100644
--- a/plugins/json/src/main/java/org/apache/struts2/json/JSONInterceptor.java
+++ b/plugins/json/src/main/java/org/apache/struts2/json/JSONInterceptor.java
@@ -18,12 +18,12 @@
*/
package org.apache.struts2.json;
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.inject.Inject;
-import com.opensymphony.xwork2.interceptor.AbstractInterceptor;
-import com.opensymphony.xwork2.util.ValueStack;
-import com.opensymphony.xwork2.util.WildcardUtil;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.inject.Inject;
+import org.apache.struts2.interceptor.AbstractInterceptor;
+import org.apache.struts2.util.ValueStack;
+import org.apache.struts2.util.WildcardUtil;
import org.apache.commons.lang3.BooleanUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@@ -304,7 +304,7 @@ private Method getMethod(Class clazz, String name, int parameterCount) {
/**
* Look for a method in clazz carrying the SMDMethod annotation with
* matching name and parametersCount
- *
+ *
* @return true if matches name and parameterCount
*/
private boolean checkSMDMethodSignature(Method method, String name, int parameterCount) {
@@ -351,7 +351,7 @@ public void setIgnoreSMDMethodInterfaces(boolean ignoreSMDMethodInterfaces) {
/**
* Wrap generated JSON with comments. Only used if SMD is enabled.
- *
+ *
* @param wrapWithComments Wrap generated JSON with comments.
*/
public void setWrapWithComments(boolean wrapWithComments) {
@@ -372,7 +372,7 @@ public void setIgnoreHierarchy(boolean ignoreHierarchy) {
/**
* Sets the root object to be deserialized, defaults to the Action
- *
+ *
* @param root
* OGNL expression of root object to be serialized
*/
@@ -382,7 +382,7 @@ public void setRoot(String root) {
/**
* Sets the JSONPopulator to be used
- *
+ *
* @param populator
* JSONPopulator
*/
@@ -392,7 +392,7 @@ public void setJSONPopulator(JSONPopulator populator) {
/**
* Sets the JSONCleaner to be used
- *
+ *
* @param dataCleaner
* JSONCleaner
*/
@@ -410,7 +410,7 @@ public boolean getDebug() {
/**
* Turns debugging on or off
- *
+ *
* @param debug
* true or false
*/
@@ -426,7 +426,7 @@ public void setDevMode(String mode) {
/**
* Sets a comma-delimited list of regular expressions to match properties
* that should be excluded from the JSON output.
- *
+ *
* @param commaDelim
* A comma-delimited list of regular expressions
*/
@@ -443,7 +443,7 @@ public void setExcludeProperties(String commaDelim) {
/**
* Sets a comma-delimited list of wildcard expressions to match
* properties that should be excluded from the JSON output.
- *
+ *
* @param commaDelim
* A comma-delimited list of wildcard expressions
*/
@@ -460,7 +460,7 @@ public void setExcludeWildcards(String commaDelim) {
/**
* Sets a comma-delimited list of regular expressions to match properties
* that should be included from the JSON output.
- *
+ *
* @param commaDelim
* A comma-delimited list of regular expressions
*/
@@ -474,7 +474,7 @@ public void setIncludeProperties(String commaDelim) {
* standard boilerplate (id, error, debug) are automatically included,
* as appropriate, so you only need to provide patterns for the
* contents of "result".
- *
+ *
* @param commaDelim
* A comma-delimited list of wildcard expressions
*/
@@ -510,7 +510,7 @@ public boolean isEnableGZIP() {
/**
* Setting this property to "true" will compress the output.
- *
+ *
* @param enableGZIP
* Enable compressed output
*/
@@ -524,7 +524,7 @@ public boolean isNoCache() {
/**
* Add headers to response to prevent the browser from caching the response
- *
+ *
* @param noCache no cache
*/
public void setNoCache(boolean noCache) {
diff --git a/plugins/json/src/main/java/org/apache/struts2/json/JSONResult.java b/plugins/json/src/main/java/org/apache/struts2/json/JSONResult.java
index e466b0ceff..1cc2d4a1e7 100644
--- a/plugins/json/src/main/java/org/apache/struts2/json/JSONResult.java
+++ b/plugins/json/src/main/java/org/apache/struts2/json/JSONResult.java
@@ -18,13 +18,13 @@
*/
package org.apache.struts2.json;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.ModelDriven;
-import com.opensymphony.xwork2.Result;
-import com.opensymphony.xwork2.inject.Inject;
-import com.opensymphony.xwork2.util.ValueStack;
-import com.opensymphony.xwork2.util.WildcardUtil;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.ModelDriven;
+import org.apache.struts2.Result;
+import org.apache.struts2.inject.Inject;
+import org.apache.struts2.util.ValueStack;
+import org.apache.struts2.util.WildcardUtil;
import org.apache.commons.lang3.BooleanUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.LogManager;
diff --git a/plugins/json/src/main/java/org/apache/struts2/json/JSONUtil.java b/plugins/json/src/main/java/org/apache/struts2/json/JSONUtil.java
index b07a139198..ab23f4dcdb 100644
--- a/plugins/json/src/main/java/org/apache/struts2/json/JSONUtil.java
+++ b/plugins/json/src/main/java/org/apache/struts2/json/JSONUtil.java
@@ -40,15 +40,15 @@
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
-import com.opensymphony.xwork2.inject.Container;
-import com.opensymphony.xwork2.inject.Inject;
+import org.apache.struts2.inject.Container;
+import org.apache.struts2.inject.Inject;
import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.struts2.json.annotations.SMDMethod;
-import com.opensymphony.xwork2.util.TextParseUtil;
-import com.opensymphony.xwork2.util.WildcardUtil;
+import org.apache.struts2.util.TextParseUtil;
+import org.apache.struts2.util.WildcardUtil;
/**
* Wrapper for JSONWriter with some utility methods.
@@ -57,7 +57,7 @@ public class JSONUtil {
public final static String RFC3339_FORMAT = "yyyy-MM-dd'T'HH:mm:ss";
public static final boolean CACHE_BEAN_INFO_DEFAULT = true;
-
+
private static final Logger LOG = LogManager.getLogger(JSONUtil.class);
private JSONWriter writer;
@@ -108,10 +108,10 @@ public String serialize(Object object, boolean cacheBeanInfo) throws JSONExcepti
public String serialize(Object object, Collection excludeProperties,
Collection includeProperties, boolean ignoreHierarchy, boolean excludeNullProperties)
throws JSONException {
- return serialize(object, excludeProperties, includeProperties,
- ignoreHierarchy, excludeNullProperties, CACHE_BEAN_INFO_DEFAULT);
+ return serialize(object, excludeProperties, includeProperties,
+ ignoreHierarchy, excludeNullProperties, CACHE_BEAN_INFO_DEFAULT);
}
-
+
/**
* Serializes an object into JSON, excluding any properties matching any of
* the regular expressions in the given collection.
@@ -166,10 +166,10 @@ public String serialize(Object object, Collection excludeProperties,
public String serialize(Object object, Collection excludeProperties,
Collection includeProperties, boolean ignoreHierarchy, boolean enumAsBean,
boolean excludeNullProperties, String defaultDateFormat) throws JSONException {
- return serialize(object, excludeProperties, includeProperties, ignoreHierarchy, enumAsBean,
- excludeNullProperties, defaultDateFormat, CACHE_BEAN_INFO_DEFAULT);
+ return serialize(object, excludeProperties, includeProperties, ignoreHierarchy, enumAsBean,
+ excludeNullProperties, defaultDateFormat, CACHE_BEAN_INFO_DEFAULT);
}
-
+
/**
* Serializes an object into JSON, excluding any properties matching any of
* the regular expressions in the given collection.
@@ -217,7 +217,7 @@ public String serialize(Object object, Collection excludeProperties,
public void serialize(Writer writer, Object object) throws IOException, JSONException {
serialize(writer, object, CACHE_BEAN_INFO_DEFAULT);
}
-
+
/**
* Serializes an object into JSON to the given writer.
*
@@ -257,7 +257,7 @@ public void serialize(Writer writer, Object object, Collection excludeP
JSONException {
serialize(writer, object, excludeProperties, includeProperties, excludeNullProperties, CACHE_BEAN_INFO_DEFAULT);
}
-
+
/**
* Serializes an object into JSON to the given writer, excluding any
* properties matching any of the regular expressions in the given
@@ -274,12 +274,12 @@ public void serialize(Writer writer, Object object, Collection excludeP
* @param excludeNullProperties
* enable/disable excluding of null properties
* @param cacheBeanInfo
- * Specifies whether to cache bean info in the JSONWriter
+ * Specifies whether to cache bean info in the JSONWriter
* @throws IOException in case of IO errors
* @throws JSONException in case of error during serialize
*/
public void serialize(Writer writer, Object object, Collection excludeProperties,
- Collection includeProperties, boolean excludeNullProperties, boolean cacheBeanInfo)
+ Collection includeProperties, boolean excludeNullProperties, boolean cacheBeanInfo)
throws IOException, JSONException {
writer.write(serialize(object, excludeProperties, includeProperties, true, excludeNullProperties, cacheBeanInfo));
}
diff --git a/plugins/json/src/main/java/org/apache/struts2/json/JSONValidationInterceptor.java b/plugins/json/src/main/java/org/apache/struts2/json/JSONValidationInterceptor.java
index 912a110b5c..fddeb37b6d 100644
--- a/plugins/json/src/main/java/org/apache/struts2/json/JSONValidationInterceptor.java
+++ b/plugins/json/src/main/java/org/apache/struts2/json/JSONValidationInterceptor.java
@@ -18,11 +18,11 @@
*/
package org.apache.struts2.json;
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.ModelDriven;
-import com.opensymphony.xwork2.interceptor.ValidationAware;
-import com.opensymphony.xwork2.interceptor.MethodFilterInterceptor;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.ModelDriven;
+import org.apache.struts2.interceptor.ValidationAware;
+import org.apache.struts2.interceptor.MethodFilterInterceptor;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.LogManager;
import org.apache.commons.text.StringEscapeUtils;
diff --git a/plugins/json/src/main/java/org/apache/struts2/json/smd/SMDGenerator.java b/plugins/json/src/main/java/org/apache/struts2/json/smd/SMDGenerator.java
index 923fa5f3fd..b0eeba5857 100644
--- a/plugins/json/src/main/java/org/apache/struts2/json/smd/SMDGenerator.java
+++ b/plugins/json/src/main/java/org/apache/struts2/json/smd/SMDGenerator.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts2.json.smd;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionInvocation;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.struts2.json.JSONUtil;
diff --git a/plugins/json/src/test/java/org/apache/struts2/json/JSONActionRedirectResultTest.java b/plugins/json/src/test/java/org/apache/struts2/json/JSONActionRedirectResultTest.java
index 24dc6adf50..a1c7c44fa8 100644
--- a/plugins/json/src/test/java/org/apache/struts2/json/JSONActionRedirectResultTest.java
+++ b/plugins/json/src/test/java/org/apache/struts2/json/JSONActionRedirectResultTest.java
@@ -18,11 +18,11 @@
*/
package org.apache.struts2.json;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.mock.MockActionInvocation;
-import com.opensymphony.xwork2.mock.MockActionProxy;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.mock.MockActionInvocation;
+import org.apache.struts2.mock.MockActionProxy;
+import org.apache.struts2.util.ValueStack;
import org.apache.struts2.StrutsStatics;
import org.apache.struts2.dispatcher.mapper.DefaultActionMapper;
import org.apache.struts2.junit.StrutsTestCase;
diff --git a/plugins/json/src/test/java/org/apache/struts2/json/JSONInterceptorTest.java b/plugins/json/src/test/java/org/apache/struts2/json/JSONInterceptorTest.java
index 8fadec272a..a5cfd2e1c5 100644
--- a/plugins/json/src/test/java/org/apache/struts2/json/JSONInterceptorTest.java
+++ b/plugins/json/src/test/java/org/apache/struts2/json/JSONInterceptorTest.java
@@ -18,9 +18,9 @@
*/
package org.apache.struts2.json;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.mock.MockActionInvocation;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.mock.MockActionInvocation;
+import org.apache.struts2.util.ValueStack;
import org.apache.struts2.junit.StrutsTestCase;
import org.apache.struts2.junit.util.TestUtils;
import org.springframework.mock.web.MockHttpServletRequest;
diff --git a/plugins/json/src/test/java/org/apache/struts2/json/JSONResultTest.java b/plugins/json/src/test/java/org/apache/struts2/json/JSONResultTest.java
index aaa446643c..34bf41d5db 100644
--- a/plugins/json/src/test/java/org/apache/struts2/json/JSONResultTest.java
+++ b/plugins/json/src/test/java/org/apache/struts2/json/JSONResultTest.java
@@ -18,10 +18,10 @@
*/
package org.apache.struts2.json;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.Result;
-import com.opensymphony.xwork2.mock.MockActionInvocation;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.Result;
+import org.apache.struts2.mock.MockActionInvocation;
+import org.apache.struts2.util.ValueStack;
import org.apache.struts2.StrutsStatics;
import org.apache.struts2.junit.StrutsTestCase;
import org.apache.struts2.junit.util.TestUtils;
diff --git a/plugins/json/src/test/java/org/apache/struts2/json/JSONValidationInterceptorTest.java b/plugins/json/src/test/java/org/apache/struts2/json/JSONValidationInterceptorTest.java
index 69aab50129..4e10416782 100644
--- a/plugins/json/src/test/java/org/apache/struts2/json/JSONValidationInterceptorTest.java
+++ b/plugins/json/src/test/java/org/apache/struts2/json/JSONValidationInterceptorTest.java
@@ -18,16 +18,16 @@
*/
package org.apache.struts2.json;
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionSupport;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.mock.MockActionInvocation;
-import com.opensymphony.xwork2.mock.MockActionProxy;
-import com.opensymphony.xwork2.validator.annotations.EmailValidator;
-import com.opensymphony.xwork2.validator.annotations.IntRangeFieldValidator;
-import com.opensymphony.xwork2.validator.annotations.RequiredStringValidator;
-import com.opensymphony.xwork2.validator.annotations.StringLengthFieldValidator;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionSupport;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.mock.MockActionInvocation;
+import org.apache.struts2.mock.MockActionProxy;
+import org.apache.struts2.validator.annotations.EmailValidator;
+import org.apache.struts2.validator.annotations.IntRangeFieldValidator;
+import org.apache.struts2.validator.annotations.RequiredStringValidator;
+import org.apache.struts2.validator.annotations.StringLengthFieldValidator;
import org.apache.struts2.StrutsStatics;
import org.apache.struts2.interceptor.parameter.StrutsParameter;
import org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor;
diff --git a/plugins/json/src/test/java/org/apache/struts2/json/TestAction.java b/plugins/json/src/test/java/org/apache/struts2/json/TestAction.java
index 3021e3659f..93002671e6 100644
--- a/plugins/json/src/test/java/org/apache/struts2/json/TestAction.java
+++ b/plugins/json/src/test/java/org/apache/struts2/json/TestAction.java
@@ -25,8 +25,8 @@
import org.apache.struts2.json.annotations.JSON;
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionSupport;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionSupport;
/**
*/
diff --git a/plugins/junit/src/main/java/org/apache/struts2/junit/StrutsJUnit4TestCase.java b/plugins/junit/src/main/java/org/apache/struts2/junit/StrutsJUnit4TestCase.java
index f57c985a28..c67ba77ed3 100644
--- a/plugins/junit/src/main/java/org/apache/struts2/junit/StrutsJUnit4TestCase.java
+++ b/plugins/junit/src/main/java/org/apache/struts2/junit/StrutsJUnit4TestCase.java
@@ -18,13 +18,13 @@
*/
package org.apache.struts2.junit;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionProxy;
-import com.opensymphony.xwork2.ActionProxyFactory;
-import com.opensymphony.xwork2.config.Configuration;
-import com.opensymphony.xwork2.interceptor.ValidationAware;
-import com.opensymphony.xwork2.interceptor.annotations.After;
-import com.opensymphony.xwork2.interceptor.annotations.Before;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.ActionProxyFactory;
+import org.apache.struts2.config.Configuration;
+import org.apache.struts2.interceptor.ValidationAware;
+import org.apache.struts2.interceptor.annotations.After;
+import org.apache.struts2.interceptor.annotations.Before;
import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
diff --git a/plugins/junit/src/main/java/org/apache/struts2/junit/StrutsRestTestCase.java b/plugins/junit/src/main/java/org/apache/struts2/junit/StrutsRestTestCase.java
index 6f55eefdeb..acb8c9c14c 100644
--- a/plugins/junit/src/main/java/org/apache/struts2/junit/StrutsRestTestCase.java
+++ b/plugins/junit/src/main/java/org/apache/struts2/junit/StrutsRestTestCase.java
@@ -18,10 +18,10 @@
*/
package org.apache.struts2.junit;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionProxy;
-import com.opensymphony.xwork2.ActionProxyFactory;
-import com.opensymphony.xwork2.config.Configuration;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.ActionProxyFactory;
+import org.apache.struts2.config.Configuration;
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.dispatcher.Dispatcher;
import org.apache.struts2.dispatcher.HttpParameters;
diff --git a/plugins/junit/src/main/java/org/apache/struts2/junit/StrutsTestCase.java b/plugins/junit/src/main/java/org/apache/struts2/junit/StrutsTestCase.java
index 16e9454792..11918b432c 100644
--- a/plugins/junit/src/main/java/org/apache/struts2/junit/StrutsTestCase.java
+++ b/plugins/junit/src/main/java/org/apache/struts2/junit/StrutsTestCase.java
@@ -18,11 +18,11 @@
*/
package org.apache.struts2.junit;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionProxy;
-import com.opensymphony.xwork2.ActionProxyFactory;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.config.Configuration;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.ActionProxyFactory;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.config.Configuration;
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.dispatcher.Dispatcher;
import org.apache.struts2.dispatcher.HttpParameters;
@@ -111,7 +111,7 @@ protected ActionProxy getActionProxy(String uri) {
/**
* A helper method which allows instantiate an action if this action extends
- * {@link com.opensymphony.xwork2.ActionSupport} or any other action class
+ * {@link org.apache.struts2.ActionSupport} or any other action class
* that requires framework's dependencies injection.
*/
protected T createAction(Class clazz) {
diff --git a/plugins/junit/src/main/java/org/apache/struts2/junit/XWorkJUnit4TestCase.java b/plugins/junit/src/main/java/org/apache/struts2/junit/XWorkJUnit4TestCase.java
index 12acf283e1..536bcf0249 100644
--- a/plugins/junit/src/main/java/org/apache/struts2/junit/XWorkJUnit4TestCase.java
+++ b/plugins/junit/src/main/java/org/apache/struts2/junit/XWorkJUnit4TestCase.java
@@ -18,5 +18,5 @@
*/
package org.apache.struts2.junit;
-public abstract class XWorkJUnit4TestCase extends com.opensymphony.xwork2.XWorkJUnit4TestCase {
+public abstract class XWorkJUnit4TestCase extends org.apache.struts2.XWorkJUnit4TestCase {
}
diff --git a/plugins/junit/src/test/java/org/apache/struts2/junit/JUnitTestAction.java b/plugins/junit/src/test/java/org/apache/struts2/junit/JUnitTestAction.java
index 1531c3670b..60432d1420 100644
--- a/plugins/junit/src/test/java/org/apache/struts2/junit/JUnitTestAction.java
+++ b/plugins/junit/src/test/java/org/apache/struts2/junit/JUnitTestAction.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.junit;
-import com.opensymphony.xwork2.ActionSupport;
+import org.apache.struts2.ActionSupport;
import org.apache.struts2.interceptor.parameter.StrutsParameter;
import org.springframework.beans.factory.annotation.Autowired;
diff --git a/plugins/junit/src/test/java/org/apache/struts2/junit/StrutsJUnit4TestCaseTest.java b/plugins/junit/src/test/java/org/apache/struts2/junit/StrutsJUnit4TestCaseTest.java
index 64b0f9bac0..ee8c66781b 100644
--- a/plugins/junit/src/test/java/org/apache/struts2/junit/StrutsJUnit4TestCaseTest.java
+++ b/plugins/junit/src/test/java/org/apache/struts2/junit/StrutsJUnit4TestCaseTest.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.junit;
-import com.opensymphony.xwork2.ActionProxy;
+import org.apache.struts2.ActionProxy;
import org.junit.Assert;
import org.junit.Test;
diff --git a/plugins/junit/src/test/java/org/apache/struts2/junit/StrutsSpringJUnit4TestCaseTest.java b/plugins/junit/src/test/java/org/apache/struts2/junit/StrutsSpringJUnit4TestCaseTest.java
index 2000ef0b5e..dd2511b263 100644
--- a/plugins/junit/src/test/java/org/apache/struts2/junit/StrutsSpringJUnit4TestCaseTest.java
+++ b/plugins/junit/src/test/java/org/apache/struts2/junit/StrutsSpringJUnit4TestCaseTest.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts2.junit;
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionProxy;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionProxy;
import org.apache.struts2.dispatcher.mapper.ActionMapping;
import org.junit.Assert;
import org.junit.Test;
diff --git a/plugins/junit/src/test/java/org/apache/struts2/junit/StrutsTestCaseTest.java b/plugins/junit/src/test/java/org/apache/struts2/junit/StrutsTestCaseTest.java
index 33f0ba5eee..951a9c8461 100644
--- a/plugins/junit/src/test/java/org/apache/struts2/junit/StrutsTestCaseTest.java
+++ b/plugins/junit/src/test/java/org/apache/struts2/junit/StrutsTestCaseTest.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts2.junit;
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionProxy;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionProxy;
import org.apache.struts2.dispatcher.mapper.ActionMapping;
import jakarta.servlet.ServletException;
diff --git a/plugins/junit/src/test/java/org/apache/struts2/junit/session/SessionGetAction.java b/plugins/junit/src/test/java/org/apache/struts2/junit/session/SessionGetAction.java
index 039cf9cd98..1ec5dddf58 100644
--- a/plugins/junit/src/test/java/org/apache/struts2/junit/session/SessionGetAction.java
+++ b/plugins/junit/src/test/java/org/apache/struts2/junit/session/SessionGetAction.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.junit.session;
-import com.opensymphony.xwork2.ActionSupport;
+import org.apache.struts2.ActionSupport;
/**
* An action which reads a value from the session.
diff --git a/plugins/junit/src/test/java/org/apache/struts2/junit/session/SessionSetAction.java b/plugins/junit/src/test/java/org/apache/struts2/junit/session/SessionSetAction.java
index f463951c05..15adc999e9 100644
--- a/plugins/junit/src/test/java/org/apache/struts2/junit/session/SessionSetAction.java
+++ b/plugins/junit/src/test/java/org/apache/struts2/junit/session/SessionSetAction.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts2.junit.session;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionSupport;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionSupport;
/**
* An action which sets a value into the session
diff --git a/plugins/rest/src/main/java/org/apache/struts2/rest/ContentTypeHandlerManager.java b/plugins/rest/src/main/java/org/apache/struts2/rest/ContentTypeHandlerManager.java
index 7259f0c4b0..7339677774 100644
--- a/plugins/rest/src/main/java/org/apache/struts2/rest/ContentTypeHandlerManager.java
+++ b/plugins/rest/src/main/java/org/apache/struts2/rest/ContentTypeHandlerManager.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.rest;
-import com.opensymphony.xwork2.ActionInvocation;
+import org.apache.struts2.ActionInvocation;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.rest.handler.ContentTypeHandler;
diff --git a/plugins/rest/src/main/java/org/apache/struts2/rest/ContentTypeInterceptor.java b/plugins/rest/src/main/java/org/apache/struts2/rest/ContentTypeInterceptor.java
index 17195ddd94..14280064f0 100644
--- a/plugins/rest/src/main/java/org/apache/struts2/rest/ContentTypeInterceptor.java
+++ b/plugins/rest/src/main/java/org/apache/struts2/rest/ContentTypeInterceptor.java
@@ -18,10 +18,10 @@
*/
package org.apache.struts2.rest;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.ModelDriven;
-import com.opensymphony.xwork2.inject.Inject;
-import com.opensymphony.xwork2.interceptor.AbstractInterceptor;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.ModelDriven;
+import org.apache.struts2.inject.Inject;
+import org.apache.struts2.interceptor.AbstractInterceptor;
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.rest.handler.ContentTypeHandler;
diff --git a/plugins/rest/src/main/java/org/apache/struts2/rest/DefaultContentTypeHandlerManager.java b/plugins/rest/src/main/java/org/apache/struts2/rest/DefaultContentTypeHandlerManager.java
index 9a7e5ee662..1fa3d70048 100644
--- a/plugins/rest/src/main/java/org/apache/struts2/rest/DefaultContentTypeHandlerManager.java
+++ b/plugins/rest/src/main/java/org/apache/struts2/rest/DefaultContentTypeHandlerManager.java
@@ -18,10 +18,10 @@
*/
package org.apache.struts2.rest;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.inject.Container;
-import com.opensymphony.xwork2.inject.Inject;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.inject.Container;
+import org.apache.struts2.inject.Inject;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.logging.log4j.LogManager;
diff --git a/plugins/rest/src/main/java/org/apache/struts2/rest/RestActionInvocation.java b/plugins/rest/src/main/java/org/apache/struts2/rest/RestActionInvocation.java
index 850bdfc4f0..b2d84f8f0e 100644
--- a/plugins/rest/src/main/java/org/apache/struts2/rest/RestActionInvocation.java
+++ b/plugins/rest/src/main/java/org/apache/struts2/rest/RestActionInvocation.java
@@ -18,12 +18,12 @@
*/
package org.apache.struts2.rest;
-import com.opensymphony.xwork2.*;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
-import com.opensymphony.xwork2.config.entities.ResultConfig;
-import com.opensymphony.xwork2.inject.Inject;
-import com.opensymphony.xwork2.interceptor.ValidationAware;
+import org.apache.struts2.*;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.config.entities.ActionConfig;
+import org.apache.struts2.config.entities.ResultConfig;
+import org.apache.struts2.inject.Inject;
+import org.apache.struts2.interceptor.ValidationAware;
import org.apache.commons.lang3.BooleanUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@@ -74,7 +74,7 @@ public void setDefaultErrorResultName(String defaultErrorResultName) {
/**
* If set to true (by default) blocks returning content from any other methods than GET,
* if set to false, the content can be returned for any kind of method
- *
+ *
* @param restrictToGet true or false
*/
@Inject(value = RestConstants.REST_CONTENT_RESTRICT_TO_GET, required = false)
diff --git a/plugins/rest/src/main/java/org/apache/struts2/rest/RestActionMapper.java b/plugins/rest/src/main/java/org/apache/struts2/rest/RestActionMapper.java
index 48f4e5fb0e..3cff552321 100644
--- a/plugins/rest/src/main/java/org/apache/struts2/rest/RestActionMapper.java
+++ b/plugins/rest/src/main/java/org/apache/struts2/rest/RestActionMapper.java
@@ -18,10 +18,10 @@
*/
package org.apache.struts2.rest;
-import com.opensymphony.xwork2.config.Configuration;
-import com.opensymphony.xwork2.config.ConfigurationManager;
-import com.opensymphony.xwork2.config.entities.PackageConfig;
-import com.opensymphony.xwork2.inject.Inject;
+import org.apache.struts2.config.Configuration;
+import org.apache.struts2.config.ConfigurationManager;
+import org.apache.struts2.config.entities.PackageConfig;
+import org.apache.struts2.inject.Inject;
import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@@ -36,19 +36,19 @@
/**
*
*
- * This Restful action mapper enforces Ruby-On-Rails Rest-style mappings. If the method
- * is not specified (via '!' or 'method:' prefix), the method is "guessed" at using
+ * This Restful action mapper enforces Ruby-On-Rails Rest-style mappings. If the method
+ * is not specified (via '!' or 'method:' prefix), the method is "guessed" at using
* ReST-style conventions that examine the URL and the HTTP method. Special care has
* been given to ensure this mapper works correctly with the codebehind plugin so that
* XML configuration is unnecessary.
- *
+ *
*
* This mapper supports the following parameters:
*
*
+ method="getName">
chaintoAOPedTestSubBeanAction
-
-
-
-
+ method="getIssueId">
+
+
+
+
diff --git a/plugins/spring/src/test/resources/org/apache/struts2/spring/StrutsSpringObjectFactoryTest-applicationContext.xml b/plugins/spring/src/test/resources/org/apache/struts2/spring/emptyContext-spring.xml
similarity index 100%
rename from plugins/spring/src/test/resources/org/apache/struts2/spring/StrutsSpringObjectFactoryTest-applicationContext.xml
rename to plugins/spring/src/test/resources/org/apache/struts2/spring/emptyContext-spring.xml
diff --git a/plugins/testng/src/main/java/org/apache/struts2/testng/TestNGStrutsTestCase.java b/plugins/testng/src/main/java/org/apache/struts2/testng/TestNGStrutsTestCase.java
index c6f1b1419d..a370830125 100644
--- a/plugins/testng/src/main/java/org/apache/struts2/testng/TestNGStrutsTestCase.java
+++ b/plugins/testng/src/main/java/org/apache/struts2/testng/TestNGStrutsTestCase.java
@@ -48,7 +48,7 @@ protected Dispatcher initDispatcher(Map params) {
/**
* A helper method which allows instantiate an action if this action extends
- * {@link com.opensymphony.xwork2.ActionSupport} or any other action class
+ * {@link org.apache.struts2.ActionSupport} or any other action class
* that requires framework's dependencies injection.
*/
protected T createAction(Class clazz) {
diff --git a/plugins/testng/src/main/java/org/apache/struts2/testng/TestNGXWorkTestCase.java b/plugins/testng/src/main/java/org/apache/struts2/testng/TestNGXWorkTestCase.java
index 3d3519b3d4..955fb3456d 100644
--- a/plugins/testng/src/main/java/org/apache/struts2/testng/TestNGXWorkTestCase.java
+++ b/plugins/testng/src/main/java/org/apache/struts2/testng/TestNGXWorkTestCase.java
@@ -18,13 +18,13 @@
*/
package org.apache.struts2.testng;
-import com.opensymphony.xwork2.ActionProxyFactory;
-import com.opensymphony.xwork2.config.Configuration;
-import com.opensymphony.xwork2.config.ConfigurationManager;
-import com.opensymphony.xwork2.config.ConfigurationProvider;
-import com.opensymphony.xwork2.config.impl.MockConfiguration;
-import com.opensymphony.xwork2.inject.Container;
-import com.opensymphony.xwork2.util.XWorkTestCaseHelper;
+import org.apache.struts2.ActionProxyFactory;
+import org.apache.struts2.config.Configuration;
+import org.apache.struts2.config.ConfigurationManager;
+import org.apache.struts2.config.ConfigurationProvider;
+import org.apache.struts2.config.impl.MockConfiguration;
+import org.apache.struts2.inject.Container;
+import org.apache.struts2.util.XWorkTestCaseHelper;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
diff --git a/plugins/testng/src/test/java/org/apache/struts2/testng/TestNGStrutsTestCaseTest.java b/plugins/testng/src/test/java/org/apache/struts2/testng/TestNGStrutsTestCaseTest.java
index 534a57edd5..c307d7208d 100644
--- a/plugins/testng/src/test/java/org/apache/struts2/testng/TestNGStrutsTestCaseTest.java
+++ b/plugins/testng/src/test/java/org/apache/struts2/testng/TestNGStrutsTestCaseTest.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.testng;
-import com.opensymphony.xwork2.config.ConfigurationManager;
+import org.apache.struts2.config.ConfigurationManager;
import junit.framework.TestCase;
import org.apache.struts2.dispatcher.Dispatcher;
import org.testng.TestListenerAdapter;
diff --git a/plugins/testng/src/test/java/org/apache/struts2/testng/TestNGXWorkTestCaseTest.java b/plugins/testng/src/test/java/org/apache/struts2/testng/TestNGXWorkTestCaseTest.java
index dcc7a8c9ce..db7ad91e7c 100644
--- a/plugins/testng/src/test/java/org/apache/struts2/testng/TestNGXWorkTestCaseTest.java
+++ b/plugins/testng/src/test/java/org/apache/struts2/testng/TestNGXWorkTestCaseTest.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.testng;
-import com.opensymphony.xwork2.config.ConfigurationManager;
+import org.apache.struts2.config.ConfigurationManager;
import junit.framework.TestCase;
import org.apache.struts2.testng.TestNGXWorkTestCase;
import org.testng.TestListenerAdapter;
diff --git a/plugins/tiles/src/main/java/org/apache/struts2/tiles/I18NAttributeEvaluator.java b/plugins/tiles/src/main/java/org/apache/struts2/tiles/I18NAttributeEvaluator.java
index e3d87fe860..9844596e66 100644
--- a/plugins/tiles/src/main/java/org/apache/struts2/tiles/I18NAttributeEvaluator.java
+++ b/plugins/tiles/src/main/java/org/apache/struts2/tiles/I18NAttributeEvaluator.java
@@ -18,10 +18,10 @@
*/
package org.apache.struts2.tiles;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.TextProvider;
-import com.opensymphony.xwork2.TextProviderFactory;
-import com.opensymphony.xwork2.config.ConfigurationException;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.TextProvider;
+import org.apache.struts2.TextProviderFactory;
+import org.apache.struts2.config.ConfigurationException;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.struts2.ServletActionContext;
diff --git a/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsAttributeEvaluator.java b/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsAttributeEvaluator.java
index 8bf1c1df25..e61180b2dc 100644
--- a/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsAttributeEvaluator.java
+++ b/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsAttributeEvaluator.java
@@ -18,9 +18,9 @@
*/
package org.apache.struts2.tiles;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.ognl.OgnlUtil;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.ognl.OgnlUtil;
import ognl.OgnlException;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
diff --git a/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsFreeMarkerAttributeRenderer.java b/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsFreeMarkerAttributeRenderer.java
index 88ba5b6ae2..a756a1903c 100644
--- a/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsFreeMarkerAttributeRenderer.java
+++ b/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsFreeMarkerAttributeRenderer.java
@@ -18,10 +18,10 @@
*/
package org.apache.struts2.tiles;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.inject.Container;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.inject.Container;
import freemarker.ext.beans.BeanModel;
import freemarker.template.Configuration;
import freemarker.template.TemplateException;
diff --git a/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsPreparerFactory.java b/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsPreparerFactory.java
index 8630a061f6..db37af2788 100644
--- a/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsPreparerFactory.java
+++ b/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsPreparerFactory.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts2.tiles;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ObjectFactory;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ObjectFactory;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.message.ParameterizedMessage;
diff --git a/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsTilesContainerFactory.java b/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsTilesContainerFactory.java
index 41d5ccbfde..4111d1e7d5 100644
--- a/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsTilesContainerFactory.java
+++ b/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsTilesContainerFactory.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.tiles;
-import com.opensymphony.xwork2.util.TextParseUtil;
+import org.apache.struts2.util.TextParseUtil;
import jakarta.el.ArrayELResolver;
import jakarta.el.BeanELResolver;
import jakarta.el.CompositeELResolver;
diff --git a/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsTilesLocaleResolver.java b/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsTilesLocaleResolver.java
index 4e3ce5934d..e7eea43f4d 100644
--- a/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsTilesLocaleResolver.java
+++ b/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsTilesLocaleResolver.java
@@ -18,9 +18,9 @@
*/
package org.apache.struts2.tiles;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.LocaleProviderFactory;
-import com.opensymphony.xwork2.config.ConfigurationException;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.LocaleProviderFactory;
+import org.apache.struts2.config.ConfigurationException;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.struts2.ServletActionContext;
diff --git a/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsWildcardServletApplicationContext.java b/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsWildcardServletApplicationContext.java
index f973bb29e8..5af8d159a5 100644
--- a/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsWildcardServletApplicationContext.java
+++ b/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsWildcardServletApplicationContext.java
@@ -18,9 +18,9 @@
*/
package org.apache.struts2.tiles;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.util.WildcardUtil;
-import com.opensymphony.xwork2.util.finder.ResourceFinder;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.util.WildcardUtil;
+import org.apache.struts2.util.finder.ResourceFinder;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.tiles.request.ApplicationResource;
diff --git a/plugins/tiles/src/main/java/org/apache/struts2/views/tiles/TilesResult.java b/plugins/tiles/src/main/java/org/apache/struts2/views/tiles/TilesResult.java
index baaaf88d8c..b32f36e8d9 100644
--- a/plugins/tiles/src/main/java/org/apache/struts2/views/tiles/TilesResult.java
+++ b/plugins/tiles/src/main/java/org/apache/struts2/views/tiles/TilesResult.java
@@ -33,7 +33,7 @@
import org.apache.tiles.api.TilesContainer;
import org.apache.tiles.api.TilesException;
-import com.opensymphony.xwork2.ActionInvocation;
+import org.apache.struts2.ActionInvocation;
import org.apache.tiles.api.access.TilesAccess;
import org.apache.tiles.api.mgmt.MutableTilesContainer;
import org.apache.tiles.request.ApplicationContext;
diff --git a/plugins/tiles/src/main/java/org/apache/tiles/api/Attribute.java b/plugins/tiles/src/main/java/org/apache/tiles/api/Attribute.java
index 65be6537ab..1da9b44d38 100644
--- a/plugins/tiles/src/main/java/org/apache/tiles/api/Attribute.java
+++ b/plugins/tiles/src/main/java/org/apache/tiles/api/Attribute.java
@@ -19,7 +19,7 @@
package org.apache.tiles.api;
-import com.opensymphony.xwork2.util.TextParseUtil;
+import org.apache.struts2.util.TextParseUtil;
import org.apache.tiles.request.Request;
import java.util.Iterator;
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/StrutsResourceLoader.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/StrutsResourceLoader.java
index 0fe0c1c8be..95dd368c99 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/StrutsResourceLoader.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/StrutsResourceLoader.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.velocity;
-import com.opensymphony.xwork2.util.ClassLoaderUtil;
+import org.apache.struts2.util.ClassLoaderUtil;
import org.apache.velocity.exception.ResourceNotFoundException;
import org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader;
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/StrutsVelocityContext.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/StrutsVelocityContext.java
index 217d2ad283..60dad32502 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/StrutsVelocityContext.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/StrutsVelocityContext.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.velocity;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import org.apache.struts2.util.ValueStackProvider;
import org.apache.velocity.VelocityContext;
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/StrutsVelocityManager.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/StrutsVelocityManager.java
index 66ec2a8e38..dae445d976 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/StrutsVelocityManager.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/StrutsVelocityManager.java
@@ -18,10 +18,10 @@
*/
package org.apache.struts2.views.velocity;
-import com.opensymphony.xwork2.ObjectFactory;
-import com.opensymphony.xwork2.inject.Container;
-import com.opensymphony.xwork2.inject.Inject;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.ObjectFactory;
+import org.apache.struts2.inject.Container;
+import org.apache.struts2.inject.Inject;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.ServletContext;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/VelocityBeanSelectionProvider.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/VelocityBeanSelectionProvider.java
index f53ec66079..cd85ea6799 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/VelocityBeanSelectionProvider.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/VelocityBeanSelectionProvider.java
@@ -18,9 +18,9 @@
*/
package org.apache.struts2.views.velocity;
-import com.opensymphony.xwork2.config.ConfigurationException;
-import com.opensymphony.xwork2.inject.ContainerBuilder;
-import com.opensymphony.xwork2.util.location.LocatableProperties;
+import org.apache.struts2.config.ConfigurationException;
+import org.apache.struts2.inject.ContainerBuilder;
+import org.apache.struts2.util.location.LocatableProperties;
import org.apache.struts2.config.AbstractBeanSelectionProvider;
import org.apache.struts2.config.StrutsBeanSelectionProvider;
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/VelocityManager.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/VelocityManager.java
index 16894896c5..3240e6cd28 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/VelocityManager.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/VelocityManager.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.velocity;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.ServletContext;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/VelocityStrutsUtil.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/VelocityStrutsUtil.java
index da10609dee..b666465506 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/VelocityStrutsUtil.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/VelocityStrutsUtil.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.velocity;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import org.apache.struts2.util.StrutsUtil;
import org.apache.velocity.app.VelocityEngine;
import org.apache.velocity.context.Context;
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/VelocityTools.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/VelocityTools.java
index df3f1ece30..0acad09256 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/VelocityTools.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/VelocityTools.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.velocity;
-import com.opensymphony.xwork2.ActionContext;
+import org.apache.struts2.ActionContext;
import jakarta.servlet.ServletContext;
import org.apache.velocity.app.VelocityEngine;
import org.apache.velocity.context.Context;
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/AbstractDirective.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/AbstractDirective.java
index 3e59969302..ebd533274b 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/AbstractDirective.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/AbstractDirective.java
@@ -40,9 +40,8 @@
import org.apache.velocity.runtime.directive.Directive;
import org.apache.velocity.runtime.parser.node.Node;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.inject.Container;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.inject.Container;
+import org.apache.struts2.util.ValueStack;
public abstract class AbstractDirective extends Directive {
public String getName() {
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/ActionDirective.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/ActionDirective.java
index 0c64517d36..c38dd1e31a 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/ActionDirective.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/ActionDirective.java
@@ -24,7 +24,7 @@
import org.apache.struts2.components.ActionComponent;
import org.apache.struts2.components.Component;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
/**
* @see ActionComponent
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/ActionErrorDirective.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/ActionErrorDirective.java
index ada5f481bb..996ae954da 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/ActionErrorDirective.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/ActionErrorDirective.java
@@ -24,7 +24,7 @@
import org.apache.struts2.components.ActionError;
import org.apache.struts2.components.Component;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
/**
* @see ActionError
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/ActionMessageDirective.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/ActionMessageDirective.java
index c0a3645878..833cf84048 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/ActionMessageDirective.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/ActionMessageDirective.java
@@ -24,7 +24,7 @@
import org.apache.struts2.components.ActionMessage;
import org.apache.struts2.components.Component;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
/**
* @see ActionMessage
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/AnchorDirective.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/AnchorDirective.java
index 8e9ad18d51..2ab6719f21 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/AnchorDirective.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/AnchorDirective.java
@@ -24,7 +24,7 @@
import org.apache.struts2.components.Anchor;
import org.apache.struts2.components.Component;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
/**
* @see Anchor
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/BeanDirective.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/BeanDirective.java
index 021aa4135d..2cabc294a1 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/BeanDirective.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/BeanDirective.java
@@ -24,7 +24,7 @@
import org.apache.struts2.components.Bean;
import org.apache.struts2.components.Component;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
/**
* @see Bean
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/CheckBoxDirective.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/CheckBoxDirective.java
index 9b7bb0ca1e..1cd4db8f93 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/CheckBoxDirective.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/CheckBoxDirective.java
@@ -24,7 +24,7 @@
import org.apache.struts2.components.Checkbox;
import org.apache.struts2.components.Component;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
/**
* @see Checkbox
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/CheckBoxListDirective.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/CheckBoxListDirective.java
index 9c1dcd7d46..74182d88a2 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/CheckBoxListDirective.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/CheckBoxListDirective.java
@@ -24,7 +24,7 @@
import org.apache.struts2.components.CheckboxList;
import org.apache.struts2.components.Component;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
/**
* @see CheckboxList
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/ComboBoxDirective.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/ComboBoxDirective.java
index 8d557f0ed9..a039fbf4ee 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/ComboBoxDirective.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/ComboBoxDirective.java
@@ -24,7 +24,7 @@
import org.apache.struts2.components.ComboBox;
import org.apache.struts2.components.Component;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
/**
* @see ComboBox
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/ComponentDirective.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/ComponentDirective.java
index eed116240b..f1448b7ae3 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/ComponentDirective.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/ComponentDirective.java
@@ -24,7 +24,7 @@
import org.apache.struts2.components.Component;
import org.apache.struts2.components.GenericUIBean;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
/**
* @see GenericUIBean
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/DateDirective.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/DateDirective.java
index aa61d56be7..4ffcdafb06 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/DateDirective.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/DateDirective.java
@@ -24,7 +24,7 @@
import org.apache.struts2.components.Component;
import org.apache.struts2.components.Date;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
/**
* DateDirective
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/DoubleSelectDirective.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/DoubleSelectDirective.java
index 47bec68750..ac68327530 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/DoubleSelectDirective.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/DoubleSelectDirective.java
@@ -24,7 +24,7 @@
import org.apache.struts2.components.Component;
import org.apache.struts2.components.DoubleSelect;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
/**
* @see DoubleSelect
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/FieldErrorDirective.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/FieldErrorDirective.java
index cb310b1b7d..9a8a824919 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/FieldErrorDirective.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/FieldErrorDirective.java
@@ -24,7 +24,7 @@
import org.apache.struts2.components.Component;
import org.apache.struts2.components.FieldError;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
/**
* @see FieldError
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/FileDirective.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/FileDirective.java
index 1738099615..160c2f95c4 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/FileDirective.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/FileDirective.java
@@ -24,7 +24,7 @@
import org.apache.struts2.components.Component;
import org.apache.struts2.components.File;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
/**
* @see File
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/FormDirective.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/FormDirective.java
index 25afa9473a..e6019beeb8 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/FormDirective.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/FormDirective.java
@@ -24,7 +24,7 @@
import org.apache.struts2.components.Component;
import org.apache.struts2.components.Form;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
/**
* @see Form
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/HeadDirective.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/HeadDirective.java
index 44fc3df268..cd90442e8b 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/HeadDirective.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/HeadDirective.java
@@ -24,7 +24,7 @@
import org.apache.struts2.components.Component;
import org.apache.struts2.components.Head;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
/**
* @see Head
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/HiddenDirective.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/HiddenDirective.java
index fbe941b1c9..c6d67e58da 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/HiddenDirective.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/HiddenDirective.java
@@ -24,7 +24,7 @@
import org.apache.struts2.components.Component;
import org.apache.struts2.components.Hidden;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
/**
* @see Hidden
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/I18nDirective.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/I18nDirective.java
index 54f7a49bcd..531ff5a4ac 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/I18nDirective.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/I18nDirective.java
@@ -24,7 +24,7 @@
import org.apache.struts2.components.Component;
import org.apache.struts2.components.I18n;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
/**
* @see I18n
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/IncludeDirective.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/IncludeDirective.java
index 54756d2ab2..04895f25ad 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/IncludeDirective.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/IncludeDirective.java
@@ -24,7 +24,7 @@
import org.apache.struts2.components.Component;
import org.apache.struts2.components.Include;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
/**
* @see Include
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/InputTransferSelectDirective.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/InputTransferSelectDirective.java
index 8e4433d3df..13f1116ae1 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/InputTransferSelectDirective.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/InputTransferSelectDirective.java
@@ -20,7 +20,7 @@
import org.apache.struts2.components.Component;
import org.apache.struts2.components.InputTransferSelect;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/LabelDirective.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/LabelDirective.java
index c24d43be2d..5d4676f9b7 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/LabelDirective.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/LabelDirective.java
@@ -24,7 +24,7 @@
import org.apache.struts2.components.Component;
import org.apache.struts2.components.Label;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
/**
* @see Label
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/OptGroupDirective.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/OptGroupDirective.java
index 00c5c8885d..99dc26a8a4 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/OptGroupDirective.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/OptGroupDirective.java
@@ -24,7 +24,7 @@
import org.apache.struts2.components.Component;
import org.apache.struts2.components.OptGroup;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
/**
* OptGroup velocity directive.
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/OptionTransferSelectDirective.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/OptionTransferSelectDirective.java
index a6689b2329..794671f016 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/OptionTransferSelectDirective.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/OptionTransferSelectDirective.java
@@ -24,7 +24,7 @@
import org.apache.struts2.components.Component;
import org.apache.struts2.components.OptionTransferSelect;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
/**
* @see OptionTransferSelect
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/ParamDirective.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/ParamDirective.java
index c80805afa0..794faebf91 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/ParamDirective.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/ParamDirective.java
@@ -24,7 +24,7 @@
import org.apache.struts2.components.Component;
import org.apache.struts2.components.Param;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
/**
* @see Param
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/PasswordDirective.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/PasswordDirective.java
index 3ffff8dbaf..0e71d93c96 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/PasswordDirective.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/PasswordDirective.java
@@ -24,7 +24,7 @@
import org.apache.struts2.components.Component;
import org.apache.struts2.components.Password;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
/**
* @see Password
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/PropertyDirective.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/PropertyDirective.java
index 90bc397810..63dae82165 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/PropertyDirective.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/PropertyDirective.java
@@ -24,7 +24,7 @@
import org.apache.struts2.components.Component;
import org.apache.struts2.components.Property;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
/**
*/
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/PushDirective.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/PushDirective.java
index a5a79c395b..483909305c 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/PushDirective.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/PushDirective.java
@@ -24,7 +24,7 @@
import org.apache.struts2.components.Component;
import org.apache.struts2.components.Push;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
/**
* @see Push
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/RadioDirective.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/RadioDirective.java
index f5b8def843..9e141ab297 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/RadioDirective.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/RadioDirective.java
@@ -24,7 +24,7 @@
import org.apache.struts2.components.Component;
import org.apache.struts2.components.Radio;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
/**
* @see Radio
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/ResetDirective.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/ResetDirective.java
index 1371a0804e..6041bf82f4 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/ResetDirective.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/ResetDirective.java
@@ -24,7 +24,7 @@
import org.apache.struts2.components.Component;
import org.apache.struts2.components.Reset;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
/**
* @see org.apache.struts2.components.Reset
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/SelectDirective.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/SelectDirective.java
index 7f5efde0cb..4e5eb8a498 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/SelectDirective.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/SelectDirective.java
@@ -24,7 +24,7 @@
import org.apache.struts2.components.Component;
import org.apache.struts2.components.Select;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
/**
* @see Select
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/SetDirective.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/SetDirective.java
index cbf9f83541..2d18110830 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/SetDirective.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/SetDirective.java
@@ -24,7 +24,7 @@
import org.apache.struts2.components.Component;
import org.apache.struts2.components.Set;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
/**
* @see Set
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/SubmitDirective.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/SubmitDirective.java
index 6b8e8a986e..88b2658647 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/SubmitDirective.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/SubmitDirective.java
@@ -24,7 +24,7 @@
import org.apache.struts2.components.Component;
import org.apache.struts2.components.Submit;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
/**
* @see Submit
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/TextAreaDirective.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/TextAreaDirective.java
index a533f14b2c..0b7fe5f184 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/TextAreaDirective.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/TextAreaDirective.java
@@ -24,7 +24,7 @@
import org.apache.struts2.components.Component;
import org.apache.struts2.components.TextArea;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
/**
* @see TextArea
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/TextDirective.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/TextDirective.java
index de8126ced0..c3867b7b6c 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/TextDirective.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/TextDirective.java
@@ -24,7 +24,7 @@
import org.apache.struts2.components.Component;
import org.apache.struts2.components.Text;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
/**
* @see Text
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/TextFieldDirective.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/TextFieldDirective.java
index 1fd115fc41..46f4dbd786 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/TextFieldDirective.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/TextFieldDirective.java
@@ -24,7 +24,7 @@
import org.apache.struts2.components.Component;
import org.apache.struts2.components.TextField;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
/**
* @see TextField
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/TokenDirective.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/TokenDirective.java
index ce112b5b3a..32dc75bbd4 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/TokenDirective.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/TokenDirective.java
@@ -24,7 +24,7 @@
import org.apache.struts2.components.Component;
import org.apache.struts2.components.Token;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
/**
* @see Token
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/URLDirective.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/URLDirective.java
index c43707d767..e2e2b18883 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/URLDirective.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/URLDirective.java
@@ -24,7 +24,7 @@
import org.apache.struts2.components.Component;
import org.apache.struts2.components.URL;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
/**
* @see URL
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/UpDownSelectDirective.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/UpDownSelectDirective.java
index 77466c89c4..b7e052a4fd 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/UpDownSelectDirective.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/UpDownSelectDirective.java
@@ -24,7 +24,7 @@
import org.apache.struts2.components.Component;
import org.apache.struts2.components.UpDownSelect;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
/**
* @see UpDownSelect
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/result/VelocityResult.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/result/VelocityResult.java
index 07a3d97589..f962d53c10 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/result/VelocityResult.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/result/VelocityResult.java
@@ -18,10 +18,10 @@
*/
package org.apache.struts2.views.velocity.result;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.inject.Inject;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.inject.Inject;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.Servlet;
import jakarta.servlet.ServletContext;
import jakarta.servlet.http.HttpServletRequest;
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/template/VelocityTemplateEngine.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/template/VelocityTemplateEngine.java
index 9c62b1c805..3c14498bb5 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/template/VelocityTemplateEngine.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/template/VelocityTemplateEngine.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.velocity.template;
-import com.opensymphony.xwork2.inject.Inject;
+import org.apache.struts2.inject.Inject;
import jakarta.servlet.ServletContext;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
diff --git a/plugins/velocity/src/test/java/org/apache/struts2/views/velocity/StrutsVelocityContextTest.java b/plugins/velocity/src/test/java/org/apache/struts2/views/velocity/StrutsVelocityContextTest.java
index 60490c6aff..1ab124c63a 100644
--- a/plugins/velocity/src/test/java/org/apache/struts2/views/velocity/StrutsVelocityContextTest.java
+++ b/plugins/velocity/src/test/java/org/apache/struts2/views/velocity/StrutsVelocityContextTest.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.velocity;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.util.ValueStack;
import org.apache.velocity.VelocityContext;
import org.junit.Before;
import org.junit.Rule;
diff --git a/plugins/velocity/src/test/java/org/apache/struts2/views/velocity/StrutsVelocityManagerTest.java b/plugins/velocity/src/test/java/org/apache/struts2/views/velocity/StrutsVelocityManagerTest.java
index 098fe67ca2..3987843b14 100644
--- a/plugins/velocity/src/test/java/org/apache/struts2/views/velocity/StrutsVelocityManagerTest.java
+++ b/plugins/velocity/src/test/java/org/apache/struts2/views/velocity/StrutsVelocityManagerTest.java
@@ -18,8 +18,8 @@
*/
package org.apache.struts2.views.velocity;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.util.ValueStack;
import jakarta.servlet.ServletContext;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
diff --git a/plugins/velocity/src/test/java/org/apache/struts2/views/velocity/result/VelocityResultTest.java b/plugins/velocity/src/test/java/org/apache/struts2/views/velocity/result/VelocityResultTest.java
index fe26dc0253..1fe04573d5 100644
--- a/plugins/velocity/src/test/java/org/apache/struts2/views/velocity/result/VelocityResultTest.java
+++ b/plugins/velocity/src/test/java/org/apache/struts2/views/velocity/result/VelocityResultTest.java
@@ -18,10 +18,10 @@
*/
package org.apache.struts2.views.velocity.result;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.ActionProxy;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.ActionProxy;
+import org.apache.struts2.util.ValueStack;
import org.apache.struts2.junit.XWorkJUnit4TestCase;
import org.apache.struts2.result.StrutsResultSupport;
import org.apache.velocity.Template;
diff --git a/plugins/velocity/src/test/java/org/apache/struts2/views/velocity/template/VelocityTemplateEngineTest.java b/plugins/velocity/src/test/java/org/apache/struts2/views/velocity/template/VelocityTemplateEngineTest.java
index b206e2a4f8..1e97fa3835 100644
--- a/plugins/velocity/src/test/java/org/apache/struts2/views/velocity/template/VelocityTemplateEngineTest.java
+++ b/plugins/velocity/src/test/java/org/apache/struts2/views/velocity/template/VelocityTemplateEngineTest.java
@@ -20,8 +20,8 @@
import com.mockobjects.dynamic.C;
import com.mockobjects.dynamic.Mock;
-import com.opensymphony.xwork2.XWorkTestCase;
-import com.opensymphony.xwork2.inject.Container;
+import org.apache.struts2.XWorkTestCase;
+import org.apache.struts2.inject.Container;
import org.apache.struts2.components.template.FreemarkerTemplateEngine;
import org.apache.struts2.components.template.JspTemplateEngine;
import org.apache.struts2.components.template.Template;
diff --git a/plugins/xslt/src/main/java/org/apache/struts2/result/xslt/StringAdapter.java b/plugins/xslt/src/main/java/org/apache/struts2/result/xslt/StringAdapter.java
index 927019a5ad..4c401f4361 100644
--- a/plugins/xslt/src/main/java/org/apache/struts2/result/xslt/StringAdapter.java
+++ b/plugins/xslt/src/main/java/org/apache/struts2/result/xslt/StringAdapter.java
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.result.xslt;
-import com.opensymphony.xwork2.util.DomHelper;
+import org.apache.struts2.util.DomHelper;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.w3c.dom.Node;
diff --git a/plugins/xslt/src/main/java/org/apache/struts2/result/xslt/XSLTResult.java b/plugins/xslt/src/main/java/org/apache/struts2/result/xslt/XSLTResult.java
index 3670fb9291..26f618b607 100644
--- a/plugins/xslt/src/main/java/org/apache/struts2/result/xslt/XSLTResult.java
+++ b/plugins/xslt/src/main/java/org/apache/struts2/result/xslt/XSLTResult.java
@@ -18,11 +18,11 @@
*/
package org.apache.struts2.result.xslt;
-import com.opensymphony.xwork2.ActionInvocation;
-import com.opensymphony.xwork2.Result;
-import com.opensymphony.xwork2.inject.Inject;
-import com.opensymphony.xwork2.util.TextParseUtil;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.ActionInvocation;
+import org.apache.struts2.Result;
+import org.apache.struts2.inject.Inject;
+import org.apache.struts2.util.TextParseUtil;
+import org.apache.struts2.util.ValueStack;
import org.apache.commons.lang3.BooleanUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
diff --git a/plugins/xslt/src/test/java/org/apache/struts2/result/xslt/XSLTResultTest.java b/plugins/xslt/src/test/java/org/apache/struts2/result/xslt/XSLTResultTest.java
index 861b02551d..ee3e1b36fc 100644
--- a/plugins/xslt/src/test/java/org/apache/struts2/result/xslt/XSLTResultTest.java
+++ b/plugins/xslt/src/test/java/org/apache/struts2/result/xslt/XSLTResultTest.java
@@ -18,12 +18,12 @@
*/
package org.apache.struts2.result.xslt;
-import com.opensymphony.xwork2.Action;
-import com.opensymphony.xwork2.ActionContext;
-import com.opensymphony.xwork2.Result;
-import com.opensymphony.xwork2.mock.MockActionInvocation;
-import com.opensymphony.xwork2.util.ClassLoaderUtil;
-import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.Action;
+import org.apache.struts2.ActionContext;
+import org.apache.struts2.Result;
+import org.apache.struts2.mock.MockActionInvocation;
+import org.apache.struts2.util.ClassLoaderUtil;
+import org.apache.struts2.util.ValueStack;
import junit.framework.TestCase;
import org.apache.struts2.ServletActionContext;
import org.apache.struts2.junit.StrutsTestCase;
@@ -262,7 +262,7 @@ protected void setUp() throws Exception {
MyAction action = new MyAction();
- mai = new com.opensymphony.xwork2.mock.MockActionInvocation();
+ mai = new MockActionInvocation();
mai.setAction(action);
mai.setStack(stack);
mai.setInvocationContext(ActionContext.getContext());
diff --git a/plugins/xslt/src/test/resources/XSLTResultTest-val.xml b/plugins/xslt/src/test/resources/XSLTResultTest-val.xml
index a32a07a94c..aa7b6cf6cf 100644
--- a/plugins/xslt/src/test/resources/XSLTResultTest-val.xml
+++ b/plugins/xslt/src/test/resources/XSLTResultTest-val.xml
@@ -20,17 +20,17 @@
*/
-->
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+