Package org.faktorips.runtime.test
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 Summary
Constructors Constructor Description IpsTestSuite(java.lang.String qName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTest(IpsTest2 test)Adds the test to the suite.intcountTestCases()Returns the number of test cases in this test.IpsTest2getTest(java.lang.String name)Returns the test with the given name.java.util.List<IpsTest2>getTests()Returns all tests in the suite.voidremoveTest(IpsTest2 test)Removes the test from the suite.voidrun(IpsTestResult result)intsize()Returns the number of tests in the suite.java.lang.StringtoString()-
Methods inherited from class org.faktorips.runtime.test.IpsTest2
getFullPath, getName, getQualifiedName, getRepository, setFullPath, setRepository
-
-
-
-
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:IpsTest2Returns 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:
countTestCasesin classIpsTest2
-
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.
-
run
public void run(IpsTestResult result)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-