Browse Source

consistent copies of mocks

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@558 50f2f4bb-b051-0410-bef5-90022cba6387
pull/1/head
Juergen Hoeller 17 years ago
parent
commit
d90f197bb5
  1. 7
      org.springframework.web.portlet/src/test/java/org/springframework/mock/web/portlet/MockActionResponse.java
  2. 1
      org.springframework.web.portlet/src/test/java/org/springframework/mock/web/portlet/MockClientDataRequest.java
  3. 2
      org.springframework.web.portlet/src/test/java/org/springframework/mock/web/portlet/MockEventResponse.java
  4. 1
      org.springframework.web.portlet/src/test/java/org/springframework/mock/web/portlet/MockPortletPreferences.java
  5. 2
      org.springframework.web.portlet/src/test/java/org/springframework/mock/web/portlet/MockPortletRequest.java
  6. 4
      org.springframework.web.portlet/src/test/java/org/springframework/mock/web/portlet/MockStateAwareResponse.java

7
org.springframework.web.portlet/src/test/java/org/springframework/mock/web/portlet/MockActionResponse.java

@ -17,11 +17,6 @@ @@ -17,11 +17,6 @@
package org.springframework.mock.web.portlet;
import java.io.IOException;
import java.io.Serializable;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map;
import javax.portlet.ActionResponse;
import javax.portlet.PortalContext;
@ -29,10 +24,8 @@ import javax.portlet.PortletMode; @@ -29,10 +24,8 @@ import javax.portlet.PortletMode;
import javax.portlet.PortletModeException;
import javax.portlet.WindowState;
import javax.portlet.WindowStateException;
import javax.xml.namespace.QName;
import org.springframework.util.Assert;
import org.springframework.util.CollectionUtils;
/**
* Mock implementation of the {@link javax.portlet.ActionResponse} interface.

1
org.springframework.web.portlet/src/test/java/org/springframework/mock/web/portlet/MockClientDataRequest.java

@ -26,7 +26,6 @@ import java.io.UnsupportedEncodingException; @@ -26,7 +26,6 @@ import java.io.UnsupportedEncodingException;
import javax.portlet.ClientDataRequest;
import javax.portlet.PortalContext;
import javax.portlet.PortletContext;
import javax.portlet.PortletMode;
/**
* Mock implementation of the {@link javax.portlet.ClientDataRequest} interface.

2
org.springframework.web.portlet/src/test/java/org/springframework/mock/web/portlet/MockEventResponse.java

@ -16,8 +16,8 @@ @@ -16,8 +16,8 @@
package org.springframework.mock.web.portlet;
import javax.portlet.EventResponse;
import javax.portlet.EventRequest;
import javax.portlet.EventResponse;
/**
* Mock implementation of the {@link javax.portlet.EventResponse} interface.

1
org.springframework.web.portlet/src/test/java/org/springframework/mock/web/portlet/MockPortletPreferences.java

@ -23,7 +23,6 @@ import java.util.HashSet; @@ -23,7 +23,6 @@ import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;
import javax.portlet.PortletPreferences;
import javax.portlet.PreferencesValidator;
import javax.portlet.ReadOnlyException;

2
org.springframework.web.portlet/src/test/java/org/springframework/mock/web/portlet/MockPortletRequest.java

@ -482,7 +482,7 @@ public class MockPortletRequest implements PortletRequest { @@ -482,7 +482,7 @@ public class MockPortletRequest implements PortletRequest {
return this.windowID;
}
public void setCookies(Cookie[] cookies) {
public void setCookies(Cookie... cookies) {
this.cookies = cookies;
}

4
org.springframework.web.portlet/src/test/java/org/springframework/mock/web/portlet/MockStateAwareResponse.java

@ -16,20 +16,18 @@ @@ -16,20 +16,18 @@
package org.springframework.mock.web.portlet;
import java.io.IOException;
import java.io.Serializable;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map;
import javax.portlet.ActionResponse;
import javax.portlet.PortalContext;
import javax.portlet.PortletMode;
import javax.portlet.PortletModeException;
import javax.portlet.StateAwareResponse;
import javax.portlet.WindowState;
import javax.portlet.WindowStateException;
import javax.portlet.StateAwareResponse;
import javax.xml.namespace.QName;
import org.springframework.util.Assert;

Loading…
Cancel
Save