A test caller for parameterized tests.
More...
#include <mitkTestCaller.h>
|
| TestCaller (const std::string &name, TestMethod test) |
|
| TestCaller (const std::string &name, TestMethod test, ParameterizedFixture &fixture) |
|
| TestCaller (const std::string &name, TestMethod test, ParameterizedFixture *fixture) |
|
| TestCaller (const std::string &name, TestMethod test, ParameterizedFixture *fixture, const std::vector< std::string > ¶m) |
|
| ~TestCaller () override |
|
void | runTest () override |
|
void | setUp () override |
|
void | tearDown () override |
|
std::string | toString () const |
|
template<class ParameterizedFixture>
class mitk::TestCaller< ParameterizedFixture >
A test caller for parameterized tests.
This class is not meant to be used directly. Use the mitk::TestFixture class and MITK_PARAMETERIZED_TEST instead.
Definition at line 33 of file mitkTestCaller.h.
◆ TestCaller() [1/4]
template<class ParameterizedFixture >
◆ TestCaller() [2/4]
template<class ParameterizedFixture >
mitk::TestCaller< ParameterizedFixture >::TestCaller |
( |
const std::string & |
name, |
|
|
TestMethod |
test, |
|
|
ParameterizedFixture & |
fixture |
|
) |
| |
|
inline |
Constructor for TestCaller. This constructor does not create a new ParameterizedFixture instance but accepts an existing one as parameter. The TestCaller will not own the ParameterizedFixture object.
- Parameters
-
Definition at line 59 of file mitkTestCaller.h.
References globalCmdLineArgs.
◆ TestCaller() [3/4]
template<class ParameterizedFixture >
mitk::TestCaller< ParameterizedFixture >::TestCaller |
( |
const std::string & |
name, |
|
|
TestMethod |
test, |
|
|
ParameterizedFixture * |
fixture |
|
) |
| |
|
inline |
Constructor for TestCaller. This constructor does not create a new ParameterizedFixture instance but accepts an existing one as parameter. The TestCaller will own the ParameterizedFixture object and delete it in its destructor.
- Parameters
-
Definition at line 74 of file mitkTestCaller.h.
References globalCmdLineArgs.
◆ TestCaller() [4/4]
template<class ParameterizedFixture >
mitk::TestCaller< ParameterizedFixture >::TestCaller |
( |
const std::string & |
name, |
|
|
TestMethod |
test, |
|
|
ParameterizedFixture * |
fixture, |
|
|
const std::vector< std::string > & |
param |
|
) |
| |
|
inline |
Constructor for TestCaller. This constructor does not create a new ParameterizedFixture instance but accepts an existing one as parameter. The TestCaller will own the ParameterizedFixture object and delete it in its destructor.
- Parameters
-
name | name of this TestCaller |
test | the method this TestCaller calls in runTest() |
fixture | the Fixture to invoke the test method on. |
param | A list of string parameters for the fixture. |
Definition at line 90 of file mitkTestCaller.h.
◆ ~TestCaller()
template<class ParameterizedFixture >
◆ runTest()
template<class ParameterizedFixture >
◆ setUp()
template<class ParameterizedFixture >
◆ tearDown()
template<class ParameterizedFixture >
◆ toString()
template<class ParameterizedFixture >
The documentation for this class was generated from the following file: