From: Marvin L. <m_...@at...> - 2003-03-13 02:15:31
|
Hi, I just started using Mock Objects a while ago. It is great. The following is a small patch to make MockHttpSession.removeAttribute() remove the attribute from the myAttributeValues HashMap. Index: MockHttpSession.java =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/src/j2ee/1.3/com/mockobjects/servlet/MockHttpSession.java,v retrieving revision 1.3 diff -u -r1.3 MockHttpSession.java --- MockHttpSession.java 28 Aug 2002 18:27:11 -0000 1.3 +++ MockHttpSession.java 13 Mar 2003 02:01:07 -0000 @@ -93,6 +93,7 @@ public void removeAttribute(String anAttributeName) { myRemovedAttributes.addActual(anAttributeName); + myAttributeValues.remove(anAttributeName); } public void removeValue(String arg1) { |