org.faktorips.runtime.test
Class IpsTestSuite

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

public class IpsTestSuite
extends IpsTest2

A test suite is a container for tests.

Author:
Jan Ortmann

Constructor Summary
IpsTestSuite(String qName)
           
 
Method Summary
 void addTest(IpsTest2 test)
          Adds the test to the suite.
 int countTestCases()
          Returns the number of test cases in this test.
 IpsTest2 getTest(String name)
          Returns the test with the given name.
 List<IpsTest2> 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.
 String toString()
           
 
Methods inherited from class org.faktorips.runtime.test.IpsTest2
getFullPath, getName, getQualifiedName, getRepository, setFullPath, setRepository
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IpsTestSuite

public IpsTestSuite(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 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


Copyright © 2015. All rights reserved.