giacomo wrote:
>
> > From the JUnit FAQ:
> > ----------------------------------------------------------------
> > Wrap the top level suite in a subclass of TestSetup.
> > Here is a sample AllTests.suite() method:
> >
> > public static Test suite() {
> > TestSuite suite= new TestSuite();
> > ...add your tests and suites here...
> > TestSetup wrapper= new TestSetup(suite) {
> > public void setUp() {
> > oneTimeSetUp();
> > }
> > };
> > return wrapper;
> > }
>
> Yes, but with we are not using TestSuite under ANT, right?
Actually it works either way. The TestRunner in the JUnit
Ant task will try to treat EVERY class in its fileset as a
Test. That includes TestCase, TestSuite, and even inner classes
if you are not careful. You can use TestDecorators, TestSuites,
whatever you want.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]