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 2011/08/16 22:04:25 UTC
svn commit: r1158433 -
/myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/MockHttpServletRequest.java
Author: lu4242
Date: Tue Aug 16 20:04:25 2011
New Revision: 1158433
URL: http://svn.apache.org/viewvc?rev=1158433&view=rev
Log:
MYFACESTEST-58 Allow override HttpServletRequest method
Modified:
myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/MockHttpServletRequest.java
Modified: myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/MockHttpServletRequest.java
URL: http://svn.apache.org/viewvc/myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/MockHttpServletRequest.java?rev=1158433&r1=1158432&r2=1158433&view=diff
==============================================================================
--- myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/MockHttpServletRequest.java (original)
+++ myfaces/test/trunk/test12/src/main/java/org/apache/myfaces/test/mock/MockHttpServletRequest.java Tue Aug 16 20:04:25 2011
@@ -256,6 +256,11 @@ public class MockHttpServletRequest impl
this.principal = principal;
}
+
+ public void setMethod(String method)
+ {
+ this.method = method;
+ }
// ------------------------------------------------------ Instance Variables
@@ -275,6 +280,7 @@ public class MockHttpServletRequest impl
private ServletInputStream inputStream = null;
private List cookies = new ArrayList();
private Vector locales = null;
+ private String method = null;
// ---------------------------------------------- HttpServletRequest Methods
@@ -407,7 +413,7 @@ public class MockHttpServletRequest impl
public String getMethod()
{
- throw new UnsupportedOperationException();
+ return method;
}