Author: craigmcc
Date: Fri Sep 16 21:53:57 2005
New Revision: 289705
URL: http://svn.apache.org/viewcvs?rev=289705&view=rev
Log:
Make MockHttpSession support getId() and convenience setId() methods.
Modified:
struts/shale/trunk/test-framework/src/java/org/apache/shale/test/mock/MockHttpSession.java
Modified:
struts/shale/trunk/test-framework/src/java/org/apache/shale/test/mock/MockHttpSession.java
URL:
http://svn.apache.org/viewcvs/struts/shale/trunk/test-framework/src/java/org/apache/shale/test/mock/MockHttpSession.java?rev=289705&r1=289704&r2=289705&view=diff
==============================================================================
---
struts/shale/trunk/test-framework/src/java/org/apache/shale/test/mock/MockHttpSession.java
(original)
+++
struts/shale/trunk/test-framework/src/java/org/apache/shale/test/mock/MockHttpSession.java
Fri Sep 16 21:53:57 2005
@@ -63,9 +63,18 @@
private HashMap attributes = new HashMap();
+ private String id = "123";
private ServletContext servletContext = null;
+ // ---------------------------------------------------------- Public
Methods
+
+
+ public void setId(String id) {
+ this.id = id;
+ }
+
+
// ----------------------------------------------------- HttpSession
Methods
@@ -92,7 +101,7 @@
public String getId() {
- throw new UnsupportedOperationException();
+ return this.id;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]