com.netriser.xmltestsuite
Interface TestResourceInterface

All Known Implementing Classes:
TestResource

public interface TestResourceInterface

Superclass for resource objects. Resource objects provide resources to the test classes. They are singletons which are created once, even if a set of tests are run multiple times (e.g. through the junit gui application)

Provides initialisation placeholders setUptearDown to ensure compatibility with junit.
Provides logging facilities: verbose(), debug()

To integrate an existing class into this sytem which already has a superclass, implement this interface

To implement a new resource extend TestResource.

Author:
david

Method Summary
 void setUp()
          Called before testing starts Called once for each time the test suite is executed
 void tearDown()
          Called after testing is complete Called once for each time the test suite is executed
 void useTestResult(junit.framework.TestResult resultCollector)
          Called when testing starts ie by Main::RunTest Provides opportunity to calll TestResult::addListener addListener requires class to implement TestListener interface
 

Method Detail

setUp

public void setUp()
Called before testing starts Called once for each time the test suite is executed


tearDown

public void tearDown()
Called after testing is complete Called once for each time the test suite is executed


useTestResult

public void useTestResult(junit.framework.TestResult resultCollector)
Called when testing starts ie by Main::RunTest Provides opportunity to calll TestResult::addListener addListener requires class to implement TestListener interface

Parameters:
resultCollector -