Package org.faktorips.runtime.test
Class IpsTestSuite
java.lang.Object
org.faktorips.runtime.test.IpsTest2
org.faktorips.runtime.test.IpsTestSuite
A test suite is a container for tests.
- Author:
- Jan Ortmann
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the test to the suite.int
Returns the number of test cases in this test.Returns the test with the given name.getTests()
Returns all tests in the suite.void
removeTest
(IpsTest2 test) Removes the test from the suite.void
run
(IpsTestResult result) int
size()
Returns the number of tests in the suite.toString()
Methods inherited from class org.faktorips.runtime.test.IpsTest2
getFullPath, getName, getQualifiedName, getRepository, setFullPath, setRepository
-
Constructor Details
-
IpsTestSuite
-
-
Method Details
-
addTest
Adds the test to the suite. -
removeTest
Removes the test from the suite. -
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 classIpsTest2
-
getTest
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
-
toString
-