Class DefaultTestSuite

java.lang.Object
org.apache.batik.test.AbstractTest
org.apache.batik.test.DefaultTestSuite
All Implemented Interfaces:
Test, TestSuite
Direct Known Subclasses:
DummyValidTestSuite, SelfContainedSVGOnLoadTestValidator, SVGRenderingAccuracyTestValidator, XMLTestSuiteRunnerValidator

public class DefaultTestSuite extends AbstractTest implements TestSuite
Default implementation of the TestSuite interface.
Version:
$Id: DefaultTestSuite.java 1733416 2016-03-03 07:07:13Z gadams $
  • Field Details

    • name

      private String name
      This Test's name
    • tests

      protected List tests
      Stores the list of child tests
  • Constructor Details

    • DefaultTestSuite

      public DefaultTestSuite()
  • Method Details

    • 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 String getName()
      Description copied from class: AbstractTest
      Returns this Test's name.
      Specified by:
      getName in interface Test
      Overrides:
      getName in class AbstractTest
    • setName

      public void setName(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