|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cactus.internal.AbstractTestSuite
public abstract class AbstractTestSuite
Test Suite that wraps all the tests of the suite in Cactus Test Case objects so that pure JUnit tests can be run on the server side.
Constructor Summary | |
---|---|
AbstractTestSuite()
|
|
AbstractTestSuite(java.lang.Class theClass)
|
|
AbstractTestSuite(java.lang.String theName)
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractTestSuite()
TestSuite.TestSuite()
public AbstractTestSuite(java.lang.Class theClass)
TestSuite.TestSuite(Class)
public AbstractTestSuite(java.lang.String theName)
TestSuite.TestSuite(String)
Method Detail |
---|
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 constructor
java.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 Suite
protected abstract junit.framework.Test createCactusTestCase(java.lang.String theName, junit.framework.Test theTest)
theName
- the name of the Cactus Test CasetheTest
- the wrapped test
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |