"Guillory, Stanford" [EMAIL PROTECTED] 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.
Depends on the case. Since you are probably setting values or whatever in each test method, I would not want to reconfigure it each time the object I'm testing or get an unstable object. the setUp method does this for you otherwise you could inherit values from a preceding test method and since the order of introspection depends on the JVM (for instance IBM does the reverse of Sun) you can obviouslly get interesting results.... > 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 designed. See JUnit FAQ. http://junit.sourceforge.net/doc/faq/faq.htm#How do I run setup code only once Stephane -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
