ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rolf Katzenberger <rf...@gmx.net>
Subject Re: JUnit task: setUp() called before every test method
Date Sun, 16 Dec 2001 16:48:06 GMT
Hi Stanford,

On Sun, 16 Dec 2001 08:39:17 -0600, "Guillory, Stanford"
<guillory@vignette.com> wrote:

>I am using the junit task. However, I am noticing that the
>setUp() method of my TestCase classes is being called
>before every testX() method in the class, as opposed to
>once before all the testX() methods are called.
>
>This appears quite wrong, but I haven't looked into whether
>it's an ant junit task thing or a junit thing. Any ideas
>as to what I'm doing wrong?

This behaves as defined, setUp() is called before every test (i.e.
testX() method):

http://junit.sourceforge.net/javadoc/junit/framework/TestCase.html#setUp()

You can find lots of documentation, tutorials, etc at www.junit.org.


Regards,
Rolf

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message