Class DefaultTestSuite
java.lang.Object
org.apache.batik.test.AbstractTest
org.apache.batik.test.DefaultTestSuite
- Direct Known Subclasses:
DummyValidTestSuite, SelfContainedSVGOnLoadTestValidator, SVGRenderingAccuracyTestValidator, XMLTestSuiteRunnerValidator
Default implementation of the
TestSuite interface.- Version:
- $Id$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringThis Test's nameprotected ListStores the list of child testsFields inherited from class AbstractTest
id, parent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds aTestto the suiteintReturns the number of child testsTest[]Returns this suite'sTest.getName()Returns thisTest's name.voidremoveTest(Test test) Removes aTestfrom the suite.runImpl()Runs the tests and returns a reportvoidSets this test's nameMethods inherited from class AbstractTest
assertEquals, assertEquals, assertNull, assertTrue, error, getId, getParent, getQualifiedId, reportError, reportException, reportSuccess, run, runImplBasic, setId, setParent
-
Field Details
-
name
This Test's name -
tests
Stores the list of child tests
-
-
Constructor Details
-
DefaultTestSuite
public DefaultTestSuite()
-
-
Method Details
-
addTest
-
removeTest
Removes aTestfrom the suite.- Specified by:
removeTestin interfaceTestSuite
-
runImpl
Runs the tests and returns a report- Overrides:
runImplin classAbstractTest
-
getName
Description copied from class:AbstractTestReturns thisTest's name.- Specified by:
getNamein interfaceTest- Overrides:
getNamein classAbstractTest
-
setName
Description copied from class:AbstractTestSets this test's name- Overrides:
setNamein classAbstractTest
-
getChildrenTests
Description copied from interface:TestSuiteReturns this suite'sTest. This should not return a reference to any internal structure held by theTestSuite. For example, if an internal array is used, this shoudl return a copy of that array.- Specified by:
getChildrenTestsin interfaceTestSuite
-
getChildrenCount
public int getChildrenCount()Returns the number of child tests- Specified by:
getChildrenCountin interfaceTestSuite
-