22#include <gtest/gtest.h>
47using svcs::services::Event;
79 void SetUp()
override;
103 bool containsMessage(
const std::vector<Event>& notifications,
const std::string& message);
136 std::unique_ptr<VersionCommand>
command;
Declaration of the VersionCommand class for displaying version information.
Command for displaying version information about SVCS.
Definition VersionCommand.hxx:36
A mock implementation of ISubject for testing event-driven components.
Definition MockSubject.hxx:43
Google Test fixture for running unit/integration tests against the VersionCommand.
Definition IntVersionCommandTest.hxx:48
std::shared_ptr< MockSubject > mockEventBus
Shared pointer to the mock event bus for capturing command output.
Definition IntVersionCommandTest.hxx:84
bool containsExactMessage(const std::vector< Event > ¬ifications, const std::string &message)
Checks if any event notification contains the exact specified message.
Definition IntVersionCommandTest.cxx:39
void SetUp() override
Sets up the testing environment before each test.
Definition IntVersionCommandTest.cxx:22
std::unique_ptr< VersionCommand > command
Unique pointer to the command being tested.
Definition IntVersionCommandTest.hxx:90
void TearDown() override
Tears down the testing environment after each test.
Definition IntVersionCommandTest.cxx:28
bool containsMessage(const std::vector< Event > ¬ifications, const std::string &message)
Checks if a specific message (substring) exists in any event notification.
Definition IntVersionCommandTest.cxx:32
Mock implementation of the ISubject interface for unit testing purposes.
Utility classes and test fixtures for CLI command testing.
Definition ClearCommandTest.cxx:17