Hello,

We are in the midst of writing some concurrent integration tests of this 
application using MockRoundtrip.  It's pretty neat, we can run all these 
concurrent tests concurrently in a while(true) loop to simulate real live usage 
of the app with N users doing every possible operation.  The major limitation 
is the 32 bit OS has a pretty low thread count limit (~400 depending on stack 
size).

The other issue is, ½ of the server side code isn't hit with these tests - 
namely freemarker servlet's template processing.  I'd love to extend the 
stripes mock API to pass forwards onto FM servlet, run through the template 
processing code and verify that the template processed fine with no exceptions 
being thrown.  I also need to time some of the templates for performance.

I understand the mock api was never designed with this sort of thing in mind,
"Being mock objects, and not a full servlet container, there are several 
limitations of which you should be aware:

 *   There's no URL matching; all Filters are applied to every request
 *   A MockServletContext supports only a single Servlet, so you can only test 
on thing at a time
 *   Forwards, Redirects and Includes are not processed (but information about 
them is recorded for verification)"
But I think it might be time to add this in, any ideas how I would go about 
adjusting the behavior of the second two points (url matching could come last)? 
 Has anyone already done this?
I have extensions of MockServletContext and MockRequestDispatcher but this is 
looking like it will be somewhat involved..  I've replaced private Servlet 
servlet with private Set<Servlet> servlets; but now the dispatcher has to have 
mappings etc.
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to