|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
net.sourceforge.groboutils.junit.v1.SubTestTestCase
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.
Constructor Summary | |
SubTestTestCase()
Default constructor that uses the JUnit 3.8 version of setName() for setting the test's name. |
|
SubTestTestCase(java.lang.String name)
Creates a new test case with the given name. |
Method Summary | |
void |
addSubTest(junit.framework.Test test)
Allows for execution of the given test instance from inside another test. |
void |
run(junit.framework.TestResult result)
Runs the test case and collects the results in TestResult. |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, runBare, runTest, setName, setUp, tearDown, toString |
Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SubTestTestCase(java.lang.String name)
public SubTestTestCase()
Method Detail |
public void addSubTest(junit.framework.Test test)
test
- the test object to add as a sub-test.public void run(junit.framework.TestResult result)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |