[ajug-members] JUnit testing
Daryl Lee
dlee at altaregos.com
Thu Sep 30 21:38:16 EDT 2004
First:
"Right level of testing" is a very subjective question. I would stop
when I couldn't think of any failure mode that I wasn't testing for.
The good thing about JUnits is that tomorrow, when something dawns on
me, it's easy to plop in another test.
Second:
If I were king (remember me using that expression?) I would have JUnits
that set up the test harness with specific database rows before
executing the tests. It's just a normal extension of the setup/teardown
phase of testing. Mock objects "cheat" on the data access level
testing, and that's a level rich in failure modes.
On Thu, Sep 30, 2004 at 06:05:48PM -0400, Barnes, Michael wrote:
> I have a question about junit and unit testing in general.
>
> First, what is considered the right level of testing. Second, how do people
> test a database application. Do you use mock objects or do you set up a
> database that will support you unit tests.
>
> Thanks
> Mike Barnes
--
Daryl Lee
Open the present--it's a gift.
More information about the ajug-members
mailing list