From: Jeff M. <je...@mk...> - 2004-12-09 10:19:21
|
In a word no. You need to use setupGetAttribute to set the values of getAttribute. The mock is deliberately designed this way to allow you to make assertions about how getAttribute is actually called. On Wed, 2004-12-08 at 11:58 -0800, phillip rhodes wrote: > The code that I am testing calls setAttribute on my > mock httpsession, and later, it is calling > getAttribute on the mock session to return the same > object. > > Is there a way that I can get that call to > getAttribute to use the value that was passed to it in > the previous setAttribute call? > > Is there any documentation or examples that could > point me in the correct direction? > > Thanks very much. I have spent hours on google;( > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > Mockobjects-java-users mailing list > Moc...@li... > https://lists.sourceforge.net/lists/listinfo/mockobjects-java-users -- jeff martin information technologist mkodo limited mobile: 44 (0) 78 55 478 331 phone: 44 (0) 20 77 29 45 45 email: jef...@mk... www.mkodo.com 73 Leonard St, London, EC2A 4QS. U.K |