java.lang.Object
org.apache.batik.test.AbstractTest
org.apache.batik.test.DefaultTestSuite
- All Implemented Interfaces:
- Test, TestSuite
- public class DefaultTestSuite
- extends AbstractTest
- implements TestSuite
Default implementation of the TestSuite interface.
- Version:
- $Id: DefaultTestSuite.java,v 1.7 2004/08/18 07:16:56 vhardy Exp $
| Methods inherited from class org.apache.batik.test.AbstractTest |
assertEquals, assertEquals, assertNull, assertTrue, error, getId, getParent, getQualifiedId, reportError, reportException, reportSuccess, run, runImplBasic, setId, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
private java.lang.String name
- This Test's name
tests
protected java.util.Vector tests
- Stores the list of child tests
DefaultTestSuite
public DefaultTestSuite()
addTest
public void addTest(Test test)
- Adds a Test to the suite
- Specified by:
addTest in interface TestSuite
removeTest
public void removeTest(Test test)
- Removes a Test from the suite.
- Specified by:
removeTest in interface TestSuite
runImpl
public TestReport runImpl()
- Runs the tests and returns a report
- Overrides:
runImpl in class AbstractTest
getName
public java.lang.String getName()
- Description copied from interface:
Test
- Returns this Test's name.
- Specified by:
getName in interface Test- Overrides:
getName in class AbstractTest
setName
public void setName(java.lang.String name)
- Description copied from class:
AbstractTest
- Sets this test's name
- Overrides:
setName in class AbstractTest
getChildrenTests
public Test[] getChildrenTests()
- Description copied from interface:
TestSuite
- Returns this suite's Test. This should
not return a reference to any internal structure
held by the TestSuite. For example, if
an internal array is used, this shoudl return
a copy of that array.
- Specified by:
getChildrenTests in interface TestSuite
getChildrenCount
public int getChildrenCount()
- Returns the number of child tests
- Specified by:
getChildrenCount in interface TestSuite