Author: jmitchell
Date: Sun Apr 10 21:23:57 2005
New Revision: 160831
URL: http://svn.apache.org/viewcvs?view=rev&rev=160831
Log:
change the default behaviour of MockHttpServletRequest to return a mock session
Modified:
struts/core/trunk/src/share/org/apache/struts/mock/MockHttpServletRequest.java
Modified:
struts/core/trunk/src/share/org/apache/struts/mock/MockHttpServletRequest.java
URL:
http://svn.apache.org/viewcvs/struts/core/trunk/src/share/org/apache/struts/mock/MockHttpServletRequest.java?view=diff&r1=160830&r2=160831
==============================================================================
---
struts/core/trunk/src/share/org/apache/struts/mock/MockHttpServletRequest.java
(original)
+++
struts/core/trunk/src/share/org/apache/struts/mock/MockHttpServletRequest.java
Sun Apr 10 21:23:57 2005
@@ -301,7 +301,8 @@
public HttpSession getSession(boolean create) {
if (create && (session == null)) {
- throw new UnsupportedOperationException();
+ return new MockHttpSession();
+// throw new UnsupportedOperationException();
}
return (session);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]