Medical Imaging Interaction Toolkit  2021.02.99-e55a5d2f
Medical Imaging Interaction Toolkit
mitk::TestCaller< ParameterizedFixture > Class Template Reference

A test caller for parameterized tests. More...

#include <mitkTestCaller.h>

Inheritance diagram for mitk::TestCaller< ParameterizedFixture >:
Collaboration diagram for mitk::TestCaller< ParameterizedFixture >:

Public Member Functions

 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 > &param)
 
 ~TestCaller () override
 
void runTest () override
 
void setUp () override
 
void tearDown () override
 
std::string toString () const
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ TestCaller() [1/4]

template<class ParameterizedFixture >
mitk::TestCaller< ParameterizedFixture >::TestCaller ( const std::string &  name,
TestMethod  test 
)
inline

Constructor for TestCaller. This constructor builds a new ParameterizedFixture instance owned by the TestCaller.

Parameters
namename of this TestCaller
testthe method this TestCaller calls in runTest()

Definition at line 44 of file mitkTestCaller.h.

References globalCmdLineArgs.

Referenced by mitk::TestCaller< ParameterizedFixture >::toString().

◆ 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
namename of this TestCaller
testthe method this TestCaller calls in runTest()
fixturethe Fixture to invoke the test method on.

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
namename of this TestCaller
testthe method this TestCaller calls in runTest()
fixturethe Fixture to invoke the test method on.

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
namename of this TestCaller
testthe method this TestCaller calls in runTest()
fixturethe Fixture to invoke the test method on.
paramA list of string parameters for the fixture.

Definition at line 90 of file mitkTestCaller.h.

◆ ~TestCaller()

template<class ParameterizedFixture >
mitk::TestCaller< ParameterizedFixture >::~TestCaller ( )
inlineoverride

Definition at line 99 of file mitkTestCaller.h.

Member Function Documentation

◆ runTest()

template<class ParameterizedFixture >
void mitk::TestCaller< ParameterizedFixture >::runTest ( )
inlineoverride

Definition at line 105 of file mitkTestCaller.h.

◆ setUp()

template<class ParameterizedFixture >
void mitk::TestCaller< ParameterizedFixture >::setUp ( )
inlineoverride

Definition at line 106 of file mitkTestCaller.h.

◆ tearDown()

template<class ParameterizedFixture >
void mitk::TestCaller< ParameterizedFixture >::tearDown ( )
inlineoverride

Definition at line 107 of file mitkTestCaller.h.

◆ toString()

template<class ParameterizedFixture >
std::string mitk::TestCaller< ParameterizedFixture >::toString ( ) const
inline

The documentation for this class was generated from the following file: