struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgie...@apache.org
Subject svn commit: r833169 - in /struts/struts2/trunk: apps/portlet/ core/ core/src/test/java/org/apache/struts2/dispatcher/ core/src/test/java/org/apache/struts2/views/jsp/ plugins/convention/ plugins/dojo/ plugins/javatemplates/ plugins/jfreechart/ plugins/...
Date Thu, 05 Nov 2009 21:07:59 GMT
Author: rgielen
Date: Thu Nov  5 21:07:58 2009
New Revision: 833169

URL: http://svn.apache.org/viewvc?rev=833169&view=rev
Log:
WW-3315:
Align all easymock dependencies to version 2.4

Modified:
    struts/struts2/trunk/apps/portlet/pom.xml
    struts/struts2/trunk/core/pom.xml
    struts/struts2/trunk/core/src/test/java/org/apache/struts2/dispatcher/ServletActionRedirectResultTest.java
    struts/struts2/trunk/core/src/test/java/org/apache/struts2/dispatcher/ServletRedirectResultTest.java
    struts/struts2/trunk/core/src/test/java/org/apache/struts2/views/jsp/DynAttribsTest.java
    struts/struts2/trunk/plugins/convention/pom.xml
    struts/struts2/trunk/plugins/dojo/pom.xml
    struts/struts2/trunk/plugins/javatemplates/pom.xml
    struts/struts2/trunk/plugins/jfreechart/pom.xml
    struts/struts2/trunk/plugins/json/pom.xml
    struts/struts2/trunk/plugins/oval/pom.xml
    struts/struts2/trunk/plugins/portlet/pom.xml
    struts/struts2/trunk/plugins/spring/pom.xml

Modified: struts/struts2/trunk/apps/portlet/pom.xml
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/apps/portlet/pom.xml?rev=833169&r1=833168&r2=833169&view=diff
==============================================================================
--- struts/struts2/trunk/apps/portlet/pom.xml (original)
+++ struts/struts2/trunk/apps/portlet/pom.xml Thu Nov  5 21:07:58 2009
@@ -166,14 +166,14 @@
       <artifactId>log4j</artifactId>
       <version>1.2.9</version>
     </dependency>
-		
+
 		<dependency>
 			<groupId>org.mortbay.jetty</groupId>
 			<artifactId>jetty</artifactId>
 			<version>6.1.4rc0</version>
 			<scope>test</scope>
 		</dependency>
-		
+
 		<dependency>
             <groupId>net.sourceforge.jwebunit</groupId>
             <artifactId>jwebunit-htmlunit-plugin</artifactId>
@@ -186,14 +186,14 @@
                 </exclusion>
             </exclusions>
         </dependency>
-		
+
 		<dependency>
 			<groupId>com.bekk.boss</groupId>
 			<artifactId>maven-jetty-pluto-embedded</artifactId>
 			<version>1.0</version>
 			<scope>test</scope>
 		</dependency>
-		
+
 		<dependency>
 			<groupId>org.mortbay.jetty</groupId>
 			<artifactId>jsp-2.1</artifactId>

Modified: struts/struts2/trunk/core/pom.xml
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/pom.xml?rev=833169&r1=833168&r2=833169&view=diff
==============================================================================
--- struts/struts2/trunk/core/pom.xml (original)
+++ struts/struts2/trunk/core/pom.xml Thu Nov  5 21:07:58 2009
@@ -43,7 +43,6 @@
         <plugins>
             <plugin>
                 <artifactId>maven-dependency-plugin</artifactId>
-                <version>2.0-alpha-4</version>
                 <executions>
                     <execution>
                         <id>unpack-xwork</id>
@@ -326,7 +325,7 @@
         <dependency>
             <groupId>org.easymock</groupId>
             <artifactId>easymock</artifactId>
-            <version>2.0</version>
+            <version>2.4</version>
             <scope>test</scope>
         </dependency>
         <!--dependency>

Modified: struts/struts2/trunk/core/src/test/java/org/apache/struts2/dispatcher/ServletActionRedirectResultTest.java
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/test/java/org/apache/struts2/dispatcher/ServletActionRedirectResultTest.java?rev=833169&r1=833168&r2=833169&view=diff
==============================================================================
--- struts/struts2/trunk/core/src/test/java/org/apache/struts2/dispatcher/ServletActionRedirectResultTest.java
(original)
+++ struts/struts2/trunk/core/src/test/java/org/apache/struts2/dispatcher/ServletActionRedirectResultTest.java
Thu Nov  5 21:07:58 2009
@@ -21,17 +21,6 @@
 
 package org.apache.struts2.dispatcher;
 
-import java.util.HashMap;
-import java.util.Map;
-
-import org.apache.struts2.ServletActionContext;
-import org.apache.struts2.StrutsTestCase;
-import org.apache.struts2.dispatcher.mapper.ActionMapper;
-import org.easymock.EasyMock;
-import org.easymock.IMocksControl;
-import org.springframework.mock.web.MockHttpServletRequest;
-import org.springframework.mock.web.MockHttpServletResponse;
-
 import com.opensymphony.xwork2.ActionContext;
 import com.opensymphony.xwork2.ActionInvocation;
 import com.opensymphony.xwork2.ActionProxy;
@@ -39,6 +28,17 @@
 import com.opensymphony.xwork2.config.entities.ActionConfig;
 import com.opensymphony.xwork2.config.entities.ResultConfig;
 import com.opensymphony.xwork2.util.ValueStack;
+import org.apache.struts2.ServletActionContext;
+import org.apache.struts2.StrutsTestCase;
+import org.apache.struts2.dispatcher.mapper.ActionMapper;
+import static org.easymock.EasyMock.createControl;
+import static org.easymock.EasyMock.expect;
+import org.easymock.IMocksControl;
+import org.springframework.mock.web.MockHttpServletRequest;
+import org.springframework.mock.web.MockHttpServletResponse;
+
+import java.util.HashMap;
+import java.util.Map;
 
 
 /**
@@ -87,20 +87,14 @@
         result.setEncode(false);
         result.setPrependServletContext(false);
 
-        IMocksControl control = EasyMock.createControl();
+        IMocksControl control = createControl();
         ActionProxy mockActionProxy = control.createMock(ActionProxy.class);
         ActionInvocation mockInvocation = control.createMock(ActionInvocation.class);
-        mockInvocation.getProxy();
-        control.andReturn(mockActionProxy);
-        mockInvocation.getResultCode();
-        control.andReturn("myResult");
-        mockActionProxy.getConfig();
-        control.andReturn(actionConfig);
-        mockInvocation.getInvocationContext();
-        control.andReturn(context);
-        mockInvocation.getStack();
-        control.andReturn(stack);
-        control.anyTimes();
+        expect(mockInvocation.getProxy()).andReturn(mockActionProxy);
+        expect(mockInvocation.getResultCode()).andReturn("myResult");
+        expect(mockActionProxy.getConfig()).andReturn(actionConfig);
+        expect(mockInvocation.getInvocationContext()).andReturn(context);
+        expect(mockInvocation.getStack()).andReturn(stack).anyTimes();
 
         control.replay();
         result.setActionMapper(container.getInstance(ActionMapper.class));
@@ -145,17 +139,13 @@
         result.setEncode(false);
         result.setPrependServletContext(false);
 
-        IMocksControl control = EasyMock.createControl();
+        IMocksControl control = createControl();
         ActionProxy mockActionProxy = control.createMock(ActionProxy.class);
         ActionInvocation mockInvocation = control.createMock(ActionInvocation.class);
-        mockInvocation.getProxy();
-        control.andReturn(mockActionProxy);
-        mockInvocation.getResultCode();
-        control.andReturn("myResult");
-        mockActionProxy.getConfig();
-        control.andReturn(actionConfig);
-        mockInvocation.getInvocationContext();
-        control.andReturn(context);
+        expect(mockInvocation.getProxy()).andReturn(mockActionProxy);
+        expect(mockInvocation.getResultCode()).andReturn("myResult");
+        expect(mockActionProxy.getConfig()).andReturn(actionConfig);
+        expect(mockInvocation.getInvocationContext()).andReturn(context);
 
         control.replay();
         result.setActionMapper(container.getInstance(ActionMapper.class));

Modified: struts/struts2/trunk/core/src/test/java/org/apache/struts2/dispatcher/ServletRedirectResultTest.java
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/test/java/org/apache/struts2/dispatcher/ServletRedirectResultTest.java?rev=833169&r1=833168&r2=833169&view=diff
==============================================================================
--- struts/struts2/trunk/core/src/test/java/org/apache/struts2/dispatcher/ServletRedirectResultTest.java
(original)
+++ struts/struts2/trunk/core/src/test/java/org/apache/struts2/dispatcher/ServletRedirectResultTest.java
Thu Nov  5 21:07:58 2009
@@ -21,39 +21,32 @@
 
 package org.apache.struts2.dispatcher;
 
-import java.util.HashMap;
-import java.util.Map;
-import java.io.StringWriter;
-import java.io.PrintWriter;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-import static javax.servlet.http.HttpServletResponse.*;
-
-import ognl.Ognl;
-
-import org.apache.struts2.ServletActionContext;
-import org.apache.struts2.StrutsStatics;
-import org.apache.struts2.StrutsTestCase;
-import org.apache.struts2.dispatcher.mapper.ActionMapper;
-import org.apache.struts2.config.StrutsXmlConfigurationProvider;
-import org.springframework.mock.web.MockServletContext;
-import org.springframework.mock.web.MockHttpServletRequest;
-import org.springframework.mock.web.MockHttpServletResponse;
-import org.easymock.EasyMock;
-import org.easymock.IMocksControl;
-
 import com.mockobjects.dynamic.C;
 import com.mockobjects.dynamic.Mock;
 import com.opensymphony.xwork2.ActionContext;
 import com.opensymphony.xwork2.ActionInvocation;
 import com.opensymphony.xwork2.ActionProxy;
-import com.opensymphony.xwork2.config.ConfigurationManager;
+import com.opensymphony.xwork2.config.entities.ActionConfig;
 import com.opensymphony.xwork2.config.entities.PackageConfig;
 import com.opensymphony.xwork2.config.entities.ResultConfig;
-import com.opensymphony.xwork2.config.entities.ActionConfig;
 import com.opensymphony.xwork2.mock.MockActionInvocation;
-import com.opensymphony.xwork2.util.ValueStackFactory;
+import ognl.Ognl;
+import org.apache.struts2.ServletActionContext;
+import org.apache.struts2.StrutsStatics;
+import org.apache.struts2.StrutsTestCase;
+import org.apache.struts2.dispatcher.mapper.ActionMapper;
+import static org.easymock.EasyMock.*;
+import org.easymock.IMocksControl;
+import org.springframework.mock.web.MockHttpServletRequest;
+import org.springframework.mock.web.MockHttpServletResponse;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import static javax.servlet.http.HttpServletResponse.SC_SEE_OTHER;
+import java.io.PrintWriter;
+import java.io.StringWriter;
+import java.util.HashMap;
+import java.util.Map;
 
 
 /**
@@ -180,17 +173,13 @@
         result.setEncode(false);
         result.setPrependServletContext(false);
 
-        IMocksControl control = EasyMock.createControl();
+        IMocksControl control = createControl();
         ActionProxy mockActionProxy = control.createMock(ActionProxy.class);
         ActionInvocation mockInvocation = control.createMock(ActionInvocation.class);
-        mockInvocation.getProxy();
-        control.andReturn(mockActionProxy);
-        mockInvocation.getResultCode();
-        control.andReturn("myResult");
-        mockActionProxy.getConfig();
-        control.andReturn(actionConfig);
-        mockInvocation.getInvocationContext();
-        control.andReturn(context);
+        expect(mockInvocation.getProxy()).andReturn(mockActionProxy);
+        expect(mockInvocation.getResultCode()).andReturn("myResult");
+        expect(mockActionProxy.getConfig()).andReturn(actionConfig);
+        expect(mockInvocation.getInvocationContext()).andReturn(context);
 
         control.replay();
         result.setActionMapper(container.getInstance(ActionMapper.class));
@@ -227,10 +216,10 @@
         MockActionInvocation ai = new MockActionInvocation();
         ai.setInvocationContext(ac);
         ai.setResultCode("myResult");
-        ActionProxy mockActionProxy = EasyMock.createNiceMock(ActionProxy.class);
+        ActionProxy mockActionProxy = createNiceMock(ActionProxy.class);
         ai.setProxy(mockActionProxy);
-        EasyMock.expect(mockActionProxy.getConfig()).andReturn(actionConfig).anyTimes();
-        EasyMock.replay(mockActionProxy);
+        expect(mockActionProxy.getConfig()).andReturn(actionConfig).anyTimes();
+        replay(mockActionProxy);
         this.ai = ai;
         ai.setStack(ActionContext.getContext().getValueStack());
     }

Modified: struts/struts2/trunk/core/src/test/java/org/apache/struts2/views/jsp/DynAttribsTest.java
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/test/java/org/apache/struts2/views/jsp/DynAttribsTest.java?rev=833169&r1=833168&r2=833169&view=diff
==============================================================================
--- struts/struts2/trunk/core/src/test/java/org/apache/struts2/views/jsp/DynAttribsTest.java
(original)
+++ struts/struts2/trunk/core/src/test/java/org/apache/struts2/views/jsp/DynAttribsTest.java
Thu Nov  5 21:07:58 2009
@@ -22,9 +22,7 @@
 package org.apache.struts2.views.jsp;
 
 import java.io.File;
-import java.net.URI;
 import java.net.URL;
-import java.net.URLClassLoader;
 
 import javax.servlet.jsp.tagext.DynamicAttributes;
 import javax.xml.parsers.DocumentBuilder;

Modified: struts/struts2/trunk/plugins/convention/pom.xml
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/convention/pom.xml?rev=833169&r1=833168&r2=833169&view=diff
==============================================================================
--- struts/struts2/trunk/plugins/convention/pom.xml (original)
+++ struts/struts2/trunk/plugins/convention/pom.xml Thu Nov  5 21:07:58 2009
@@ -62,13 +62,13 @@
         <dependency>
             <groupId>org.easymock</groupId>
             <artifactId>easymock</artifactId>
-            <version>2.3</version>
+            <version>2.4</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.easymock</groupId>
             <artifactId>easymockclassextension</artifactId>
-            <version>2.3</version>
+            <version>2.4</version>
             <scope>test</scope>
         </dependency>
         <dependency>

Modified: struts/struts2/trunk/plugins/dojo/pom.xml
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/dojo/pom.xml?rev=833169&r1=833168&r2=833169&view=diff
==============================================================================
--- struts/struts2/trunk/plugins/dojo/pom.xml (original)
+++ struts/struts2/trunk/plugins/dojo/pom.xml Thu Nov  5 21:07:58 2009
@@ -169,7 +169,7 @@
         <dependency>
             <groupId>org.easymock</groupId>
             <artifactId>easymock</artifactId>
-            <version>2.0</version>
+            <version>2.4</version>
             <scope>test</scope>
         </dependency>
         <!--dependency>

Modified: struts/struts2/trunk/plugins/javatemplates/pom.xml
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/javatemplates/pom.xml?rev=833169&r1=833168&r2=833169&view=diff
==============================================================================
--- struts/struts2/trunk/plugins/javatemplates/pom.xml (original)
+++ struts/struts2/trunk/plugins/javatemplates/pom.xml Thu Nov  5 21:07:58 2009
@@ -33,13 +33,13 @@
             <groupId>org.easymock</groupId>
             <artifactId>easymock</artifactId>
             <scope>test</scope>
-            <version>2.2</version>
+            <version>2.4</version>
         </dependency>
         <dependency>
             <groupId>org.easymock</groupId>
             <artifactId>easymockclassextension</artifactId>
             <scope>test</scope>
-            <version>2.2</version>
+            <version>2.4</version>
         </dependency>
     </dependencies>
 

Modified: struts/struts2/trunk/plugins/jfreechart/pom.xml
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/jfreechart/pom.xml?rev=833169&r1=833168&r2=833169&view=diff
==============================================================================
--- struts/struts2/trunk/plugins/jfreechart/pom.xml (original)
+++ struts/struts2/trunk/plugins/jfreechart/pom.xml Thu Nov  5 21:07:58 2009
@@ -91,7 +91,7 @@
  		<dependency>
             <groupId>org.easymock</groupId>
             <artifactId>easymock</artifactId>
-            <version>2.3</version>
+            <version>2.4</version>
             <scope>test</scope>
         </dependency>
 

Modified: struts/struts2/trunk/plugins/json/pom.xml
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/json/pom.xml?rev=833169&r1=833168&r2=833169&view=diff
==============================================================================
--- struts/struts2/trunk/plugins/json/pom.xml (original)
+++ struts/struts2/trunk/plugins/json/pom.xml Thu Nov  5 21:07:58 2009
@@ -87,7 +87,7 @@
         <dependency>
             <groupId>org.easymock</groupId>
             <artifactId>easymock</artifactId>
-            <version>2.3</version>
+            <version>2.4</version>
             <scope>test</scope>
         </dependency>
 

Modified: struts/struts2/trunk/plugins/oval/pom.xml
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/oval/pom.xml?rev=833169&r1=833168&r2=833169&view=diff
==============================================================================
--- struts/struts2/trunk/plugins/oval/pom.xml (original)
+++ struts/struts2/trunk/plugins/oval/pom.xml Thu Nov  5 21:07:58 2009
@@ -64,7 +64,7 @@
         <dependency>
             <groupId>org.easymock</groupId>
             <artifactId>easymock</artifactId>
-            <version>2.0</version>
+            <version>2.4</version>
             <scope>test</scope>
         </dependency>
 

Modified: struts/struts2/trunk/plugins/portlet/pom.xml
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/portlet/pom.xml?rev=833169&r1=833168&r2=833169&view=diff
==============================================================================
--- struts/struts2/trunk/plugins/portlet/pom.xml (original)
+++ struts/struts2/trunk/plugins/portlet/pom.xml Thu Nov  5 21:07:58 2009
@@ -99,7 +99,7 @@
         <dependency>
             <groupId>org.easymock</groupId>
             <artifactId>easymock</artifactId>
-            <version>2.0</version>
+            <version>2.4</version>
             <scope>test</scope>
         </dependency>
     <dependency>

Modified: struts/struts2/trunk/plugins/spring/pom.xml
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/spring/pom.xml?rev=833169&r1=833168&r2=833169&view=diff
==============================================================================
--- struts/struts2/trunk/plugins/spring/pom.xml (original)
+++ struts/struts2/trunk/plugins/spring/pom.xml Thu Nov  5 21:07:58 2009
@@ -88,7 +88,7 @@
 		 <dependency>
             <groupId>org.easymock</groupId>
             <artifactId>easymock</artifactId>
-            <version>2.3</version>
+            <version>2.4</version>
             <scope>test</scope>
         </dependency>
 



Mime
View raw message