| net.sourceforge.groboutils.junit.v1.SubTestTestCase
All known Subclasses: net.sourceforge.groboutils.codecoverage.v2.logger.DirectoryChannelLogReaderUTest, net.sourceforge.groboutils.codecoverage.v2.ant.AnalysisModuleTypeUTest, net.sourceforge.groboutils.codecoverage.v2.compiler.MultipleAnalyzersIUTest, net.sourceforge.groboutils.junit.v1.IntegrationTestCase, net.sourceforge.groboutils.codecoverage.v2.compiler.ModifiedMethodUTest,
SubTestTestCase | public class SubTestTestCase extends TestCase (Code) | | A TestCase which enables tests to run a subset of tests from an active
test. Examples would include running unit tests associated with an
object returned from a creation method called on the class under test.
Note that added sub-tests should be new Test instances, not the same test.
This is because these sub-tests will run after the registered instance
has tearDown() called on it.
author: Matt Albrecht groboclown@users.sourceforge.net version: $Date: 2003/02/10 22:52:19 $ since: July 26, 2002 |
Constructor Summary | |
public | SubTestTestCase(String name) Creates a new test case with the given name. | public | SubTestTestCase() Default constructor that uses the JUnit 3.8 version of setName()
for setting the test's name. |
Method Summary | |
public void | addSubTest(Test test) Allows for execution of the given test instance from inside another
test. | public void | run(TestResult result) Runs the test case and collects the results in TestResult. |
SubTestTestCase | public SubTestTestCase(String name)(Code) | | Creates a new test case with the given name. This allows for JUnit
3.7 compatibility.
|
SubTestTestCase | public SubTestTestCase()(Code) | | Default constructor that uses the JUnit 3.8 version of setName()
for setting the test's name.
since: December 28, 2002 |
addSubTest | public void addSubTest(Test test)(Code) | | Allows for execution of the given test instance from inside another
test. This will use the current test's TestResult, or if there
is no current TestResult, it will create a new one for the
test. Note that the list of tests will be run at the end of the current
test, after the tearDown() method has been called. This is for
legacy TestListener support.
Parameters: test - the test object to add as a sub-test. |
run | public void run(TestResult result)(Code) | | Runs the test case and collects the results in TestResult.
|
|
|