JsUnit
Project Developer Home doxygen

Public Member Functions | List of all members
TestSetup Class Reference

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

Inheritance diagram for TestSetup:
Inheritance graph
Collaboration diagram for TestSetup:
Collaboration graph

Public Member Functions

void TestSetup (Test test)
 Constructor. More...
 
void setUp ()
 Sets up the fixture. More...
 
void tearDown ()
 Tears down the fixture. More...
 
- Public Member Functions inherited from TestDecorator
void TestDecorator (Test test)
 Constructor. More...
 
- Public Member Functions inherited from Assert
void Assert ()
 

Additional Inherited Members

- Public Attributes inherited from TestDecorator
int mTest
 
- Protected Member Functions inherited from Test
virtual void Test ()
 
virtual String getName ()
 Retrieves the name of the test. More...
 
virtual Test findTest (String testName)
 Search a test by name. More...
 
virtual void setName (String testName)
 Sets the name of the test. More...
 
virtual Number countTestCases ()
 Counts the number of test cases that will be run by this test. More...
 
virtual TestResult run (TestResult result)
 Runs the test. More...
 

Detailed Description

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.

See Also
TestCase

Constructor & Destructor Documentation

void TestSetup::TestSetup ( Test  test)

Constructor.

The constructor saves the test.

Parameters
testThe test to decorate.

Member Function Documentation

void TestSetup::setUp ( )

Sets up the fixture.

Override to set up additional fixture state.

void TestSetup::tearDown ( )

Tears down the fixture.

Override to tear down the additional fixture state.


The documentation for this class was generated from the following file:

JsUnit © 1999, 2000, 2001, 2002, 2003, 2006, 2007 by Jörg Schaible
Generated on Wed Apr 15 2015 02:33:07 for JsUnit by doxygen 1.8.5