Sunday, August 18, 2002 06:17 PM
- Are you using the mock objects from Struts Test Case at SourceForge (or something like them) for you mock testing?
- Why do you want to write a single test case for an entire Action class? Unit tests are best when they are very fine grained; when one fails, you know exactly why without having to find out what the message corresponds to in your test.
But to answer your question, can you not just write a method that sets up a fixture, does your asserts, sets up the next fixture, does some more asserts, etc.
Apologies if I missed the point of your question...
Lance Walton - email@example.com
Team In A Box - Software without Tragedy