Manual mock implementation of the IObserver interface.
More...
|
| void | notify (const Event &event) override |
| | Method called by the Subject to notify the observer.
|
| void | update (const Event &event) override |
| | Method called by the Subject to update the observer.
|
|
size_t | get_event_count () const |
|
bool | contains_event_with_text (const std::string &text) const |
|
void | clear_events () |
| virtual | ~IObserver ()=default |
| | Default virtual destructor.
|
|
|
std::vector< Event > | received_events |
Manual mock implementation of the IObserver interface.
- This class records all events received via the 'update' or 'notify' methods, allowing test assertions on event content and count.
◆ notify()
| void svcs::test::core::ManualMockObserver::notify |
( |
const Event & | event | ) |
|
|
inlineoverridevirtual |
◆ update()
| void svcs::test::core::ManualMockObserver::update |
( |
const Event & | event | ) |
|
|
inlineoverridevirtual |
Method called by the Subject to update the observer.
- Parameters
-
| event | The Event structure containing information about the occurrence. |
Implements svcs::services::IObserver.
The documentation for this class was generated from the following file: