Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#19 Provide HttpSession factory for subclassing

open
nobody
5
2004-09-02
2004-09-02
No

There's a number of unimplemented methods in
HttpSessionSimulator. It would be great if this class
could be subclassed, and then the subclass could be
used instead for those of us who need more functionalty
for getCreationTime(), getLastAccessedTime(),
getMaxInactiveInterval(), and other things.

A factory method to set the class of the created object
would make this much easier.

Currently, this can only be done by rewriting
MockStrutsTestCase and then creating a subclass of
HttpServletRequestSimulator.

In the same manner, it'd be good if
HttpServletRequestSimulator,
HttpServletResponseSimulator, ServletContextSimulator,
and ServletConfigSimulator could have factory classes
specified.

Discussion