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
Default implementation of the
TestSuite
interface.- Version:
- $Id: DefaultTestSuite.java 1733416 2016-03-03 07:07:13Z gadams $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
This Test's nameprotected List
Stores the list of child testsFields inherited from class org.apache.batik.test.AbstractTest
id, parent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds aTest
to the suiteint
Returns the number of child testsTest[]
Returns this suite'sTest
.getName()
Returns thisTest
's name.void
removeTest
(Test test) Removes aTest
from the suite.runImpl()
Runs the tests and returns a reportvoid
Sets this test's nameMethods inherited from class org.apache.batik.test.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
Adds aTest
to the suite -
removeTest
Removes aTest
from the suite.- Specified by:
removeTest
in interfaceTestSuite
-
runImpl
Runs the tests and returns a report- Overrides:
runImpl
in classAbstractTest
-
getName
Description copied from class:AbstractTest
Returns thisTest
's name.- Specified by:
getName
in interfaceTest
- Overrides:
getName
in classAbstractTest
-
setName
Description copied from class:AbstractTest
Sets this test's name- Overrides:
setName
in classAbstractTest
-
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
-