Class DefaultTestSuite

    • Field Detail

      • name

        private java.lang.String name
        This Test's name
      • tests

        protected java.util.List tests
        Stores the list of child tests
    • Constructor Detail

      • DefaultTestSuite

        public DefaultTestSuite()
    • Method Detail

      • 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
      • setName

        public void setName​(java.lang.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