From dd6bb139f759db5e4e0dee8a12ccda0de3081ae0 Mon Sep 17 00:00:00 2001 From: Lukasz Lenart Date: Sat, 2 Nov 2024 14:19:54 +0100 Subject: [PATCH 1/5] WW-5459 Moves Action interface into org.apache.struts2.action package --- .../org/apache/struts2/showcase/action/JSPEvalAction.java | 2 +- .../org/apache/struts2/showcase/ajax/AjaxTestAction.java | 2 +- .../showcase/chat/ChatAuthenticationInterceptor.java | 2 +- .../org/apache/struts2/showcase/chat/ChatInterceptor.java | 2 +- .../struts2/showcase/filedownload/FileDownloadAction.java | 2 +- core/src/main/java/org/apache/struts2/ActionContext.java | 1 + core/src/main/java/org/apache/struts2/ActionInvocation.java | 1 + core/src/main/java/org/apache/struts2/ActionSupport.java | 1 + .../java/org/apache/struts2/DefaultActionInvocation.java | 1 + .../main/java/org/apache/struts2/{ => action}/Action.java | 2 +- .../config/providers/XmlDocConfigurationProvider.java | 2 +- .../struts2/interceptor/DefaultWorkflowInterceptor.java | 2 +- .../struts2/interceptor/ExecuteAndWaitInterceptor.java | 3 +-- .../java/org/apache/struts2/interceptor/Interceptor.java | 5 +++-- .../org/apache/struts2/interceptor/PreResultListener.java | 4 ++-- .../apache/struts2/interceptor/annotations/InputConfig.java | 2 +- .../struts2/interceptor/parameter/StrutsParameter.java | 4 +++- core/src/main/java/org/apache/struts2/result/Result.java | 2 ++ .../java/org/apache/struts2/util/AppendIteratorFilter.java | 2 +- .../java/org/apache/struts2/util/IteratorGenerator.java | 2 +- .../java/org/apache/struts2/util/MergeIteratorFilter.java | 2 +- .../java/org/apache/struts2/util/SortIteratorFilter.java | 2 +- .../java/org/apache/struts2/util/SubsetIteratorFilter.java | 2 +- .../src/test/java/org/apache/struts2/ActionNestingTest.java | 1 + .../src/test/java/org/apache/struts2/ActionSupportTest.java | 1 + .../java/org/apache/struts2/ExternalReferenceAction.java | 2 ++ core/src/test/java/org/apache/struts2/NestedAction.java | 1 + core/src/test/java/org/apache/struts2/SimpleFooAction.java | 2 ++ core/src/test/java/org/apache/struts2/TestAction.java | 3 +-- .../java/org/apache/struts2/TestConfigurationProvider.java | 5 +---- .../test/java/org/apache/struts2/components/FormTest.java | 2 +- .../providers/ConfigurationProviderOgnlAllowlistTest.java | 6 +++--- .../struts2/config/providers/MockConfigurationProvider.java | 2 +- .../struts2/config/providers/NoNoArgsConstructorAction.java | 2 +- .../struts2/config/providers/PrivateConstructorAction.java | 2 +- .../providers/XmlConfigurationProviderResultsTest.java | 2 +- .../org/apache/struts2/conversion/ConversionTestAction.java | 2 +- .../apache/struts2/interceptor/AliasInterceptorTest.java | 2 +- .../apache/struts2/interceptor/ChainingInterceptorTest.java | 2 +- .../interceptor/ChainingInterceptorWithConfigTest.java | 2 +- .../struts2/interceptor/ConversionErrorInterceptorTest.java | 2 +- .../apache/struts2/interceptor/CookieInterceptorTest.java | 2 +- .../struts2/interceptor/DefaultWorkflowInterceptorTest.java | 2 +- .../interceptor/ExceptionMappingInterceptorTest.java | 2 +- .../struts2/interceptor/ExecuteAndWaitDelayAction.java | 2 +- .../struts2/interceptor/ExecuteAndWaitInterceptorTest.java | 2 +- .../org/apache/struts2/interceptor/I18nInterceptorTest.java | 2 +- .../struts2/interceptor/MessageStoreInterceptorTest.java | 3 +-- .../interceptor/MessageStorePreResultListenerTest.java | 2 +- .../struts2/interceptor/ModelDrivenInterceptorTest.java | 2 +- .../apache/struts2/interceptor/PreResultListenerTest.java | 2 +- .../apache/struts2/interceptor/PrepareInterceptorTest.java | 2 +- .../interceptor/ScopedModelDrivenInterceptorTest.java | 2 +- .../struts2/interceptor/ServletConfigInterceptorTest.java | 2 +- .../interceptor/StrutsConversionErrorInterceptorTest.java | 2 +- .../apache/struts2/interceptor/TokenInterceptorTest.java | 2 +- .../interceptor/TokenSessionStoreInterceptorTest.java | 2 +- .../struts2/interceptor/ValidationErrorAwareTest.java | 2 +- .../ValidationInterceptorPrefixMethodInvocationTest.java | 2 +- .../struts2/interceptor/annotations/AnnotatedAction.java | 2 +- .../annotations/AnnotationWorkflowInterceptorTest.java | 2 +- .../interceptor/annotations/ShortcircuitedAction.java | 2 +- .../interceptor/parameter/ParametersInterceptorTest.java | 2 +- .../java/org/apache/struts2/result/StreamResultTest.java | 2 +- .../src/test/java/org/apache/struts2/util/MyBeanAction.java | 2 +- .../struts2/util/StrutsLocalizedTextProviderTest.java | 2 +- .../validator/AnnotationActionValidatorManagerTest.java | 2 +- .../apache/struts2/validator/ExpressionValidatorTest.java | 2 +- .../apache/struts2/validator/ModelDrivenValidationTest.java | 2 +- .../org/apache/struts2/validator/StringValidatorTest.java | 2 +- .../struts2/validator/VisitorFieldValidatorModelTest.java | 2 +- .../apache/struts2/validator/VisitorFieldValidatorTest.java | 2 +- .../java/org/apache/struts2/views/jsp/AbstractTagTest.java | 2 +- .../java/org/apache/struts2/views/jsp/ActionTagTest.java | 2 +- .../org/apache/struts2/views/jsp/AppendIteratorTagTest.java | 2 +- .../apache/struts2/views/jsp/IteratorGeneratorTagTest.java | 2 +- .../org/apache/struts2/views/jsp/MergeIteratorTagTest.java | 2 +- .../org/apache/struts2/views/jsp/SortIteratorTagTest.java | 2 +- .../org/apache/struts2/views/jsp/SubsetIteratorTagTest.java | 2 +- .../test/java/org/apache/struts2/views/jsp/TextTagTest.java | 2 +- .../org/apache/struts2/views/jsp/ui/ActionErrorTagTest.java | 2 +- .../apache/struts2/views/jsp/ui/ActionMessageTagTest.java | 2 +- .../org/apache/struts2/views/jsp/ui/FieldErrorTagTest.java | 2 +- .../java/org/apache/struts2/views/jsp/ui/FormTagTest.java | 2 +- .../org/apache/struts2/views/jsp/ui/LocaleTestAction.java | 2 +- .../apache/struts2/views/jsp/ui/UpDownSelectTagTest.java | 2 +- .../apache/struts2/convention/ConventionUnknownHandler.java | 2 +- .../apache/struts2/convention/DefaultResultMapBuilder.java | 2 +- .../struts2/convention/PackageBasedActionConfigBuilder.java | 4 ++-- .../org/apache/struts2/convention/annotation/Result.java | 2 +- .../java/org/apache/struts2/convention/actions/Skip.java | 2 +- .../actions/defaultinterceptor/SingleActionNameAction2.java | 2 +- .../org/apache/struts2/convention/actions/idx/Index.java | 2 +- .../apache/struts2/convention/actions/idx/idx2/Index.java | 2 +- .../org/apache/struts2/convention/actions/skip/Index.java | 2 +- .../main/java/org/apache/struts2/json/JSONInterceptor.java | 2 +- .../org/apache/struts2/json/JSONValidationInterceptor.java | 2 +- .../apache/struts2/json/JSONValidationInterceptorTest.java | 2 +- .../src/test/java/org/apache/struts2/json/TestAction.java | 2 +- .../struts2/junit/StrutsSpringJUnit4TestCaseTest.java | 2 +- .../java/org/apache/struts2/junit/StrutsTestCaseTest.java | 2 +- .../java/org/apache/struts2/rest/RestActionInvocation.java | 2 +- .../org/apache/struts2/rest/RestWorkflowInterceptor.java | 2 +- .../org/apache/struts2/rest/ContentTypeInterceptorTest.java | 2 +- .../org/apache/struts2/spring/ActionsFromSpringTest.java | 2 +- .../java/org/apache/struts2/spring/ExecuteInterceptor.java | 2 +- .../org/apache/struts2/spring/SpringObjectFactoryTest.java | 2 +- .../java/org/apache/struts2/result/xslt/XSLTResultTest.java | 2 +- 108 files changed, 119 insertions(+), 109 deletions(-) rename core/src/main/java/org/apache/struts2/{ => action}/Action.java (98%) diff --git a/apps/showcase/src/main/java/org/apache/struts2/showcase/action/JSPEvalAction.java b/apps/showcase/src/main/java/org/apache/struts2/showcase/action/JSPEvalAction.java index 8e0e71a9ae..43e15e0134 100644 --- a/apps/showcase/src/main/java/org/apache/struts2/showcase/action/JSPEvalAction.java +++ b/apps/showcase/src/main/java/org/apache/struts2/showcase/action/JSPEvalAction.java @@ -18,7 +18,7 @@ */ package org.apache.struts2.showcase.action; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.interceptor.annotations.After; import org.apache.struts2.ServletActionContext; import org.apache.struts2.interceptor.parameter.StrutsParameter; diff --git a/apps/showcase/src/main/java/org/apache/struts2/showcase/ajax/AjaxTestAction.java b/apps/showcase/src/main/java/org/apache/struts2/showcase/ajax/AjaxTestAction.java index 02cd9f1f82..ecbf9c0db6 100644 --- a/apps/showcase/src/main/java/org/apache/struts2/showcase/ajax/AjaxTestAction.java +++ b/apps/showcase/src/main/java/org/apache/struts2/showcase/ajax/AjaxTestAction.java @@ -20,7 +20,7 @@ */ package org.apache.struts2.showcase.ajax; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.interceptor.parameter.StrutsParameter; import java.io.Serializable; diff --git a/apps/showcase/src/main/java/org/apache/struts2/showcase/chat/ChatAuthenticationInterceptor.java b/apps/showcase/src/main/java/org/apache/struts2/showcase/chat/ChatAuthenticationInterceptor.java index ad352ff522..fb775075b7 100644 --- a/apps/showcase/src/main/java/org/apache/struts2/showcase/chat/ChatAuthenticationInterceptor.java +++ b/apps/showcase/src/main/java/org/apache/struts2/showcase/chat/ChatAuthenticationInterceptor.java @@ -21,7 +21,7 @@ package org.apache.struts2.showcase.chat; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionContext; import org.apache.struts2.ActionInvocation; import org.apache.struts2.interceptor.AbstractInterceptor; diff --git a/apps/showcase/src/main/java/org/apache/struts2/showcase/chat/ChatInterceptor.java b/apps/showcase/src/main/java/org/apache/struts2/showcase/chat/ChatInterceptor.java index 52678d2889..e5b136f34e 100644 --- a/apps/showcase/src/main/java/org/apache/struts2/showcase/chat/ChatInterceptor.java +++ b/apps/showcase/src/main/java/org/apache/struts2/showcase/chat/ChatInterceptor.java @@ -20,7 +20,7 @@ */ package org.apache.struts2.showcase.chat; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionContext; import org.apache.struts2.ActionInvocation; import org.apache.struts2.interceptor.AbstractInterceptor; diff --git a/apps/showcase/src/main/java/org/apache/struts2/showcase/filedownload/FileDownloadAction.java b/apps/showcase/src/main/java/org/apache/struts2/showcase/filedownload/FileDownloadAction.java index da35e7bb82..4c667b644a 100644 --- a/apps/showcase/src/main/java/org/apache/struts2/showcase/filedownload/FileDownloadAction.java +++ b/apps/showcase/src/main/java/org/apache/struts2/showcase/filedownload/FileDownloadAction.java @@ -20,7 +20,7 @@ */ package org.apache.struts2.showcase.filedownload; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ServletActionContext; import org.apache.struts2.interceptor.parameter.StrutsParameter; diff --git a/core/src/main/java/org/apache/struts2/ActionContext.java b/core/src/main/java/org/apache/struts2/ActionContext.java index 2f023bc514..febedd04fa 100644 --- a/core/src/main/java/org/apache/struts2/ActionContext.java +++ b/core/src/main/java/org/apache/struts2/ActionContext.java @@ -22,6 +22,7 @@ import jakarta.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpServletResponse; import jakarta.servlet.jsp.PageContext; +import org.apache.struts2.action.Action; import org.apache.struts2.conversion.impl.ConversionData; import org.apache.struts2.dispatcher.HttpParameters; import org.apache.struts2.dispatcher.mapper.ActionMapping; diff --git a/core/src/main/java/org/apache/struts2/ActionInvocation.java b/core/src/main/java/org/apache/struts2/ActionInvocation.java index f203cc777b..b38014980a 100644 --- a/core/src/main/java/org/apache/struts2/ActionInvocation.java +++ b/core/src/main/java/org/apache/struts2/ActionInvocation.java @@ -18,6 +18,7 @@ */ package org.apache.struts2; +import org.apache.struts2.action.Action; import org.apache.struts2.interceptor.PreResultListener; import org.apache.struts2.result.Result; import org.apache.struts2.util.ValueStack; diff --git a/core/src/main/java/org/apache/struts2/ActionSupport.java b/core/src/main/java/org/apache/struts2/ActionSupport.java index 92ce264fe8..f5d58b0918 100644 --- a/core/src/main/java/org/apache/struts2/ActionSupport.java +++ b/core/src/main/java/org/apache/struts2/ActionSupport.java @@ -20,6 +20,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import org.apache.struts2.action.Action; import org.apache.struts2.conversion.impl.ConversionData; import org.apache.struts2.inject.Container; import org.apache.struts2.inject.Inject; diff --git a/core/src/main/java/org/apache/struts2/DefaultActionInvocation.java b/core/src/main/java/org/apache/struts2/DefaultActionInvocation.java index b146b7c741..17ab2e71e7 100644 --- a/core/src/main/java/org/apache/struts2/DefaultActionInvocation.java +++ b/core/src/main/java/org/apache/struts2/DefaultActionInvocation.java @@ -22,6 +22,7 @@ import ognl.NoSuchPropertyException; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import org.apache.struts2.action.Action; import org.apache.struts2.config.ConfigurationException; import org.apache.struts2.config.entities.ActionConfig; import org.apache.struts2.config.entities.InterceptorMapping; diff --git a/core/src/main/java/org/apache/struts2/Action.java b/core/src/main/java/org/apache/struts2/action/Action.java similarity index 98% rename from core/src/main/java/org/apache/struts2/Action.java rename to core/src/main/java/org/apache/struts2/action/Action.java index cc3fb83ac1..11064054bd 100644 --- a/core/src/main/java/org/apache/struts2/Action.java +++ b/core/src/main/java/org/apache/struts2/action/Action.java @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.apache.struts2; +package org.apache.struts2.action; /** * All actions may implement this interface, which exposes the execute() method. diff --git a/core/src/main/java/org/apache/struts2/config/providers/XmlDocConfigurationProvider.java b/core/src/main/java/org/apache/struts2/config/providers/XmlDocConfigurationProvider.java index 2ae13bcce0..da44b71f64 100644 --- a/core/src/main/java/org/apache/struts2/config/providers/XmlDocConfigurationProvider.java +++ b/core/src/main/java/org/apache/struts2/config/providers/XmlDocConfigurationProvider.java @@ -18,7 +18,7 @@ */ package org.apache.struts2.config.providers; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ObjectFactory; import org.apache.struts2.config.BeanSelectionProvider; import org.apache.struts2.config.Configuration; diff --git a/core/src/main/java/org/apache/struts2/interceptor/DefaultWorkflowInterceptor.java b/core/src/main/java/org/apache/struts2/interceptor/DefaultWorkflowInterceptor.java index 90f7f70a8f..8419c992b5 100644 --- a/core/src/main/java/org/apache/struts2/interceptor/DefaultWorkflowInterceptor.java +++ b/core/src/main/java/org/apache/struts2/interceptor/DefaultWorkflowInterceptor.java @@ -22,7 +22,7 @@ import org.apache.commons.lang3.reflect.MethodUtils; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionInvocation; import org.apache.struts2.interceptor.annotations.InputConfig; diff --git a/core/src/main/java/org/apache/struts2/interceptor/ExecuteAndWaitInterceptor.java b/core/src/main/java/org/apache/struts2/interceptor/ExecuteAndWaitInterceptor.java index 54fa9c1138..5ab03f15a7 100644 --- a/core/src/main/java/org/apache/struts2/interceptor/ExecuteAndWaitInterceptor.java +++ b/core/src/main/java/org/apache/struts2/interceptor/ExecuteAndWaitInterceptor.java @@ -18,14 +18,13 @@ */ package org.apache.struts2.interceptor; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionContext; import org.apache.struts2.ActionInvocation; import org.apache.struts2.ActionProxy; import org.apache.struts2.config.entities.ResultConfig; import org.apache.struts2.inject.Container; import org.apache.struts2.inject.Inject; -import org.apache.struts2.interceptor.MethodFilterInterceptor; import jakarta.servlet.http.HttpSession; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/core/src/main/java/org/apache/struts2/interceptor/Interceptor.java b/core/src/main/java/org/apache/struts2/interceptor/Interceptor.java index 58beef2847..c277c74ccf 100644 --- a/core/src/main/java/org/apache/struts2/interceptor/Interceptor.java +++ b/core/src/main/java/org/apache/struts2/interceptor/Interceptor.java @@ -19,6 +19,7 @@ package org.apache.struts2.interceptor; import org.apache.struts2.ActionInvocation; +import org.apache.struts2.action.Action; import java.io.Serializable; @@ -42,7 +43,7 @@ *

* Interceptors must be stateless and not assume that a new instance will be created for each request or Action. * Interceptors may choose to either short-circuit the {@link ActionInvocation} execution and return a return code - * (such as {@link org.apache.struts2.Action#SUCCESS}), or it may choose to do some processing before + * (such as {@link Action#SUCCESS}), or it may choose to do some processing before * and/or after delegating the rest of the procesing using {@link ActionInvocation#invoke()}. *

* @@ -215,7 +216,7 @@ public interface Interceptor extends Serializable { * * @param invocation the action invocation * @return the return code, either returned from {@link ActionInvocation#invoke()}, or from the interceptor itself. - * @throws Exception any system-level error, as defined in {@link org.apache.struts2.Action#execute()}. + * @throws Exception any system-level error, as defined in {@link Action#execute()}. */ String intercept(ActionInvocation invocation) throws Exception; diff --git a/core/src/main/java/org/apache/struts2/interceptor/PreResultListener.java b/core/src/main/java/org/apache/struts2/interceptor/PreResultListener.java index affdfc318d..6d304db57c 100644 --- a/core/src/main/java/org/apache/struts2/interceptor/PreResultListener.java +++ b/core/src/main/java/org/apache/struts2/interceptor/PreResultListener.java @@ -23,7 +23,7 @@ /** * PreResultListeners may be registered with an {@link ActionInvocation} to get a callback after the - * {@link org.apache.struts2.Action} has been executed but before the {@link Result} + * {@link org.apache.struts2.action.Action} has been executed but before the {@link Result} * is executed. * * @author Jason Carreira @@ -31,7 +31,7 @@ public interface PreResultListener { /** - * This callback method will be called after the {@link org.apache.struts2.Action} execution and + * This callback method will be called after the {@link org.apache.struts2.action.Action} execution and * before the {@link Result} execution. * * @param invocation the action invocation diff --git a/core/src/main/java/org/apache/struts2/interceptor/annotations/InputConfig.java b/core/src/main/java/org/apache/struts2/interceptor/annotations/InputConfig.java index 695f4f7509..8eaf163d8f 100644 --- a/core/src/main/java/org/apache/struts2/interceptor/annotations/InputConfig.java +++ b/core/src/main/java/org/apache/struts2/interceptor/annotations/InputConfig.java @@ -23,7 +23,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; /** * diff --git a/core/src/main/java/org/apache/struts2/interceptor/parameter/StrutsParameter.java b/core/src/main/java/org/apache/struts2/interceptor/parameter/StrutsParameter.java index 99de060ff8..1fbafa3c7f 100644 --- a/core/src/main/java/org/apache/struts2/interceptor/parameter/StrutsParameter.java +++ b/core/src/main/java/org/apache/struts2/interceptor/parameter/StrutsParameter.java @@ -18,13 +18,15 @@ */ package org.apache.struts2.interceptor.parameter; +import org.apache.struts2.action.Action; + import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** - * Used to annotate public getter/setter methods or fields on {@link org.apache.struts2.Action} classes that are + * Used to annotate public getter/setter methods or fields on {@link Action} classes that are * intended for parameter injection by the {@link ParametersInterceptor}. * * @since 6.4.0 diff --git a/core/src/main/java/org/apache/struts2/result/Result.java b/core/src/main/java/org/apache/struts2/result/Result.java index c30083d863..fbbc86cd35 100644 --- a/core/src/main/java/org/apache/struts2/result/Result.java +++ b/core/src/main/java/org/apache/struts2/result/Result.java @@ -21,6 +21,8 @@ import org.apache.struts2.Action; import org.apache.struts2.ActionInvocation; +import org.apache.struts2.action.Action; + import java.io.Serializable; /** 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 fafbadb754..c10d102eff 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 org.apache.struts2.Action; +import org.apache.struts2.action.Action; import java.util.ArrayList; import java.util.Iterator; 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 b193d6ad1b..4aa0619518 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 org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; 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 0f00ec56b3..fefeb4a263 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 org.apache.struts2.Action; +import org.apache.struts2.action.Action; import java.util.ArrayList; import java.util.Iterator; 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 e126c5c0d2..e22517b4a2 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 org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; 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 41564409ea..662ea02948 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 org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; diff --git a/core/src/test/java/org/apache/struts2/ActionNestingTest.java b/core/src/test/java/org/apache/struts2/ActionNestingTest.java index f925eed35a..a64260d731 100644 --- a/core/src/test/java/org/apache/struts2/ActionNestingTest.java +++ b/core/src/test/java/org/apache/struts2/ActionNestingTest.java @@ -18,6 +18,7 @@ */ package org.apache.struts2; +import org.apache.struts2.action.Action; import org.apache.struts2.config.Configuration; import org.apache.struts2.config.ConfigurationProvider; import org.apache.struts2.config.entities.ActionConfig; diff --git a/core/src/test/java/org/apache/struts2/ActionSupportTest.java b/core/src/test/java/org/apache/struts2/ActionSupportTest.java index 79420172cd..e42271deab 100644 --- a/core/src/test/java/org/apache/struts2/ActionSupportTest.java +++ b/core/src/test/java/org/apache/struts2/ActionSupportTest.java @@ -18,6 +18,7 @@ */ package org.apache.struts2; +import org.apache.struts2.action.Action; import org.apache.struts2.conversion.impl.ConversionData; import org.apache.struts2.util.ValueStack; import org.apache.struts2.interceptor.parameter.StrutsParameter; diff --git a/core/src/test/java/org/apache/struts2/ExternalReferenceAction.java b/core/src/test/java/org/apache/struts2/ExternalReferenceAction.java index 469f97538e..8c44aeb41e 100644 --- a/core/src/test/java/org/apache/struts2/ExternalReferenceAction.java +++ b/core/src/test/java/org/apache/struts2/ExternalReferenceAction.java @@ -18,6 +18,8 @@ */ package org.apache.struts2; +import org.apache.struts2.action.Action; + public class ExternalReferenceAction implements Action { private Foo foo; diff --git a/core/src/test/java/org/apache/struts2/NestedAction.java b/core/src/test/java/org/apache/struts2/NestedAction.java index 75f8783df3..28c9ea2246 100644 --- a/core/src/test/java/org/apache/struts2/NestedAction.java +++ b/core/src/test/java/org/apache/struts2/NestedAction.java @@ -18,6 +18,7 @@ */ package org.apache.struts2; +import org.apache.struts2.action.Action; import org.apache.struts2.util.ValueStack; import org.junit.Assert; diff --git a/core/src/test/java/org/apache/struts2/SimpleFooAction.java b/core/src/test/java/org/apache/struts2/SimpleFooAction.java index 9c0804518c..ff3c358017 100644 --- a/core/src/test/java/org/apache/struts2/SimpleFooAction.java +++ b/core/src/test/java/org/apache/struts2/SimpleFooAction.java @@ -19,6 +19,8 @@ package org.apache.struts2; +import org.apache.struts2.action.Action; + /** * DOCUMENT ME! * diff --git a/core/src/test/java/org/apache/struts2/TestAction.java b/core/src/test/java/org/apache/struts2/TestAction.java index ebcd7f18dc..d8f5b0d421 100644 --- a/core/src/test/java/org/apache/struts2/TestAction.java +++ b/core/src/test/java/org/apache/struts2/TestAction.java @@ -18,8 +18,7 @@ */ package org.apache.struts2; -import org.apache.struts2.Action; -import org.apache.struts2.ActionSupport; +import org.apache.struts2.action.Action; import org.apache.struts2.util.ValueStack; import org.apache.struts2.validator.annotations.RequiredFieldValidator; import org.apache.struts2.validator.annotations.RequiredStringValidator; diff --git a/core/src/test/java/org/apache/struts2/TestConfigurationProvider.java b/core/src/test/java/org/apache/struts2/TestConfigurationProvider.java index a401d3ae43..34d1ecd5b6 100644 --- a/core/src/test/java/org/apache/struts2/TestConfigurationProvider.java +++ b/core/src/test/java/org/apache/struts2/TestConfigurationProvider.java @@ -18,10 +18,7 @@ */ package org.apache.struts2; -import org.apache.struts2.Action; -import org.apache.struts2.ActionProxyFactory; -import org.apache.struts2.DefaultActionProxyFactory; -import org.apache.struts2.ObjectFactory; +import org.apache.struts2.action.Action; import org.apache.struts2.config.Configuration; import org.apache.struts2.config.ConfigurationException; import org.apache.struts2.config.ConfigurationProvider; 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 69a213706a..5f3ed682fe 100644 --- a/core/src/test/java/org/apache/struts2/components/FormTest.java +++ b/core/src/test/java/org/apache/struts2/components/FormTest.java @@ -18,7 +18,7 @@ */ package org.apache.struts2.components; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionContext; import org.apache.struts2.ActionInvocation; import org.apache.struts2.ActionProxy; 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 index 45e6dd2c62..7d243150a9 100644 --- a/core/src/test/java/org/apache/struts2/config/providers/ConfigurationProviderOgnlAllowlistTest.java +++ b/core/src/test/java/org/apache/struts2/config/providers/ConfigurationProviderOgnlAllowlistTest.java @@ -58,7 +58,7 @@ public void allowList() throws Exception { 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.action.Action"), Class.forName("org.apache.struts2.interceptor.AbstractInterceptor"), Class.forName("org.apache.struts2.result.Result"), Class.forName("org.apache.struts2.SimpleAction") @@ -82,7 +82,7 @@ public void allowlist_1only() throws Exception { 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.action.Action"), Class.forName("org.apache.struts2.interceptor.AbstractInterceptor"), Class.forName("org.apache.struts2.result.Result"), Class.forName("org.apache.struts2.SimpleAction") @@ -106,7 +106,7 @@ public void allowlist_2only() throws Exception { 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.action.Action"), Class.forName("org.apache.struts2.interceptor.AbstractInterceptor"), Class.forName("org.apache.struts2.result.Result") ); diff --git a/core/src/test/java/org/apache/struts2/config/providers/MockConfigurationProvider.java b/core/src/test/java/org/apache/struts2/config/providers/MockConfigurationProvider.java index 8cc506f05b..1970081753 100644 --- a/core/src/test/java/org/apache/struts2/config/providers/MockConfigurationProvider.java +++ b/core/src/test/java/org/apache/struts2/config/providers/MockConfigurationProvider.java @@ -18,7 +18,7 @@ */ package org.apache.struts2.config.providers; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionChainResult; import org.apache.struts2.ModelDrivenAction; import org.apache.struts2.ObjectFactory; diff --git a/core/src/test/java/org/apache/struts2/config/providers/NoNoArgsConstructorAction.java b/core/src/test/java/org/apache/struts2/config/providers/NoNoArgsConstructorAction.java index f9b9268b85..0b26d5a675 100644 --- a/core/src/test/java/org/apache/struts2/config/providers/NoNoArgsConstructorAction.java +++ b/core/src/test/java/org/apache/struts2/config/providers/NoNoArgsConstructorAction.java @@ -18,7 +18,7 @@ */ package org.apache.struts2.config.providers; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; /** * Action with no public constructor taking no args. diff --git a/core/src/test/java/org/apache/struts2/config/providers/PrivateConstructorAction.java b/core/src/test/java/org/apache/struts2/config/providers/PrivateConstructorAction.java index 43876adaa5..542d5dcdc5 100644 --- a/core/src/test/java/org/apache/struts2/config/providers/PrivateConstructorAction.java +++ b/core/src/test/java/org/apache/struts2/config/providers/PrivateConstructorAction.java @@ -18,7 +18,7 @@ */ package org.apache.struts2.config.providers; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; /** * Action with no public constructor. diff --git a/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderResultsTest.java b/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderResultsTest.java index 5c3d4b55c4..ba9ab65642 100644 --- a/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderResultsTest.java +++ b/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderResultsTest.java @@ -18,7 +18,7 @@ */ package org.apache.struts2.config.providers; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionChainResult; import org.apache.struts2.SimpleAction; import org.apache.struts2.config.ConfigurationException; diff --git a/core/src/test/java/org/apache/struts2/conversion/ConversionTestAction.java b/core/src/test/java/org/apache/struts2/conversion/ConversionTestAction.java index 8d779256bd..a425a202b0 100644 --- a/core/src/test/java/org/apache/struts2/conversion/ConversionTestAction.java +++ b/core/src/test/java/org/apache/struts2/conversion/ConversionTestAction.java @@ -18,7 +18,7 @@ */ package org.apache.struts2.conversion; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.conversion.annotations.Conversion; import org.apache.struts2.conversion.annotations.ConversionRule; import org.apache.struts2.conversion.annotations.ConversionType; diff --git a/core/src/test/java/org/apache/struts2/interceptor/AliasInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/AliasInterceptorTest.java index ed05389b99..d2a38f3323 100644 --- a/core/src/test/java/org/apache/struts2/interceptor/AliasInterceptorTest.java +++ b/core/src/test/java/org/apache/struts2/interceptor/AliasInterceptorTest.java @@ -18,7 +18,7 @@ */ package org.apache.struts2.interceptor; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionContext; import org.apache.struts2.ActionProxy; import org.apache.struts2.SimpleAction; diff --git a/core/src/test/java/org/apache/struts2/interceptor/ChainingInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/ChainingInterceptorTest.java index efdd77b583..9fa6f26133 100644 --- a/core/src/test/java/org/apache/struts2/interceptor/ChainingInterceptorTest.java +++ b/core/src/test/java/org/apache/struts2/interceptor/ChainingInterceptorTest.java @@ -19,7 +19,7 @@ package org.apache.struts2.interceptor; import com.mockobjects.dynamic.Mock; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionChainResult; import org.apache.struts2.ActionContext; import org.apache.struts2.ActionInvocation; diff --git a/core/src/test/java/org/apache/struts2/interceptor/ChainingInterceptorWithConfigTest.java b/core/src/test/java/org/apache/struts2/interceptor/ChainingInterceptorWithConfigTest.java index 211e7329bc..b8e9127055 100644 --- a/core/src/test/java/org/apache/struts2/interceptor/ChainingInterceptorWithConfigTest.java +++ b/core/src/test/java/org/apache/struts2/interceptor/ChainingInterceptorWithConfigTest.java @@ -18,7 +18,7 @@ */ package org.apache.struts2.interceptor; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionChainResult; import org.apache.struts2.ActionProxy; import org.apache.struts2.ActionProxyFactory; diff --git a/core/src/test/java/org/apache/struts2/interceptor/ConversionErrorInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/ConversionErrorInterceptorTest.java index 677f248d31..35e87a1828 100644 --- a/core/src/test/java/org/apache/struts2/interceptor/ConversionErrorInterceptorTest.java +++ b/core/src/test/java/org/apache/struts2/interceptor/ConversionErrorInterceptorTest.java @@ -20,7 +20,7 @@ import com.mockobjects.dynamic.C; import com.mockobjects.dynamic.Mock; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionContext; import org.apache.struts2.ActionInvocation; import org.apache.struts2.ActionSupport; 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 13c9bbc7ae..8189f5ce8e 100644 --- a/core/src/test/java/org/apache/struts2/interceptor/CookieInterceptorTest.java +++ b/core/src/test/java/org/apache/struts2/interceptor/CookieInterceptorTest.java @@ -18,7 +18,7 @@ */ package org.apache.struts2.interceptor; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionContext; import org.apache.struts2.ActionInvocation; import org.apache.struts2.ActionSupport; diff --git a/core/src/test/java/org/apache/struts2/interceptor/DefaultWorkflowInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/DefaultWorkflowInterceptorTest.java index 83cdcfabad..f00c514874 100644 --- a/core/src/test/java/org/apache/struts2/interceptor/DefaultWorkflowInterceptorTest.java +++ b/core/src/test/java/org/apache/struts2/interceptor/DefaultWorkflowInterceptorTest.java @@ -18,7 +18,7 @@ */ package org.apache.struts2.interceptor; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionContext; import org.apache.struts2.ActionInvocation; import org.apache.struts2.ActionProxy; diff --git a/core/src/test/java/org/apache/struts2/interceptor/ExceptionMappingInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/ExceptionMappingInterceptorTest.java index a7e799b49d..e5f922fdf9 100644 --- a/core/src/test/java/org/apache/struts2/interceptor/ExceptionMappingInterceptorTest.java +++ b/core/src/test/java/org/apache/struts2/interceptor/ExceptionMappingInterceptorTest.java @@ -19,7 +19,7 @@ package org.apache.struts2.interceptor; import com.mockobjects.dynamic.Mock; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionContext; import org.apache.struts2.ActionInvocation; import org.apache.struts2.ActionProxy; 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 d6caace33b..76f72ca84f 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 org.apache.struts2.Action; +import org.apache.struts2.action.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 a8da7b1e6b..7af1e6cc49 100644 --- a/core/src/test/java/org/apache/struts2/interceptor/ExecuteAndWaitInterceptorTest.java +++ b/core/src/test/java/org/apache/struts2/interceptor/ExecuteAndWaitInterceptorTest.java @@ -18,7 +18,7 @@ */ package org.apache.struts2.interceptor; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionContext; import org.apache.struts2.ActionProxy; import org.apache.struts2.ActionProxyFactory; 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 879924f6ed..de85a42a6f 100644 --- a/core/src/test/java/org/apache/struts2/interceptor/I18nInterceptorTest.java +++ b/core/src/test/java/org/apache/struts2/interceptor/I18nInterceptorTest.java @@ -18,7 +18,7 @@ */ package org.apache.struts2.interceptor; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionContext; import org.apache.struts2.ActionInvocation; import org.apache.struts2.DefaultLocaleProviderFactory; 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 86bc96286e..c066b41d58 100644 --- a/core/src/test/java/org/apache/struts2/interceptor/MessageStoreInterceptorTest.java +++ b/core/src/test/java/org/apache/struts2/interceptor/MessageStoreInterceptorTest.java @@ -18,7 +18,7 @@ */ package org.apache.struts2.interceptor; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionContext; import org.apache.struts2.ActionInvocation; import org.apache.struts2.ActionSupport; @@ -31,7 +31,6 @@ import jakarta.servlet.http.HttpServletResponse; import jakarta.servlet.http.HttpSession; import java.util.ArrayList; -import java.util.HashMap; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; 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 e640231ee1..bd39d829a9 100644 --- a/core/src/test/java/org/apache/struts2/interceptor/MessageStorePreResultListenerTest.java +++ b/core/src/test/java/org/apache/struts2/interceptor/MessageStorePreResultListenerTest.java @@ -18,7 +18,7 @@ */ package org.apache.struts2.interceptor; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionContext; import org.apache.struts2.ActionInvocation; import org.apache.struts2.ActionSupport; diff --git a/core/src/test/java/org/apache/struts2/interceptor/ModelDrivenInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/ModelDrivenInterceptorTest.java index ed3b2c2d2a..cb2b06a0cd 100644 --- a/core/src/test/java/org/apache/struts2/interceptor/ModelDrivenInterceptorTest.java +++ b/core/src/test/java/org/apache/struts2/interceptor/ModelDrivenInterceptorTest.java @@ -20,7 +20,7 @@ import com.mockobjects.dynamic.ConstraintMatcher; import com.mockobjects.dynamic.Mock; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionContext; import org.apache.struts2.ActionInvocation; import org.apache.struts2.ActionSupport; diff --git a/core/src/test/java/org/apache/struts2/interceptor/PreResultListenerTest.java b/core/src/test/java/org/apache/struts2/interceptor/PreResultListenerTest.java index 0b397ab6f6..0b91f30cdc 100644 --- a/core/src/test/java/org/apache/struts2/interceptor/PreResultListenerTest.java +++ b/core/src/test/java/org/apache/struts2/interceptor/PreResultListenerTest.java @@ -20,7 +20,7 @@ import com.mockobjects.dynamic.C; import com.mockobjects.dynamic.Mock; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionInvocation; import org.apache.struts2.ActionProxy; import org.apache.struts2.ActionProxyFactory; diff --git a/core/src/test/java/org/apache/struts2/interceptor/PrepareInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/PrepareInterceptorTest.java index 85e62126de..5d93ce1db5 100644 --- a/core/src/test/java/org/apache/struts2/interceptor/PrepareInterceptorTest.java +++ b/core/src/test/java/org/apache/struts2/interceptor/PrepareInterceptorTest.java @@ -20,7 +20,7 @@ import com.mockobjects.dynamic.Mock; import junit.framework.TestCase; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionInvocation; import org.apache.struts2.ActionProxy; import org.apache.struts2.Preparable; diff --git a/core/src/test/java/org/apache/struts2/interceptor/ScopedModelDrivenInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/ScopedModelDrivenInterceptorTest.java index f9e2777aca..9f9d594e6e 100644 --- a/core/src/test/java/org/apache/struts2/interceptor/ScopedModelDrivenInterceptorTest.java +++ b/core/src/test/java/org/apache/struts2/interceptor/ScopedModelDrivenInterceptorTest.java @@ -18,7 +18,7 @@ */ package org.apache.struts2.interceptor; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionContext; import org.apache.struts2.ObjectFactory; import org.apache.struts2.ProxyObjectFactory; 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 dbea9906ef..8adc1ccba7 100644 --- a/core/src/test/java/org/apache/struts2/interceptor/ServletConfigInterceptorTest.java +++ b/core/src/test/java/org/apache/struts2/interceptor/ServletConfigInterceptorTest.java @@ -18,7 +18,7 @@ */ package org.apache.struts2.interceptor; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionContext; import org.apache.struts2.StrutsInternalTestCase; import org.apache.struts2.StrutsStatics; 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 399774c6a2..15f42c1755 100644 --- a/core/src/test/java/org/apache/struts2/interceptor/StrutsConversionErrorInterceptorTest.java +++ b/core/src/test/java/org/apache/struts2/interceptor/StrutsConversionErrorInterceptorTest.java @@ -20,7 +20,7 @@ import com.mockobjects.dynamic.C; import com.mockobjects.dynamic.Mock; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionContext; import org.apache.struts2.ActionInvocation; import org.apache.struts2.ActionSupport; 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 2fd00872f2..8ab596075d 100644 --- a/core/src/test/java/org/apache/struts2/interceptor/TokenInterceptorTest.java +++ b/core/src/test/java/org/apache/struts2/interceptor/TokenInterceptorTest.java @@ -18,7 +18,7 @@ */ package org.apache.struts2.interceptor; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionContext; import org.apache.struts2.ActionProxy; import org.apache.struts2.util.ValueStack; 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 9ca1006349..d499ac000c 100644 --- a/core/src/test/java/org/apache/struts2/interceptor/TokenSessionStoreInterceptorTest.java +++ b/core/src/test/java/org/apache/struts2/interceptor/TokenSessionStoreInterceptorTest.java @@ -20,7 +20,7 @@ import org.apache.struts2.TestConfigurationProvider; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionProxy; /** diff --git a/core/src/test/java/org/apache/struts2/interceptor/ValidationErrorAwareTest.java b/core/src/test/java/org/apache/struts2/interceptor/ValidationErrorAwareTest.java index 268359c779..31a64aaad3 100644 --- a/core/src/test/java/org/apache/struts2/interceptor/ValidationErrorAwareTest.java +++ b/core/src/test/java/org/apache/struts2/interceptor/ValidationErrorAwareTest.java @@ -18,7 +18,7 @@ */ package org.apache.struts2.interceptor; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionContext; import org.apache.struts2.ActionInvocation; import org.apache.struts2.ActionProxy; diff --git a/core/src/test/java/org/apache/struts2/interceptor/ValidationInterceptorPrefixMethodInvocationTest.java b/core/src/test/java/org/apache/struts2/interceptor/ValidationInterceptorPrefixMethodInvocationTest.java index 6473514461..6aba113c43 100644 --- a/core/src/test/java/org/apache/struts2/interceptor/ValidationInterceptorPrefixMethodInvocationTest.java +++ b/core/src/test/java/org/apache/struts2/interceptor/ValidationInterceptorPrefixMethodInvocationTest.java @@ -18,7 +18,7 @@ */ package org.apache.struts2.interceptor; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionContext; import org.apache.struts2.ActionInvocation; import org.apache.struts2.ActionProxy; diff --git a/core/src/test/java/org/apache/struts2/interceptor/annotations/AnnotatedAction.java b/core/src/test/java/org/apache/struts2/interceptor/annotations/AnnotatedAction.java index 6ac578ae65..cfa057756f 100644 --- a/core/src/test/java/org/apache/struts2/interceptor/annotations/AnnotatedAction.java +++ b/core/src/test/java/org/apache/struts2/interceptor/annotations/AnnotatedAction.java @@ -18,7 +18,7 @@ */ package org.apache.struts2.interceptor.annotations; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; /** * @author Zsolt Szasz, zsolt at lorecraft dot com diff --git a/core/src/test/java/org/apache/struts2/interceptor/annotations/AnnotationWorkflowInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/annotations/AnnotationWorkflowInterceptorTest.java index 37a163a062..dcb80b9437 100644 --- a/core/src/test/java/org/apache/struts2/interceptor/annotations/AnnotationWorkflowInterceptorTest.java +++ b/core/src/test/java/org/apache/struts2/interceptor/annotations/AnnotationWorkflowInterceptorTest.java @@ -18,7 +18,7 @@ */ package org.apache.struts2.interceptor.annotations; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionProxy; import org.apache.struts2.ActionProxyFactory; import org.apache.struts2.DefaultActionProxyFactory; diff --git a/core/src/test/java/org/apache/struts2/interceptor/annotations/ShortcircuitedAction.java b/core/src/test/java/org/apache/struts2/interceptor/annotations/ShortcircuitedAction.java index 6026eedc8f..525b88c24f 100644 --- a/core/src/test/java/org/apache/struts2/interceptor/annotations/ShortcircuitedAction.java +++ b/core/src/test/java/org/apache/struts2/interceptor/annotations/ShortcircuitedAction.java @@ -18,7 +18,7 @@ */ package org.apache.struts2.interceptor.annotations; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; /** * @author Zsolt Szasz, zsolt at lorecraft dot com 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 be23fef5d0..de849cd10c 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,7 +18,7 @@ */ package org.apache.struts2.interceptor.parameter; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionContext; import org.apache.struts2.ActionProxy; import org.apache.struts2.ActionSupport; 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 9a223effbc..b1e756cbce 100644 --- a/core/src/test/java/org/apache/struts2/result/StreamResultTest.java +++ b/core/src/test/java/org/apache/struts2/result/StreamResultTest.java @@ -18,7 +18,7 @@ */ package org.apache.struts2.result; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionContext; import org.apache.struts2.mock.MockActionInvocation; import org.apache.struts2.util.ClassLoaderUtil; diff --git a/core/src/test/java/org/apache/struts2/util/MyBeanAction.java b/core/src/test/java/org/apache/struts2/util/MyBeanAction.java index f59502e112..54b47868cd 100644 --- a/core/src/test/java/org/apache/struts2/util/MyBeanAction.java +++ b/core/src/test/java/org/apache/struts2/util/MyBeanAction.java @@ -18,7 +18,7 @@ */ package org.apache.struts2.util; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.conversion.annotations.Conversion; import org.apache.struts2.conversion.annotations.ConversionRule; import org.apache.struts2.conversion.annotations.TypeConversion; diff --git a/core/src/test/java/org/apache/struts2/util/StrutsLocalizedTextProviderTest.java b/core/src/test/java/org/apache/struts2/util/StrutsLocalizedTextProviderTest.java index 39bc8f8cea..44c68acd75 100644 --- a/core/src/test/java/org/apache/struts2/util/StrutsLocalizedTextProviderTest.java +++ b/core/src/test/java/org/apache/struts2/util/StrutsLocalizedTextProviderTest.java @@ -19,7 +19,7 @@ package org.apache.struts2.util; import com.mockobjects.dynamic.Mock; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionContext; import org.apache.struts2.ActionInvocation; import org.apache.struts2.ActionProxy; diff --git a/core/src/test/java/org/apache/struts2/validator/AnnotationActionValidatorManagerTest.java b/core/src/test/java/org/apache/struts2/validator/AnnotationActionValidatorManagerTest.java index 5d5779467b..39065c933a 100644 --- a/core/src/test/java/org/apache/struts2/validator/AnnotationActionValidatorManagerTest.java +++ b/core/src/test/java/org/apache/struts2/validator/AnnotationActionValidatorManagerTest.java @@ -18,7 +18,7 @@ */ package org.apache.struts2.validator; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionContext; import org.apache.struts2.ActionInvocation; import org.apache.struts2.ActionProxy; diff --git a/core/src/test/java/org/apache/struts2/validator/ExpressionValidatorTest.java b/core/src/test/java/org/apache/struts2/validator/ExpressionValidatorTest.java index 82b373ef81..bb4bd4f855 100644 --- a/core/src/test/java/org/apache/struts2/validator/ExpressionValidatorTest.java +++ b/core/src/test/java/org/apache/struts2/validator/ExpressionValidatorTest.java @@ -20,7 +20,7 @@ import com.mockobjects.dynamic.C; import com.mockobjects.dynamic.Mock; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionContext; import org.apache.struts2.ActionInvocation; import org.apache.struts2.ActionProxy; diff --git a/core/src/test/java/org/apache/struts2/validator/ModelDrivenValidationTest.java b/core/src/test/java/org/apache/struts2/validator/ModelDrivenValidationTest.java index 7ba745c1bd..8c59588d74 100644 --- a/core/src/test/java/org/apache/struts2/validator/ModelDrivenValidationTest.java +++ b/core/src/test/java/org/apache/struts2/validator/ModelDrivenValidationTest.java @@ -18,7 +18,7 @@ */ package org.apache.struts2.validator; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionContext; import org.apache.struts2.ActionProxy; import org.apache.struts2.ModelDrivenAction; diff --git a/core/src/test/java/org/apache/struts2/validator/StringValidatorTest.java b/core/src/test/java/org/apache/struts2/validator/StringValidatorTest.java index 2e4bde0778..d052b4aeaa 100644 --- a/core/src/test/java/org/apache/struts2/validator/StringValidatorTest.java +++ b/core/src/test/java/org/apache/struts2/validator/StringValidatorTest.java @@ -18,7 +18,7 @@ */ package org.apache.struts2.validator; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionContext; import org.apache.struts2.ActionInvocation; import org.apache.struts2.ActionProxy; diff --git a/core/src/test/java/org/apache/struts2/validator/VisitorFieldValidatorModelTest.java b/core/src/test/java/org/apache/struts2/validator/VisitorFieldValidatorModelTest.java index 05fd4f331b..157fea9097 100644 --- a/core/src/test/java/org/apache/struts2/validator/VisitorFieldValidatorModelTest.java +++ b/core/src/test/java/org/apache/struts2/validator/VisitorFieldValidatorModelTest.java @@ -18,7 +18,7 @@ */ package org.apache.struts2.validator; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionContext; import org.apache.struts2.ActionInvocation; import org.apache.struts2.ActionProxy; diff --git a/core/src/test/java/org/apache/struts2/validator/VisitorFieldValidatorTest.java b/core/src/test/java/org/apache/struts2/validator/VisitorFieldValidatorTest.java index b9d361c3bc..a0ec81166e 100644 --- a/core/src/test/java/org/apache/struts2/validator/VisitorFieldValidatorTest.java +++ b/core/src/test/java/org/apache/struts2/validator/VisitorFieldValidatorTest.java @@ -18,7 +18,7 @@ */ package org.apache.struts2.validator; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionContext; import org.apache.struts2.ActionInvocation; import org.apache.struts2.ActionProxy; 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 4c936148e4..eee8b06fa9 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,7 +19,7 @@ package org.apache.struts2.views.jsp; import com.mockobjects.dynamic.Mock; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionContext; import org.apache.struts2.ActionInvocation; import org.apache.struts2.ActionProxy; 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 70445a3d0b..3b60dca090 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 @@ -21,7 +21,7 @@ import com.mockobjects.dynamic.Mock; import jakarta.servlet.jsp.JspException; import jakarta.servlet.jsp.PageContext; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionContext; import org.apache.struts2.ActionInvocation; import org.apache.struts2.ActionProxy; 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 2554fc6487..b2f09c1752 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,7 +24,7 @@ import org.apache.struts2.views.jsp.iterator.AppendIteratorTag; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionSupport; /** 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 94b279395a..618335996e 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,7 +18,7 @@ */ package org.apache.struts2.views.jsp; -import org.apache.struts2.Action; +import org.apache.struts2.action.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 bc6aa152fe..254d72be45 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,7 +24,7 @@ import org.apache.struts2.views.jsp.iterator.MergeIteratorTag; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionSupport; /** 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 6eb5fc1478..1fc02ef85f 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,7 +20,7 @@ import jakarta.servlet.jsp.JspException; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionSupport; import org.apache.struts2.views.jsp.iterator.SortIteratorTag; 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 999a2bfbb9..1d8a18c336 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,7 +18,7 @@ */ package org.apache.struts2.views.jsp; -import org.apache.struts2.Action; +import org.apache.struts2.action.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 1e4d2fae6f..2dcffd901e 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,7 +35,7 @@ import org.apache.struts2.views.jsp.ui.TestAction1; import org.springframework.mock.web.MockJspWriter; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionContext; import org.apache.struts2.util.ValueStack; import org.apache.struts2.util.ValueStackFactory; 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 3eeae5ae38..c253efda46 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,7 +18,7 @@ */ package org.apache.struts2.views.jsp.ui; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionSupport; import org.apache.commons.lang3.StringUtils; import org.apache.struts2.TestAction; 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 9fd50a47e0..c11e794007 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,7 +18,7 @@ */ package org.apache.struts2.views.jsp.ui; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionSupport; import org.apache.commons.lang3.StringUtils; import org.apache.struts2.TestAction; 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 3bd44769c9..c1fbcae8d1 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,7 +18,7 @@ */ package org.apache.struts2.views.jsp.ui; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionSupport; 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/FormTagTest.java b/core/src/test/java/org/apache/struts2/views/jsp/ui/FormTagTest.java index 85903ce218..18ffb20285 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,7 +18,7 @@ */ package org.apache.struts2.views.jsp.ui; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionContext; import org.apache.struts2.ActionInvocation; import org.apache.struts2.ActionProxy; 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 56cec4340b..0cc49a0b7a 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 org.apache.struts2.Action; +import org.apache.struts2.action.Action; public class LocaleTestAction extends TestAction implements Action { 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 29af863ef6..dc05b54bfc 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,7 +25,7 @@ import org.apache.struts2.views.jsp.AbstractUITagTest; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionSupport; /** 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 f7406e3dd6..fd95c87d55 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 @@ -22,7 +22,7 @@ import org.apache.commons.lang3.StringUtils; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionContext; import org.apache.struts2.ActionSupport; import org.apache.struts2.ObjectFactory; 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 9de94c217a..2688e32d71 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,7 +18,7 @@ */ package org.apache.struts2.convention; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionContext; import org.apache.struts2.config.ConfigurationException; 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 f993ea153f..45eb3f8b82 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 @@ -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 org.apache.struts2.Action}. Since the whole + * it implements {@link org.apache.struts2.action.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 @@ -660,7 +660,7 @@ public boolean test(ClassFinder.ClassInfo classInfo) { boolean nameMatches = matchesSuffix(classInfo.getName()); try { - return inPackage && (nameMatches || (checkImplementsAction && org.apache.struts2.Action.class.isAssignableFrom(classInfo.get()))); + return inPackage && (nameMatches || (checkImplementsAction && org.apache.struts2.action.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/annotation/Result.java b/plugins/convention/src/main/java/org/apache/struts2/convention/annotation/Result.java index d55fd6019d..3254336d25 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 org.apache.struts2.Action.SUCCESS; + String[] name() default org.apache.struts2.action.Action.SUCCESS; /** * @return The location of the result within the web application or anywhere on disk. This location 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 3af91c99fa..9abfdbc0c8 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 org.apache.struts2.Action; +import org.apache.struts2.action.Action; public class Skip implements Action { public String execute() throws Exception { 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 c0ee03683d..b235e5367e 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 org.apache.struts2.Action { +public class SingleActionNameAction2 implements org.apache.struts2.action.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 23ce3d9d5c..fbb2b9a3cc 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 org.apache.struts2.Action; +import org.apache.struts2.action.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 8a0325c26e..dbde6bfb28 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 org.apache.struts2.Action; +import org.apache.struts2.action.Action; public class Index implements Action { public String execute() throws Exception { 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 ce2b2ccb3e..a59307d645 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 org.apache.struts2.Action; +import org.apache.struts2.action.Action; public class Index implements Action { public String execute() throws Exception { 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 7b96378763..df8609ab61 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,7 +18,7 @@ */ package org.apache.struts2.json; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionInvocation; import org.apache.struts2.inject.Inject; import org.apache.struts2.interceptor.AbstractInterceptor; 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 fddeb37b6d..3e5bd736dd 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,7 +18,7 @@ */ package org.apache.struts2.json; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionInvocation; import org.apache.struts2.ModelDriven; import org.apache.struts2.interceptor.ValidationAware; 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 4e10416782..08b3b78cc2 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,7 +18,7 @@ */ package org.apache.struts2.json; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionContext; import org.apache.struts2.ActionSupport; import org.apache.struts2.config.entities.ActionConfig; 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 93002671e6..e8ff6ad2ab 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,7 +25,7 @@ import org.apache.struts2.json.annotations.JSON; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionSupport; /** 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 dd2511b263..366e9bb3df 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,7 +18,7 @@ */ package org.apache.struts2.junit; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionProxy; import org.apache.struts2.dispatcher.mapper.ActionMapping; import org.junit.Assert; 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 951a9c8461..5ae5f17313 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,7 +18,7 @@ */ package org.apache.struts2.junit; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionProxy; import org.apache.struts2.dispatcher.mapper.ActionMapping; 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 5c781bc308..2defb5773c 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 @@ -23,7 +23,7 @@ import org.apache.commons.lang3.BooleanUtils; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionInvocation; import org.apache.struts2.DefaultActionInvocation; import org.apache.struts2.ModelDriven; diff --git a/plugins/rest/src/main/java/org/apache/struts2/rest/RestWorkflowInterceptor.java b/plugins/rest/src/main/java/org/apache/struts2/rest/RestWorkflowInterceptor.java index a85fddbbd6..0efe9a57aa 100644 --- a/plugins/rest/src/main/java/org/apache/struts2/rest/RestWorkflowInterceptor.java +++ b/plugins/rest/src/main/java/org/apache/struts2/rest/RestWorkflowInterceptor.java @@ -18,7 +18,7 @@ */ package org.apache.struts2.rest; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionContext; import org.apache.struts2.ActionInvocation; import org.apache.struts2.inject.Inject; diff --git a/plugins/rest/src/test/java/org/apache/struts2/rest/ContentTypeInterceptorTest.java b/plugins/rest/src/test/java/org/apache/struts2/rest/ContentTypeInterceptorTest.java index 61058cdc28..2232ccb94c 100644 --- a/plugins/rest/src/test/java/org/apache/struts2/rest/ContentTypeInterceptorTest.java +++ b/plugins/rest/src/test/java/org/apache/struts2/rest/ContentTypeInterceptorTest.java @@ -20,7 +20,7 @@ import com.mockobjects.dynamic.AnyConstraintMatcher; import com.mockobjects.dynamic.Mock; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionContext; import org.apache.struts2.ActionInvocation; import org.apache.struts2.ActionSupport; diff --git a/plugins/spring/src/test/java/org/apache/struts2/spring/ActionsFromSpringTest.java b/plugins/spring/src/test/java/org/apache/struts2/spring/ActionsFromSpringTest.java index 0875810adf..a3cf29a620 100644 --- a/plugins/spring/src/test/java/org/apache/struts2/spring/ActionsFromSpringTest.java +++ b/plugins/spring/src/test/java/org/apache/struts2/spring/ActionsFromSpringTest.java @@ -18,7 +18,7 @@ */ package org.apache.struts2.spring; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionContext; import org.apache.struts2.ActionProxy; import org.apache.struts2.ObjectFactory; diff --git a/plugins/spring/src/test/java/org/apache/struts2/spring/ExecuteInterceptor.java b/plugins/spring/src/test/java/org/apache/struts2/spring/ExecuteInterceptor.java index 7a24815984..43a3b81539 100644 --- a/plugins/spring/src/test/java/org/apache/struts2/spring/ExecuteInterceptor.java +++ b/plugins/spring/src/test/java/org/apache/struts2/spring/ExecuteInterceptor.java @@ -18,7 +18,7 @@ */ package org.apache.struts2.spring; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.aopalliance.intercept.MethodInterceptor; import org.aopalliance.intercept.MethodInvocation; diff --git a/plugins/spring/src/test/java/org/apache/struts2/spring/SpringObjectFactoryTest.java b/plugins/spring/src/test/java/org/apache/struts2/spring/SpringObjectFactoryTest.java index 2ab25ce34c..9c1cc09b85 100644 --- a/plugins/spring/src/test/java/org/apache/struts2/spring/SpringObjectFactoryTest.java +++ b/plugins/spring/src/test/java/org/apache/struts2/spring/SpringObjectFactoryTest.java @@ -18,7 +18,7 @@ */ package org.apache.struts2.spring; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionChainResult; import org.apache.struts2.ActionContext; import org.apache.struts2.ModelDrivenAction; 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 c8ef8a2fe2..51efb818a7 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 @@ -19,7 +19,7 @@ package org.apache.struts2.result.xslt; import junit.framework.TestCase; -import org.apache.struts2.Action; +import org.apache.struts2.action.Action; import org.apache.struts2.ActionContext; import org.apache.struts2.ServletActionContext; import org.apache.struts2.junit.StrutsTestCase; From 83cb936c3a9536d9fe9105a7e7fb2de8d567068a Mon Sep 17 00:00:00 2001 From: Lukasz Lenart Date: Sat, 2 Nov 2024 15:06:29 +0100 Subject: [PATCH 2/5] WW-5459 Moves ActionChainResult into org.apache.struts2.result package --- .../org/apache/struts2/ActionInvocation.java | 1 + .../struts2/DefaultActionInvocation.java | 1 + .../interceptor/ChainingInterceptor.java | 2 +- .../{ => result}/ActionChainResult.java | 12 ++++++++---- .../org/apache/struts2/result/Result.java | 4 +--- core/src/main/resources/struts-default.xml | 2 +- core/src/main/resources/xwork-default.xml | 2 +- .../apache/struts2/ActionChainResultTest.java | 1 + .../org/apache/struts2/ChainResultTest.java | 2 +- .../struts2/DefaultActionInvocationTest.java | 1 + ...onfigurationProviderOgnlAllowlistTest.java | 4 ++-- .../providers/MockConfigurationProvider.java | 2 +- ...gurationProviderExceptionMappingsTest.java | 2 +- ...mlConfigurationProviderMultilevelTest.java | 2 +- .../XmlConfigurationProviderResultsTest.java | 2 +- .../interceptor/ChainingInterceptorTest.java | 2 +- .../ChainingInterceptorWithConfigTest.java | 2 +- .../struts2/config/providers/xwork- test.xml | 2 +- .../config/providers/xwork-include-parent.xml | 2 +- ...rk-test-actions-packagedefaultclassref.xml | 2 +- .../config/providers/xwork-test-actions.xml | 2 +- .../providers/xwork-test-allowlist-2.xml | 2 +- .../xwork-test-exception-mappings.xml | 2 +- .../providers/xwork-test-multilevel.xml | 2 +- .../xwork-test-result-inheritance.xml | 2 +- .../providers/xwork-test-result-names.xml | 2 +- .../config/providers/xwork-test-results.xml | 2 +- core/src/test/resources/xwork - jar.jar | Bin 2042 -> 902 bytes core/src/test/resources/xwork - zip.zip | Bin 2653 -> 3117 bytes core/src/test/resources/xwork-jar.jar | Bin 2026 -> 898 bytes core/src/test/resources/xwork-proxyinvoke.xml | 2 +- .../src/test/resources/xwork-test-default.xml | 2 +- .../test/resources/xwork-test-validation.xml | 2 +- core/src/test/resources/xwork-zip.zip | Bin 2645 -> 3084 bytes .../PackageBasedActionConfigBuilderTest.java | 2 +- .../spring/SpringObjectFactoryTest.java | 2 +- .../struts2/spring/actionContext-xwork.xml | 2 +- 37 files changed, 41 insertions(+), 35 deletions(-) rename core/src/main/java/org/apache/struts2/{ => result}/ActionChainResult.java (97%) diff --git a/core/src/main/java/org/apache/struts2/ActionInvocation.java b/core/src/main/java/org/apache/struts2/ActionInvocation.java index b38014980a..bd52e185ae 100644 --- a/core/src/main/java/org/apache/struts2/ActionInvocation.java +++ b/core/src/main/java/org/apache/struts2/ActionInvocation.java @@ -20,6 +20,7 @@ import org.apache.struts2.action.Action; import org.apache.struts2.interceptor.PreResultListener; +import org.apache.struts2.result.ActionChainResult; import org.apache.struts2.result.Result; import org.apache.struts2.util.ValueStack; diff --git a/core/src/main/java/org/apache/struts2/DefaultActionInvocation.java b/core/src/main/java/org/apache/struts2/DefaultActionInvocation.java index 17ab2e71e7..cc477abc2d 100644 --- a/core/src/main/java/org/apache/struts2/DefaultActionInvocation.java +++ b/core/src/main/java/org/apache/struts2/DefaultActionInvocation.java @@ -34,6 +34,7 @@ import org.apache.struts2.interceptor.PreResultListener; import org.apache.struts2.interceptor.WithLazyParams; import org.apache.struts2.ognl.OgnlUtil; +import org.apache.struts2.result.ActionChainResult; import org.apache.struts2.result.Result; import org.apache.struts2.util.ValueStack; import org.apache.struts2.util.ValueStackFactory; diff --git a/core/src/main/java/org/apache/struts2/interceptor/ChainingInterceptor.java b/core/src/main/java/org/apache/struts2/interceptor/ChainingInterceptor.java index f7755d212b..c114d65e1e 100644 --- a/core/src/main/java/org/apache/struts2/interceptor/ChainingInterceptor.java +++ b/core/src/main/java/org/apache/struts2/interceptor/ChainingInterceptor.java @@ -20,7 +20,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; -import org.apache.struts2.ActionChainResult; +import org.apache.struts2.result.ActionChainResult; import org.apache.struts2.ActionInvocation; import org.apache.struts2.StrutsConstants; import org.apache.struts2.Unchainable; diff --git a/core/src/main/java/org/apache/struts2/ActionChainResult.java b/core/src/main/java/org/apache/struts2/result/ActionChainResult.java similarity index 97% rename from core/src/main/java/org/apache/struts2/ActionChainResult.java rename to core/src/main/java/org/apache/struts2/result/ActionChainResult.java index 30f59b1a67..ba1ca315fd 100644 --- a/core/src/main/java/org/apache/struts2/ActionChainResult.java +++ b/core/src/main/java/org/apache/struts2/result/ActionChainResult.java @@ -16,13 +16,17 @@ * specific language governing permissions and limitations * under the License. */ -package org.apache.struts2; +package org.apache.struts2.result; -import org.apache.logging.log4j.LogManager; -import org.apache.logging.log4j.Logger; +import org.apache.struts2.ActionContext; +import org.apache.struts2.ActionInvocation; +import org.apache.struts2.ActionProxy; +import org.apache.struts2.ActionProxyFactory; +import org.apache.struts2.StrutsException; import org.apache.struts2.inject.Inject; -import org.apache.struts2.result.Result; import org.apache.struts2.util.TextParseUtil; +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; import java.util.HashSet; import java.util.LinkedList; diff --git a/core/src/main/java/org/apache/struts2/result/Result.java b/core/src/main/java/org/apache/struts2/result/Result.java index fbbc86cd35..082e4866f0 100644 --- a/core/src/main/java/org/apache/struts2/result/Result.java +++ b/core/src/main/java/org/apache/struts2/result/Result.java @@ -18,10 +18,8 @@ */ package org.apache.struts2.result; -import org.apache.struts2.Action; -import org.apache.struts2.ActionInvocation; - import org.apache.struts2.action.Action; +import org.apache.struts2.ActionInvocation; import java.io.Serializable; diff --git a/core/src/main/resources/struts-default.xml b/core/src/main/resources/struts-default.xml index 4f2ccb18d2..f9a0eced0a 100644 --- a/core/src/main/resources/struts-default.xml +++ b/core/src/main/resources/struts-default.xml @@ -31,7 +31,7 @@ - + diff --git a/core/src/main/resources/xwork-default.xml b/core/src/main/resources/xwork-default.xml index e56b2e6e0a..504c21b350 100644 --- a/core/src/main/resources/xwork-default.xml +++ b/core/src/main/resources/xwork-default.xml @@ -26,7 +26,7 @@ - + diff --git a/core/src/test/java/org/apache/struts2/ActionChainResultTest.java b/core/src/test/java/org/apache/struts2/ActionChainResultTest.java index 58f4ea90aa..11075c9cc9 100644 --- a/core/src/test/java/org/apache/struts2/ActionChainResultTest.java +++ b/core/src/test/java/org/apache/struts2/ActionChainResultTest.java @@ -18,6 +18,7 @@ */ package org.apache.struts2; +import org.apache.struts2.result.ActionChainResult; import org.apache.struts2.result.Result; import org.junit.Test; diff --git a/core/src/test/java/org/apache/struts2/ChainResultTest.java b/core/src/test/java/org/apache/struts2/ChainResultTest.java index dbdecf2c89..109d723525 100644 --- a/core/src/test/java/org/apache/struts2/ChainResultTest.java +++ b/core/src/test/java/org/apache/struts2/ChainResultTest.java @@ -21,9 +21,9 @@ import com.mockobjects.dynamic.Mock; import org.apache.struts2.config.providers.XmlConfigurationProvider; import org.apache.struts2.mock.MockResult; +import org.apache.struts2.result.ActionChainResult; import org.apache.struts2.util.ValueStack; import junit.framework.TestCase; -import org.apache.struts2.StrutsException; import org.apache.struts2.config.StrutsXmlConfigurationProvider; import java.util.HashMap; diff --git a/core/src/test/java/org/apache/struts2/DefaultActionInvocationTest.java b/core/src/test/java/org/apache/struts2/DefaultActionInvocationTest.java index b853a23cec..76d3cd4322 100644 --- a/core/src/test/java/org/apache/struts2/DefaultActionInvocationTest.java +++ b/core/src/test/java/org/apache/struts2/DefaultActionInvocationTest.java @@ -28,6 +28,7 @@ import org.apache.struts2.mock.MockActionProxy; import org.apache.struts2.mock.MockInterceptor; import org.apache.struts2.mock.MockResult; +import org.apache.struts2.result.ActionChainResult; import org.apache.struts2.result.Result; import org.apache.struts2.util.ValueStack; import org.apache.struts2.util.ValueStackFactory; 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 index 7d243150a9..f0eabcc3a7 100644 --- a/core/src/test/java/org/apache/struts2/config/providers/ConfigurationProviderOgnlAllowlistTest.java +++ b/core/src/test/java/org/apache/struts2/config/providers/ConfigurationProviderOgnlAllowlistTest.java @@ -51,7 +51,7 @@ public void allowList() throws Exception { 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.result.ActionChainResult"), Class.forName("org.apache.struts2.TextProvider"), Class.forName("org.apache.struts2.interceptor.NoOpInterceptor"), Class.forName("org.apache.struts2.interceptor.Interceptor"), @@ -100,7 +100,7 @@ public void allowlist_2only() throws Exception { 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.result.ActionChainResult"), Class.forName("org.apache.struts2.TextProvider"), Class.forName("org.apache.struts2.interceptor.NoOpInterceptor"), Class.forName("org.apache.struts2.interceptor.Interceptor"), diff --git a/core/src/test/java/org/apache/struts2/config/providers/MockConfigurationProvider.java b/core/src/test/java/org/apache/struts2/config/providers/MockConfigurationProvider.java index 1970081753..7b89a4ad71 100644 --- a/core/src/test/java/org/apache/struts2/config/providers/MockConfigurationProvider.java +++ b/core/src/test/java/org/apache/struts2/config/providers/MockConfigurationProvider.java @@ -19,7 +19,7 @@ package org.apache.struts2.config.providers; import org.apache.struts2.action.Action; -import org.apache.struts2.ActionChainResult; +import org.apache.struts2.result.ActionChainResult; import org.apache.struts2.ModelDrivenAction; import org.apache.struts2.ObjectFactory; import org.apache.struts2.SimpleAction; diff --git a/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderExceptionMappingsTest.java b/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderExceptionMappingsTest.java index d120e91d25..af68d7dc6c 100644 --- a/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderExceptionMappingsTest.java +++ b/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderExceptionMappingsTest.java @@ -18,7 +18,7 @@ */ package org.apache.struts2.config.providers; -import org.apache.struts2.ActionChainResult; +import org.apache.struts2.result.ActionChainResult; import org.apache.struts2.SimpleAction; import org.apache.struts2.config.ConfigurationException; import org.apache.struts2.config.ConfigurationProvider; diff --git a/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderMultilevelTest.java b/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderMultilevelTest.java index cd6827fa11..a1fdcaccf6 100644 --- a/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderMultilevelTest.java +++ b/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderMultilevelTest.java @@ -18,7 +18,7 @@ */ package org.apache.struts2.config.providers; -import org.apache.struts2.ActionChainResult; +import org.apache.struts2.result.ActionChainResult; import org.apache.struts2.config.ConfigurationProvider; import org.apache.struts2.config.entities.ActionConfig; import org.apache.struts2.config.entities.InterceptorMapping; diff --git a/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderResultsTest.java b/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderResultsTest.java index ba9ab65642..1f7285db9c 100644 --- a/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderResultsTest.java +++ b/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderResultsTest.java @@ -19,7 +19,7 @@ package org.apache.struts2.config.providers; import org.apache.struts2.action.Action; -import org.apache.struts2.ActionChainResult; +import org.apache.struts2.result.ActionChainResult; import org.apache.struts2.SimpleAction; import org.apache.struts2.config.ConfigurationException; import org.apache.struts2.config.ConfigurationProvider; diff --git a/core/src/test/java/org/apache/struts2/interceptor/ChainingInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/ChainingInterceptorTest.java index 9fa6f26133..85df164cce 100644 --- a/core/src/test/java/org/apache/struts2/interceptor/ChainingInterceptorTest.java +++ b/core/src/test/java/org/apache/struts2/interceptor/ChainingInterceptorTest.java @@ -20,7 +20,7 @@ import com.mockobjects.dynamic.Mock; import org.apache.struts2.action.Action; -import org.apache.struts2.ActionChainResult; +import org.apache.struts2.result.ActionChainResult; import org.apache.struts2.ActionContext; import org.apache.struts2.ActionInvocation; import org.apache.struts2.SimpleAction; diff --git a/core/src/test/java/org/apache/struts2/interceptor/ChainingInterceptorWithConfigTest.java b/core/src/test/java/org/apache/struts2/interceptor/ChainingInterceptorWithConfigTest.java index b8e9127055..88d5fcc8cc 100644 --- a/core/src/test/java/org/apache/struts2/interceptor/ChainingInterceptorWithConfigTest.java +++ b/core/src/test/java/org/apache/struts2/interceptor/ChainingInterceptorWithConfigTest.java @@ -19,7 +19,7 @@ package org.apache.struts2.interceptor; import org.apache.struts2.action.Action; -import org.apache.struts2.ActionChainResult; +import org.apache.struts2.result.ActionChainResult; import org.apache.struts2.ActionProxy; import org.apache.struts2.ActionProxyFactory; import org.apache.struts2.DefaultActionProxyFactory; diff --git a/core/src/test/resources/org/apache/struts2/config/providers/xwork- test.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork- test.xml index 42941e5f24..4febcad9df 100644 --- a/core/src/test/resources/org/apache/struts2/config/providers/xwork- test.xml +++ b/core/src/test/resources/org/apache/struts2/config/providers/xwork- test.xml @@ -26,7 +26,7 @@ - + diff --git a/core/src/test/resources/org/apache/struts2/config/providers/xwork-include-parent.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-include-parent.xml index ca38ab0aba..d74c500f22 100644 --- a/core/src/test/resources/org/apache/struts2/config/providers/xwork-include-parent.xml +++ b/core/src/test/resources/org/apache/struts2/config/providers/xwork-include-parent.xml @@ -27,7 +27,7 @@ - + diff --git a/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-actions-packagedefaultclassref.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-actions-packagedefaultclassref.xml index f94e7fd13d..0e0259b470 100644 --- a/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-actions-packagedefaultclassref.xml +++ b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-actions-packagedefaultclassref.xml @@ -26,7 +26,7 @@ - + diff --git a/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-actions.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-actions.xml index 42941e5f24..4febcad9df 100644 --- a/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-actions.xml +++ b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-actions.xml @@ -26,7 +26,7 @@ - + diff --git a/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-allowlist-2.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-allowlist-2.xml index d920b03bd0..ff884c86ca 100644 --- a/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-allowlist-2.xml +++ b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-allowlist-2.xml @@ -25,7 +25,7 @@ - + diff --git a/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-exception-mappings.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-exception-mappings.xml index 99a6b4ecce..951eca5bed 100644 --- a/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-exception-mappings.xml +++ b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-exception-mappings.xml @@ -26,7 +26,7 @@ - + diff --git a/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-multilevel.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-multilevel.xml index f710519b79..71d4c82b44 100644 --- a/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-multilevel.xml +++ b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-multilevel.xml @@ -26,7 +26,7 @@ - + diff --git a/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-result-inheritance.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-result-inheritance.xml index e42274f2ea..b4bc03a1b2 100644 --- a/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-result-inheritance.xml +++ b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-result-inheritance.xml @@ -26,7 +26,7 @@ - + diff --git a/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-result-names.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-result-names.xml index f7c67b165b..99bfcf69fd 100644 --- a/core/src/test/resources/org/apache/struts2/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/org/apache/struts2/config/providers/xwork-test-results.xml b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-results.xml index 82582db3cb..9020e1a1a6 100644 --- a/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-results.xml +++ b/core/src/test/resources/org/apache/struts2/config/providers/xwork-test-results.xml @@ -26,7 +26,7 @@ - + diff --git a/core/src/test/resources/xwork - jar.jar b/core/src/test/resources/xwork - jar.jar index 001de63fc56f667c02c5167dcd1e73f351369d7f..4258db034ab69334ba1070e33f09337b8a11915d 100644 GIT binary patch literal 902 zcmWIWW@Zs#;Nak3a4b)XWIzI(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*Hbrx|08qA~JijPgL02Iw zvB*fTA~(mi*Ppw|LFCB!x63Qu-mMiV;S~1bZPIYGF1b_k*Lj=vZvQWj)iX`D&wOb9 zc>Ut&8Mc!oWNyxrQThJ(sfYt+=v%I91gcca>)l)HbQ+A7FdFj*UHr@B? z?R;kGjjlcG|LhMDF10@L)BVKz6$aZ5HF0e}a<8THnI+yLh~RW%!9f^+Ix&lA`GZW z50mk(-J5l26&@tMNSr=gogmOKqg!(QZhs~0hD}@!yS}-5MU>eiJq8{b%Wvt fSvM$d5MUM~R5v`P0=!w-K=Ld=_#H@Bg8d8tFk%X# literal 2042 zcmWIWW@Zs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invoke.xml index 7a4b78425b..64919e3064 100644 --- a/core/src/test/resources/xwork-proxyinvoke.xml +++ b/core/src/test/resources/xwork-proxyinvoke.xml @@ -30,7 +30,7 @@ - + diff --git a/core/src/test/resources/xwork-test-default.xml b/core/src/test/resources/xwork-test-default.xml index 7f9f3c0ae9..31f92d9d66 100644 --- a/core/src/test/resources/xwork-test-default.xml +++ b/core/src/test/resources/xwork-test-default.xml @@ -25,7 +25,7 @@ - + diff --git a/core/src/test/resources/xwork-test-validation.xml b/core/src/test/resources/xwork-test-validation.xml index feb14423a6..e451836367 100644 --- a/core/src/test/resources/xwork-test-validation.xml +++ b/core/src/test/resources/xwork-test-validation.xml @@ -26,7 +26,7 @@ - + diff --git a/core/src/test/resources/xwork-zip.zip b/core/src/test/resources/xwork-zip.zip index 19c19c12af467c9e1b10abb8cbd79861be781907..b60c94b523661708c06d6727ed0c8270cebcea10 100644 GIT binary patch literal 3084 zcmWIWW@Zs#00GwGq)0FWN^mhKFjSQ17iH^KWftg%hVU}5|5jH^hvCu+ZU#n{uZ#=~ zVEqALb2u0{P|UdlG)n|%PJFztqqBc-guY%p+(;A?Z8X%<(M(KE5KT@`NJ{wN>l5~Y zKdd95foXySv$}vZ<3}w8wvX=(1XyL9othT-Oz6{ec+jEs0qArXM)Shiu;~2R1`@S-b*<^X)iYS)Hf7BJ}@!J77f z_gvFvra7tn5q4TNq4V<^wN$%LEyuePosZ4@ByH8(wzO@|u};w=c{8e5e3~cRDER1b z^Nv6Zcd}E#nX|4UP7QPROjG@QZlk|LkMhgc6E*#u8Rv=$bPMXa^L(5k5XX1j*R{sw zt|d!ehvoK#EW3}a-LUn{nY_BG+h^N|G%Z@dyOg=nV|DkcR&Qqk?n5z?I8ME4FbQVV zSh7$4$Ui-ws0o!T@BDr`p)b?Bx93)~+S=u7({z_4SZEdbX}0$5DHXLBJJoBd;c)kc& z>z-Jbd}`3mS$W3lfYpRcONzu;&l%oc`re>p(u6IaJEX3a`p!bW zRN1!~^7jj8O#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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! 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 c17a75b029..dcb0b4352e 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,10 +18,10 @@ */ package org.apache.struts2.convention; +import org.apache.struts2.result.ActionChainResult; import jakarta.servlet.ServletContext; import junit.framework.TestCase; import org.apache.commons.lang3.StringUtils; -import org.apache.struts2.ActionChainResult; import org.apache.struts2.ActionContext; import org.apache.struts2.FileManager; import org.apache.struts2.FileManagerFactory; diff --git a/plugins/spring/src/test/java/org/apache/struts2/spring/SpringObjectFactoryTest.java b/plugins/spring/src/test/java/org/apache/struts2/spring/SpringObjectFactoryTest.java index 9c1cc09b85..01990e59ad 100644 --- a/plugins/spring/src/test/java/org/apache/struts2/spring/SpringObjectFactoryTest.java +++ b/plugins/spring/src/test/java/org/apache/struts2/spring/SpringObjectFactoryTest.java @@ -19,7 +19,7 @@ package org.apache.struts2.spring; import org.apache.struts2.action.Action; -import org.apache.struts2.ActionChainResult; +import org.apache.struts2.result.ActionChainResult; import org.apache.struts2.ActionContext; import org.apache.struts2.ModelDrivenAction; import org.apache.struts2.ObjectFactory; diff --git a/plugins/spring/src/test/resources/org/apache/struts2/spring/actionContext-xwork.xml b/plugins/spring/src/test/resources/org/apache/struts2/spring/actionContext-xwork.xml index 60f64ef5bb..2a80b6fa3b 100644 --- a/plugins/spring/src/test/resources/org/apache/struts2/spring/actionContext-xwork.xml +++ b/plugins/spring/src/test/resources/org/apache/struts2/spring/actionContext-xwork.xml @@ -31,7 +31,7 @@ + class="org.apache.struts2.result.ActionChainResult"/> From 7e3b3e58cf82631f47ead8d50d95e4522b84b017 Mon Sep 17 00:00:00 2001 From: Lukasz Lenart Date: Sat, 2 Nov 2024 15:38:54 +0100 Subject: [PATCH 3/5] Uses proper default package name --- .../XmlConfigurationProviderWildCardIncludeTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderWildCardIncludeTest.java b/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderWildCardIncludeTest.java index 4a29e76b51..db57821210 100644 --- a/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderWildCardIncludeTest.java +++ b/core/src/test/java/org/apache/struts2/config/providers/XmlConfigurationProviderWildCardIncludeTest.java @@ -44,9 +44,9 @@ public void testWildCardInclude() throws Exception { assertNotNull(defaultTwoPackage); assertEquals("default-2", defaultTwoPackage.getName()); - PackageConfig defaultPackage = configuration.getPackageConfig("default"); + PackageConfig defaultPackage = configuration.getPackageConfig("default-wildcard"); assertNotNull(defaultPackage); - assertEquals("default", defaultPackage.getName()); + assertEquals("default-wildcard", defaultPackage.getName()); configurationManager.addContainerProvider(provider); configurationManager.reload(); From f4f82881476be18c1d6cdbd0a817e6d28123a8c2 Mon Sep 17 00:00:00 2001 From: Lukasz Lenart Date: Sat, 2 Nov 2024 17:04:54 +0100 Subject: [PATCH 4/5] WW-5459 Updates content of zipped XMLs --- core/src/test/resources/xwork - zip.zip | Bin 3117 -> 664 bytes core/src/test/resources/xwork-zip.zip | Bin 3084 -> 660 bytes 2 files changed, 0 insertions(+), 0 deletions(-) diff --git a/core/src/test/resources/xwork - zip.zip b/core/src/test/resources/xwork - zip.zip index 5777c256fb09ed5e604ec93f3544897949f78efa..edfc3080199739a456d9bce0e73fe89da0d94bc5 100644 GIT binary patch literal 664 zcmWIWW@Zs#U|`^2i0w#!Uc2|Q>Qll57e-;>#VQXDCbxbP-l+Ok zsG_DbVb1L{PiB9-eo^;~oF`9Tjz8a|-ye(kBy}FiJz6-qa;<`?D(@vNi?4!_Obib^&nDCZlbfN&L%z5#L;0|4)_>OBAe literal 3117 zcmWIWW@Zs#00E=oq)0FWO7Ji!FjSQ17iBBxDpX|_=!b^zGO!0~sHMYjX$3a}Bg
x}dD*OQ_tOnH+wSaMC(R%8=WgHmkLk&KU&WQX*|XUmVD)BY zZ_a-{{jVRhh`5PBmimpkf(A>1KQ>4*iktM>>M%(uUy&_67~oo#VZ-}p%2Tlq2W#2` z-g8ZxndYSON7!lAgwD@v)Kcv}wH)tGbUrroleATD+tRi<$2vui)XY%T%Zl7%<(zIv+?^5PQkJa6)TD_eGxDUll;yCrH!6cYb zW63`GBmeY#q9#{PF*hR5MW zh9T{l1&Xfgv~13_nKfQ`EHU$1#+u2E*G|3Q3Y)6MTj!x}VKU{wZ1K=Y^N#O@t#{Y7 zuX|!$@~J^LXXP2I16C6*Eh!RXJ!g1(>3f5YNfWkw?vT1x>N`7q_QjWd!jb1Q_uhX$ zW9^>XA2T;kT`&5%PyI)C&CBw)*X=()UvF;VWmhaEXgK-TO{33(k+<#QlK($RnYz~P zy<(=m#%@{j^Rq5Qe%?OeQO#;D@k#sAgC9O#s5K|AY|WaWdAsx;$~5JykIHMZ{>Hm@ zqt@GwzJz3%mN<6f_baD_sD1e6y3kv3{?^6+%5^^rY&!AhX-yA@dgq&YN*zl#ay&W5 z8pda~=kWI%JcVy&o1eNBeM=!AA$LcSeb=vvZyeu>NTuZ1gm#=&dD8xH9`9@&p+{Vg zQf1#}$louVG3l>+Y}i}==QXwd65KYQ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o!T@BDr`p)b?Bx93)~+S=u7({z_4SZEdbX}0$5DHXLBJJoBd;c)kc& z>z-Jbd}`3mS$W3lfYpRcONzu;&l%oc`re>p(u6IaJEX3a`p!bW zRN1!~^7jj8O#15{8}^p}c}=aq1h>tnPsQ3=E)Dk3B!Q12ek{a&Cs_Wmvw(ku^xk-G&AR zT}+t@^DoMJ7`Nbfu~k&WQ_mE^R$&UuwGHWcvGm*H|y+@N{KiBop*wiBF*BD@{a&Z5K!14LQM&+6cNWPML?x0ybLh_mLV`a zT8504A;YT-LCy`Je4>Q648fW)hDZq_lJnKUMA~`LqwhAJ%-i1=Tb`DE9V~uhv*Djv zn^p$Co_+h($*=AIq|SN7wB6q<04YHj?_55MC_xyRM3`~6$AAS57#wf}QHbIfr7Z<& zp`jHb0p1XEVeK>IwhyR%1_K8gJ%CJdT5HHQfZ9;VwF#&V1p{vz*%*;sPGXA+-5TWL z7gRODz}rSK79@`#LJHadCBC9Uwh@$&kv#?~)?wgnqYo>F$FQblP(hC;en6HWrwLGQ ifq}P;Q5^WZh1EVRc_+Y|l?`Mj8xUpy>-;`W5Dx&vU2vTM From b835e8978199346e953d8f1cfc04957c6ce01ee5 Mon Sep 17 00:00:00 2001 From: Lukasz Lenart Date: Sat, 2 Nov 2024 17:10:20 +0100 Subject: [PATCH 5/5] Creates temp folder in target folder --- core/src/test/java/org/apache/struts2/config/SettingsTest.java | 2 +- core/src/test/resources/struts.properties | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 c3ac9f0444..cb283cb286 100644 --- a/core/src/test/java/org/apache/struts2/config/SettingsTest.java +++ b/core/src/test/java/org/apache/struts2/config/SettingsTest.java @@ -36,7 +36,7 @@ public void testSettings() { Settings settings = new DefaultSettings(); assertEquals("12345", settings.get(StrutsConstants.STRUTS_MULTIPART_MAX_SIZE)); - assertEquals("\\temp", settings.get(StrutsConstants.STRUTS_MULTIPART_SAVE_DIR)); + assertEquals("./target/temp", settings.get(StrutsConstants.STRUTS_MULTIPART_SAVE_DIR)); assertEquals("test,org/apache/struts2/othertest", settings.get( StrutsConstants.STRUTS_CUSTOM_PROPERTIES)); assertEquals("testvalue", settings.get("testkey")); diff --git a/core/src/test/resources/struts.properties b/core/src/test/resources/struts.properties index 7d905d214a..58288bdda4 100644 --- a/core/src/test/resources/struts.properties +++ b/core/src/test/resources/struts.properties @@ -24,7 +24,7 @@ struts.i18n.encoding=ISO-8859-1 struts.locale=de_DE -struts.multipart.saveDir=\\temp +struts.multipart.saveDir=./target/temp struts.multipart.maxSize=12345 ### Load custom property files (does not override struts.properties!)