Common implementation of a generated test case.
More...
#include <casegenerated.h>
Common implementation of a generated test case.
Definition at line 37 of file casegenerated.h.
◆ CaseGenerated() [1/2]
◆ CaseGenerated() [2/2]
OTest2::CaseGenerated::CaseGenerated |
( |
const Context & |
context_, |
|
|
const std::string & |
name_ |
|
) |
| |
|
explicit |
◆ ~CaseGenerated()
OTest2::CaseGenerated::~CaseGenerated |
( |
| ) |
|
|
virtual |
◆ getFirstState()
StatePtr OTest2::CaseGenerated::getFirstState |
( |
| ) |
const |
|
overridevirtual |
◆ getName()
std::string OTest2::CaseGenerated::getName |
( |
| ) |
const |
|
virtual |
◆ getState()
StatePtr OTest2::CaseGenerated::getState |
( |
const std::string & |
name_ | ) |
const |
|
overridevirtual |
◆ operator=()
◆ otest2Context()
const Context & OTest2::CaseGenerated::otest2Context |
( |
| ) |
const |
|
virtual |
◆ registerFixture()
Register a pair of start-up and tear-down functions.
Definition at line 154 of file casegenerated.cpp.
◆ registerState()
void OTest2::CaseGenerated::registerState |
( |
const std::string & |
name_, |
|
|
StatePtr |
state_ |
|
) |
| |
|
protected |
Register new test state.
- Parameters
-
name_ | Name of the state |
state_ | The state |
Definition at line 143 of file casegenerated.cpp.
◆ scheduleBody()
Schedule body of the testing object.
- Parameters
-
context_ | The OTest2 context |
scenario_ | The scenario representing this object |
me_ | A shared pointer pointing this instance |
Implements OTest2::ObjectScenario.
Definition at line 109 of file casegenerated.cpp.
◆ setEnteringState()
void OTest2::CaseGenerated::setEnteringState |
( |
const std::string & |
name_ | ) |
|
|
protected |
Set name of the entering (first) state.
- Parameters
-
Definition at line 149 of file casegenerated.cpp.
◆ startUpObject()
bool OTest2::CaseGenerated::startUpObject |
( |
const Context & |
context_, |
|
|
int |
index_ |
|
) |
| |
|
overridevirtual |
Execute start-up function at specified index.
- Parameters
-
context_ | The OTest2 context |
index_ | The zero based index of the start-up function |
- Returns
- True if the start-up function exists and has been run
Implements OTest2::ObjectScenario.
Definition at line 96 of file casegenerated.cpp.
◆ tearDownObject()
void OTest2::CaseGenerated::tearDownObject |
( |
const Context & |
context_, |
|
|
int |
index_ |
|
) |
| |
|
overridevirtual |
The documentation for this class was generated from the following files: