All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class samples.TestSetup

java.lang.Object
   |
   +----samples.TestDecorator
           |
           +----samples.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 Index

 o TestSetup(Test)

Method Index

 o run(TestResult)
 o setUp()
Sets up the fixture.
 o tearDown()
Tears down the fixture.

Constructors

 o TestSetup
 public TestSetup(Test test)

Methods

 o setUp
 protected void setUp()
Sets up the fixture. Override to set up additional fixture state.

 o tearDown
 protected void tearDown()
Tears down the fixture. Override to tear down the additional fixture state.

 o run
 public void run(TestResult result)
Overrides:
run in class TestDecorator

All Packages  Class Hierarchy  This Package  Previous  Next  Index