junit.extensions
Class TestSetup
java.lang.Object
|
+--junit.framework.Assert
|
+--junit.extensions.TestDecorator
|
+--junit.extensions.TestSetup
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.
TestSetup
public TestSetup(Test 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.
- test
run
public void run(final TestResult result)
- result
setUp
protected void setUp()
Sets up the fixture. Override to set up additional fixture
state.
tearDown
protected void tearDown()
Tears down the fixture. Override to tear down the additional
fixture state.