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 theTestSuite
interface.- Version:
- $Id: DefaultTestSuite.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
name
This Test's nameprotected java.util.List
tests
Stores 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 void
addTest(Test test)
Adds aTest
to the suiteint
getChildrenCount()
Returns the number of child testsTest[]
getChildrenTests()
Returns this suite'sTest
.java.lang.String
getName()
Returns thisTest
's name.void
removeTest(Test test)
Removes aTest
from the suite.TestReport
runImpl()
Runs the tests and returns a reportvoid
setName(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 aTest
to the suite
-
removeTest
public void removeTest(Test test)
Removes aTest
from the suite.- Specified by:
removeTest
in interfaceTestSuite
-
runImpl
public TestReport runImpl()
Runs the tests and returns a report- Overrides:
runImpl
in classAbstractTest
-
getName
public java.lang.String getName()
Description copied from class:AbstractTest
Returns thisTest
's name.- Specified by:
getName
in interfaceTest
- Overrides:
getName
in classAbstractTest
-
setName
public void setName(java.lang.String name)
Description copied from class:AbstractTest
Sets this test's name- Overrides:
setName
in classAbstractTest
-
getChildrenTests
public Test[] getChildrenTests()
Description copied from interface:TestSuite
Returns 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:
getChildrenTests
in interfaceTestSuite
-
getChildrenCount
public int getChildrenCount()
Returns the number of child tests- Specified by:
getChildrenCount
in interfaceTestSuite
-
-