public static Test suite()
{
return new TestSetup(new TestSuite(ThisClass.class)) {
protected void setUp() { setUpFixture(); };
protected void tearDown() { tearDownFixture(); };
};
}
It doesn't work properly in Eclipse, however, if you try to run a single test method -- the fixture set-up and tear-down are not run. SingleSetupTestSuite defined in my SQL testhelpers library does not suffer from this problem (perhaps I should make a general version of that class some day).