junit.extensions
Class TestSetup
- Test
A Decorator to set up and tear down additional fixture state.
Subclass TestSetup and insert it into your tests when you want
to set up additional state once before the tests are run.
void | run(TestResult result) - Runs a test and collects its result in a TestResult instance.
|
protected void | setUp() - Sets up the fixture.
|
protected void | tearDown() - Tears down the fixture.
|
assertEquals , assertEquals , assertEquals , assertEquals , assertEquals , assertEquals , assertEquals , assertEquals , assertEquals , assertEquals , assertEquals , assertEquals , assertEquals , assertEquals , assertEquals , assertEquals , assertEquals , assertEquals , assertEquals , assertEquals , assertFalse , assertFalse , assertNotNull , assertNotNull , assertNotSame , assertNotSame , assertNull , assertNull , assertSame , assertSame , assertTrue , assertTrue , fail , fail |
TestSetup
public TestSetup(Test test)
run
public void run(TestResult result)
Runs a test and collects its result in a TestResult instance.
- run in interface Test
- run in interface TestDecorator
setUp
protected void setUp()
throws Exception
Sets up the fixture. Override to set up additional fixture
state.
tearDown
protected void tearDown()
throws Exception
Tears down the fixture. Override to tear down the additional
fixture state.