Package org.apache.batik.test
Class DefaultTestSuite
- java.lang.Object
-
- org.apache.batik.test.AbstractTest
-
- org.apache.batik.test.DefaultTestSuite
-
- Direct Known Subclasses:
DummyValidTestSuite,SelfContainedSVGOnLoadTestValidator,SVGRenderingAccuracyTestValidator,XMLTestSuiteRunnerValidator
public class DefaultTestSuite extends AbstractTest implements TestSuite
Default implementation of theTestSuiteinterface.- Version:
- $Id: DefaultTestSuite.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringnameThis Test's nameprotected java.util.ListtestsStores the list of child tests-
Fields inherited from class org.apache.batik.test.AbstractTest
id, parent
-
-
Constructor Summary
Constructors Constructor Description DefaultTestSuite()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTest(Test test)Adds aTestto the suiteintgetChildrenCount()Returns the number of child testsTest[]getChildrenTests()Returns this suite'sTest.java.lang.StringgetName()Returns thisTest's name.voidremoveTest(Test test)Removes aTestfrom the suite.TestReportrunImpl()Runs the tests and returns a reportvoidsetName(java.lang.String name)Sets this test's name-
Methods inherited from class org.apache.batik.test.AbstractTest
assertEquals, assertEquals, assertNull, assertTrue, error, getId, getParent, getQualifiedId, reportError, reportException, reportSuccess, run, runImplBasic, setId, setParent
-
-
-
-
Method Detail
-
addTest
public void addTest(Test test)
Adds aTestto the suite
-
removeTest
public void removeTest(Test test)
Removes aTestfrom the suite.- Specified by:
removeTestin interfaceTestSuite
-
runImpl
public TestReport runImpl()
Runs the tests and returns a report- Overrides:
runImplin classAbstractTest
-
getName
public java.lang.String getName()
Description copied from class:AbstractTestReturns thisTest's name.- Specified by:
getNamein interfaceTest- Overrides:
getNamein classAbstractTest
-
setName
public void setName(java.lang.String name)
Description copied from class:AbstractTestSets this test's name- Overrides:
setNamein classAbstractTest
-
getChildrenTests
public Test[] 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
-
-