public class

TestSetup

extends TestDecorator
java.lang.Object
   ↳ junit.framework.Assert
     ↳ junit.extensions.TestDecorator
       ↳ junit.extensions.TestSetup

Class Overview

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.

Summary

[Expand]
Inherited Fields
From class junit.extensions.TestDecorator
Public Constructors
TestSetup(Test test)
Public Methods
void run(TestResult result)
Runs a test and collects its result in a TestResult instance.
Protected Methods
void setUp()
Sets up the fixture.
void tearDown()
Tears down the fixture.
[Expand]
Inherited Methods
From class junit.extensions.TestDecorator
From class junit.framework.Assert
From class java.lang.Object
From interface junit.framework.Test

Public Constructors

public TestSetup (Test test)

Public Methods

public void run (TestResult result)

Runs a test and collects its result in a TestResult instance.

Protected Methods

protected void setUp ()

Sets up the fixture. Override to set up additional fixture state.

Throws
Exception

protected void tearDown ()

Tears down the fixture. Override to tear down the additional fixture state.

Throws
Exception