|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.TestSuite
consciouscode.junit.TestSuite
public class TestSuite
Extended TestSuite that can name itself from a given a TestSuite class.
| Constructor Summary | |
|---|---|
protected |
TestSuite()
Constructs an empty TestSuite, named after the instance's concrete class. |
|
TestSuite(Class<?> theClass)
Constructs a TestSuite from the given class. |
|
TestSuite(String name)
Constructs an empty TestSuite. |
| Method Summary | |
|---|---|
void |
addTestSuite(Class suiteClass)
Adds a given TestSuite to this suite, or generates a new suite from a given class. |
boolean |
classExtendsTestSuite(Class<?> suiteClass)
Determines whether suiteClass is a subclass
of junit.framework.TestSuite. |
| Methods inherited from class junit.framework.TestSuite |
|---|
addTest, countTestCases, createTest, getName, getTestConstructor, run, runTest, setName, testAt, testCount, tests, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected TestSuite()
public TestSuite(Class<?> theClass)
public TestSuite(String name)
| Method Detail |
|---|
public void addTestSuite(Class suiteClass)
suiteClass is a subclass of
junit.framework.TestSuite,
then its public no-argument constructor is called, and the resulting
instance is added to this suite. Otherwise, it is passed to the
superclass implementation, which will attempt to generate a TestSuite
from all the methods starting with "test" that take no arguments.
addTestSuite in class junit.framework.TestSuitesuiteClass - Must extend either
TestSuite or
TestCase.public boolean classExtendsTestSuite(Class<?> suiteClass)
suiteClass is a subclass
of junit.framework.TestSuite.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||