OTest2
A C++ testing framework
|
Inteface of a testing object scheduled by the scenario (test, suite and test case) More...
#include <objectscenario.h>
Public Member Functions | |
ObjectScenario () | |
Dtor. More... | |
virtual | ~ObjectScenario () |
Dtor. More... | |
ObjectScenario (const ObjectScenario &)=delete | |
ObjectScenario & | operator= (const ObjectScenario &)=delete |
virtual bool | startUpObject (const Context &context_, int index_)=0 |
Execute start-up function at specified index. More... | |
virtual void | scheduleBody (const Context &context_, ScenarioPtr scenario_, ObjectPtr me_)=0 |
Schedule body of the testing object. More... | |
virtual void | tearDownObject (const Context &context_, int index_)=0 |
Execute tear-down function at specified index. More... | |
![]() | |
Object (const Object &)=delete | |
Object & | operator= (const Object &)=delete |
Object () | |
Ctor. More... | |
virtual | ~Object () |
Dtor. More... | |
virtual std::string | getName () const =0 |
Get object's name. More... | |
Inteface of a testing object scheduled by the scenario (test, suite and test case)
Definition at line 37 of file objectscenario.h.
OTest2::ObjectScenario::ObjectScenario | ( | ) |
Dtor.
Definition at line 23 of file objectscenario.cpp.
|
virtual |
Dtor.
Definition at line 27 of file objectscenario.cpp.
|
delete |
|
delete |
|
pure virtual |
Schedule body of the testing object.
context_ | The OTest2 context |
scenario_ | The scenario representing this object |
me_ | A shared pointer pointing this instance |
Implemented in OTest2::SuiteGenerated, OTest2::CaseGenerated, and OTest2::TestRoot.
|
pure virtual |
Execute start-up function at specified index.
context_ | The OTest2 context |
index_ | The zero based index of the start-up function |
Implemented in OTest2::CaseGenerated, OTest2::SuiteGenerated, and OTest2::TestRoot.
|
pure virtual |
Execute tear-down function at specified index.
context_ | The OTest2 context |
index_ | The zero based index of the tear-down function |
Implemented in OTest2::CaseGenerated, OTest2::SuiteGenerated, and OTest2::TestRoot.