From: Oren G. <og...@me...> - 2002-08-27 14:21:54
|
well, I just implemented my own: public class TACHttpSession extends MockHttpSession { public TACHttpSession() { super(); setupServletContext(new MockServletContext()); } public TACHttpSession(MockServletContext context) { super(); setupServletContext(context); } public Enumeration getAttributeNames() { return new Vector(attributes.keySet()).elements(); } } ______________________________ Oren Gross, Software Developer Mercury Interactive, APM - R&D +972-3-5399407, og...@me... <mailto:og...@me...> -----Original Message----- From: Jeff Martin [mailto:je...@mk...] Sent: Tuesday, August 27, 2002 4:11 PM To: Mockobjects "Users (E-mail) Subject: Re: [Mockobjects-java-users] MockHttpSession's getAttributeNames() returns null Should have throw an NotImplemented exception. I've added setupGetAttribute names to cvs On Tue, 2002-08-27 at 15:35, Oren Gross wrote: > Hi there, I am using the mockobjects-j2ee1.3.jar's MockHttpSession in the > following way, but get a null enumaration. > Any ideas? Thanks > > MockHttpSession _session = new MockHttpSession(); //empty session > ... > _session.setAttribute("now", new Date()); > Enumeration e = _session.getAttributeNames(); //e is null!!! > ______________________________ > Oren Gross, Software Developer > Mercury Interactive, APM - R&D > +972-3-5399407, og...@me... <mailto:og...@me...> > > -- jeff martin information technologist mkodo limited mobile: 44 (0) 78 5547 8331 phone: 44 (0) 20 2226 4545 email: je...@mk... www.mkodo.com ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 _______________________________________________ Mockobjects-java-users mailing list Moc...@li... https://lists.sourceforge.net/lists/listinfo/mockobjects-java-users |