Class IpsTestSuite


  • public class IpsTestSuite
    extends IpsTest2
    A test suite is a container for tests.
    Author:
    Jan Ortmann
    • Constructor Detail

      • IpsTestSuite

        public IpsTestSuite​(java.lang.String qName)
    • Method Detail

      • addTest

        public void addTest​(IpsTest2 test)
        Adds the test to the suite.
      • removeTest

        public void removeTest​(IpsTest2 test)
        Removes the test from the suite.
      • getTests

        public java.util.List<IpsTest2> getTests()
        Returns all tests in the suite.
      • size

        public int size()
        Returns the number of tests in the suite. Note that if this suite contains another suite this method does not add the number of tests in this other suite to this suite's size.
      • countTestCases

        public int countTestCases()
        Description copied from class: IpsTest2
        Returns the number of test cases in this test. If this is a test the method returns 1, if this is a suite the number of test cases in the suite itself and all suites that are contained in this one.
        Specified by:
        countTestCases in class IpsTest2
      • getTest

        public IpsTest2 getTest​(java.lang.String name)
        Returns the test with the given name. This method does not search recursively in suites that are contained in this suite.
        Parameters:
        name - The unqualified name of the test that identifies the test in this suite.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object