public abstract class AbstractTestSuite
extends java.lang.Object
implements junit.framework.Test
Constructor and Description |
---|
AbstractTestSuite() |
AbstractTestSuite(java.lang.Class theClass) |
AbstractTestSuite(java.lang.String theName) |
Modifier and Type | Method and Description |
---|---|
protected void |
addTest(junit.framework.Test theTest) |
protected void |
addTestSuite(java.lang.Class theTestClass) |
int |
countTestCases() |
protected abstract junit.framework.Test |
createCactusTestCase(java.lang.String theName,
junit.framework.Test theTest) |
protected abstract junit.framework.Test |
createTestSuite(java.lang.Class theTestClass) |
protected java.lang.String |
getName() |
protected static java.lang.reflect.Constructor |
getTestConstructor(java.lang.Class theClass)
Gets a constructor which takes a single String as
its argument or a no arg constructor.
|
void |
run(junit.framework.TestResult theResult) |
protected void |
runTest(junit.framework.Test theTest,
junit.framework.TestResult theResult) |
protected void |
setName(java.lang.String theName) |
protected junit.framework.Test |
testAt(int theIndex) |
protected int |
testCount() |
protected java.util.Enumeration |
tests() |
java.lang.String |
toString() |
public AbstractTestSuite()
TestSuite.TestSuite()
public AbstractTestSuite(java.lang.Class theClass)
TestSuite.TestSuite(Class)
public AbstractTestSuite(java.lang.String theName)
TestSuite.TestSuite(String)
protected void addTest(junit.framework.Test theTest)
TestSuite.addTest(Test)
protected void addTestSuite(java.lang.Class theTestClass)
TestSuite.addTestSuite(Class)
public int countTestCases()
countTestCases
in interface junit.framework.Test
TestSuite.countTestCases()
public void run(junit.framework.TestResult theResult)
run
in interface junit.framework.Test
TestSuite.run(TestResult)
protected void runTest(junit.framework.Test theTest, junit.framework.TestResult theResult)
TestSuite.runTest(Test, TestResult)
protected junit.framework.Test testAt(int theIndex)
TestSuite.testAt(int)
protected static java.lang.reflect.Constructor getTestConstructor(java.lang.Class theClass) throws java.lang.NoSuchMethodException
theClass
- the class for which to find the constructorjava.lang.NoSuchMethodException
- if no valid constructor is
foundprotected int testCount()
TestSuite.testCount()
protected java.util.Enumeration tests()
TestSuite.tests()
public java.lang.String toString()
toString
in class java.lang.Object
TestSuite.toString()
protected void setName(java.lang.String theName)
TestSuite.setName(String)
protected java.lang.String getName()
TestSuite.getName()
protected abstract junit.framework.Test createTestSuite(java.lang.Class theTestClass)
theTestClass
- the test class containing the tests to be included
in the Cactus Test Suiteprotected abstract junit.framework.Test createCactusTestCase(java.lang.String theName, junit.framework.Test theTest)
theName
- the name of the Cactus Test CasetheTest
- the wrapped testCopyright © 2000-2004 Apache Software Foundation. All Rights Reserved.