----- Original Message -----
From: "Jari Worsley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 02, 2001 6:54 PM
Subject: Re: [cactus]A Heath Robinson lash up with HttpUnit


[snip]
>
> Jari
>
> As an aside:
> - given that a new instance is created for each test, rather for each
> TestCase, doesn't that "break" the JUnit API a little? Perhaps we should
> store an instance of a ServletTestCase so that the constructor is called
> only once? Or is that not how JUnit is supposed to work? i.e. are you
> supposed to rely on the setUp and tearDown methods and not rely on the
> constructor at all?

No, it doesn't "break" the JUnit API because :
1/ This exactly how JUnit works !
2/ It enforces that each test is independent from another one, which is what
we want to achieve in unit-testing !

> --
> Jari Worsley
Vincent

Reply via email to