>
>I'm not yet sure how it would be possible to take a particular test and
>switch it among the three forms (in-container, mock object, functional) by
>setting a switch; nor am I sure that I understand the main rationale for
>doing so.
1. I think a large part of the rationale is that people don't necessarily
distinguish between unit, black-box, functional etc. etc. etc. testing.
They just want to test the code. (And the difference between the various
types is often hazy at best...)
2. Much of the testing is complementary, and an integrated test suite where
the same test class, with the same import statements, did all the testing
for one servlet would be tidy. (Yes, I know you can do this at the moment
but I wouldn't call the packages in any way "integrated". Couple this with
some easy to understand doco and...
3. If management asks "How are you testing?" it's nice to be able to point
to one thing and say "with this"... ;)
Jim
--
* Jim Cheesman *
Trabajo:
[EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
I'm still not sure
if I understand ambiguity.