You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2014/01/22 04:05:20 UTC

svn commit: r1560241 - /myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/MockHttpServletResponse.java

Author: lu4242
Date: Wed Jan 22 03:05:19 2014
New Revision: 1560241

URL: http://svn.apache.org/r1560241
Log:
small improvement add getCookies() method

Modified:
    myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/MockHttpServletResponse.java

Modified: myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/MockHttpServletResponse.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/MockHttpServletResponse.java?rev=1560241&r1=1560240&r2=1560241&view=diff
==============================================================================
--- myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/MockHttpServletResponse.java (original)
+++ myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/MockHttpServletResponse.java Wed Jan 22 03:05:19 2014
@@ -80,6 +80,11 @@ public class MockHttpServletResponse imp
     {
         return (Cookie) cookies.get(name);
     }
+    
+    public Map<String, Cookie> getCookies()
+    {
+        return cookies;
+    }
 
     /**
      * <p>Return the text message for the HTTP status that was set.</p>
@@ -139,7 +144,7 @@ public class MockHttpServletResponse imp
     private long contentLength = 0;
     private int bufferSize = 0;
     private Locale locale = Locale.getDefault();
-    private Map cookies = new HashMap(4);
+    private Map<String, Cookie> cookies = new HashMap<String, Cookie>(4);
 
     // -------------------------------------------- HttpServletResponse Methods