Class TestSetup

All Implemented Interfaces:
Test

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 Details

    • TestSetup

      public TestSetup(Test test)
  • Method Details

    • run

      public void run(TestResult result)
      Description copied from interface: Test
      Runs a test and collects its result in a TestResult instance.
      Specified by:
      run in interface Test
      Overrides:
      run in class TestDecorator
    • setUp

      protected void setUp() throws Exception
      Sets up the fixture. Override to set up additional fixture state.
      Throws:
      Exception
    • tearDown

      protected void tearDown() throws Exception
      Tears down the fixture. Override to tear down the additional fixture state.
      Throws:
      Exception