⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
junit.extensions

Class TestSetup

java.lang.Object
|
+--junit.framework.Assert
   |
   +--junit.extensions.TestDecorator
      |
      +--junit.extensions.TestSetup


public class TestSetup
extends TestDecorator

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.

Constructor Summary

TestSetup(Test test)

A Decorator to set up and tear down additional fixture state.

Method Summary

void

run(final TestResult result)

void

setUp()

Sets up the fixture.

void

tearDown()

Tears down the fixture.

Constructor Details

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.

Parameters:
test

Method Details

run

public void run(final TestResult result)

Parameters:
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.