The Design of Software (CLOSED)

A public forum for discussing the design of software, from the user interface to the code architecture. Now closed.

The "Design of Software" discussion group has been merged with the main Joel on Software discussion group.

The archives will remain online indefinitely.

Unit testing of servlet MVC-1 oriented java code

I am working with a large application that uses older 'Servlet'
oriented style of development.  Basically, everything piece is a
servlet or connected to some kind of filter.

We could rewrite so that all the 'request.getParameter' and other
servlet calls are far from the actual business logic but it isnt and I
can't change it.


I tried junit cactus but I have redirects (302? 303) responses and
cactus didnt like that. Actually httpunit didnt like redirects.


I was going to try httpunit, but (see above) httpunit doesnt like
redirects.


Anybody have any ideas?
Bot Berlin Send private email
Friday, September 08, 2006
 
 
Toss httpunit? I think you are pretty much stuck with system testing when everything is so stuck together.
son of parnas
Saturday, September 09, 2006
 
 
I don't beleive that it does not handle redirects.  It says it does on the homepage:

http://httpunit.sourceforge.net/

"Written in Java, HttpUnit emulates the relevant portions of browser behavior, including form submission, JavaScript, basic http authentication, cookies and automatic page redirection"
NPR
Tuesday, September 12, 2006
 
 
Must have been an older version.
Bot Berlin Send private email
Tuesday, September 12, 2006
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics
 
Powered by FogBugz