org.jtiger.framework.junit
Class JUnitSetUpTearDown

java.lang.Object
  extended by org.jtiger.framework.junit.JUnitSetUpTearDown
All Implemented Interfaces:
SetUpTearDown

public final class JUnitSetUpTearDown
extends Object
implements SetUpTearDown

This implementation of SetUpTearDown is intended to be used to execute test cases that have been written using the JUnit Test Framework. The implementation is passed to the framework by returning an instance from FixturesRunnerConfig.getSutdClass() or by passing the qualified class name as the appropriate argument on the command line to the framework main method.

Version:
2.1
Build Number 0376
Build Time 2006-07-28 01:50.16.218 CET (GMT + 1)
Author:
Tony Morris

Constructor Summary
JUnitSetUpTearDown()
          Create a default instance of JUnitSetUpTearDown.
 
Method Summary
 void setUp(Object fixture)
          Perform the setting up of JUnit Test Framework test cases.
 void tearDown(Object fixture)
          Perform the tearing down of JUnit Test Framework test cases.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JUnitSetUpTearDown

public JUnitSetUpTearDown()
Create a default instance of JUnitSetUpTearDown.

Method Detail

setUp

public void setUp(Object fixture)
           throws SetUpException
Perform the setting up of JUnit Test Framework test cases.

Specified by:
setUp in interface SetUpTearDown
Parameters:
fixture - The test fixture to set up.
Throws:
SetUpException - If a setUp method cannot be found or if an error occurs during reflective invocation of the JUnit setUp method.

tearDown

public void tearDown(Object fixture)
              throws TearDownException
Perform the tearing down of JUnit Test Framework test cases.

Specified by:
tearDown in interface SetUpTearDown
Parameters:
fixture - The test fixture to tear down.
Throws:
TearDownException - If a tearDown method cannot be found or if an error occurs during reflective invocation of the JUnit tearDown method.