Class IpsTestSuite

java.lang.Object
org.faktorips.runtime.test.IpsTest2
org.faktorips.runtime.test.IpsTestSuite

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

    • IpsTestSuite

      public IpsTestSuite(String qName)
  • Method Details

    • 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 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(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.
    • run

      public void run(IpsTestResult result)
      Specified by:
      run in class IpsTest2
    • toString

      public String toString()
      Overrides:
      toString in class Object