Medical Imaging Interaction Toolkit  2016.11.0
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 ()
 
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 37 of file mitkTestCaller.h.

Constructor & Destructor Documentation

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 48 of file mitkTestCaller.h.

References globalCmdLineArgs.

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 63 of file mitkTestCaller.h.

References globalCmdLineArgs.

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 78 of file mitkTestCaller.h.

References globalCmdLineArgs.

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 94 of file mitkTestCaller.h.

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

Definition at line 103 of file mitkTestCaller.h.

Member Function Documentation

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

Definition at line 109 of file mitkTestCaller.h.

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

Definition at line 110 of file mitkTestCaller.h.

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

Definition at line 111 of file mitkTestCaller.h.

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

Definition at line 112 of file mitkTestCaller.h.


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