On Wed, March 16, 2005 1:47 pm, Joe Germuska said:
> I disagree.  Actions are not fine the way they are.  They depend too
> directly on the Servlet API, which is one of the reasons they are too
> hard to unit test.

I agree with that first part, however, I find the unit test point
interesting (not sure if amusing is the better word or not)...

Since Actions are supposed to contain no actual functionality and just
serve as basically an interface between two layers, why would they ever
really require unit testing?

I mean, ideally all Actions should be a couple of lines of code, moving
data from one object (ActionForm) to another (ValueObject) and handing
that off to some business delegate.  If we agree that's the ideal, does it
really ultimately matter if it is abstracted away from the servlet API and
therefore easier to unit test? (I did say I agree with getting away from
the servlet API, but only out of a sense of simplifying the method
signature).

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to