OTest2
A C++ testing framework
|
Object repeater which runs the test just once. More...
#include <objectrepeateronce.h>
Public Member Functions | |
ObjectRepeaterOnce () | |
Ctor. More... | |
virtual | ~ObjectRepeaterOnce () |
Dtor. More... | |
ObjectRepeaterOnce (const ObjectRepeaterOnce &)=delete | |
ObjectRepeaterOnce & | operator= (const ObjectRepeaterOnce &)=delete |
virtual bool | hasNextRun (const Context &context_) const override |
Check whether next run of the object is planned. More... | |
virtual void | modifyObjectPath (const Context &context_, ObjectPath &path_) const override |
Change current object path. More... | |
virtual ObjectScenarioPtr | createObject (const Context &context_, const std::string &decorated_name_, ObjectPtr parent_) override |
Create the testing object. More... | |
![]() | |
ObjectRepeater () | |
Ctor. More... | |
virtual | ~ObjectRepeater () |
Dtor. More... | |
ObjectRepeater (const ObjectRepeater &)=delete | |
ObjectRepeater & | operator= (const ObjectRepeater &)=delete |
Object repeater which runs the test just once.
Definition at line 33 of file objectrepeateronce.h.
OTest2::ObjectRepeaterOnce::ObjectRepeaterOnce | ( | ) |
Ctor.
Definition at line 26 of file objectrepeateronce.cpp.
|
virtual |
Dtor.
Definition at line 31 of file objectrepeateronce.cpp.
|
delete |
|
overridevirtual |
Create the testing object.
context_ | The OTest2 context |
name_ | Name of the object |
parent_ | Parent object of the created object |
Implements OTest2::ObjectRepeater.
Definition at line 46 of file objectrepeateronce.cpp.
|
overridevirtual |
Check whether next run of the object is planned.
context_ | The otest2 context |
Implements OTest2::ObjectRepeater.
Definition at line 35 of file objectrepeateronce.cpp.
|
overridevirtual |
Change current object path.
This method changes current object path to distinguish different runs of the testing object. Usually the some object's parameters are set.
[in] | context_ | The OTest2 context |
[in,out] | path_ | The modified object path |
Implements OTest2::ObjectRepeater.
Definition at line 40 of file objectrepeateronce.cpp.
|
delete |