SVCS - English Documentation
Loading...
Searching...
No Matches
IntHelpCommandTest.hxx
1#pragma once
2
3#include <gtest/gtest.h>
4#include <memory>
5#include <vector>
6#include <string>
7
12
13namespace svcs::test::cli::utils {
14
15using Event = svcs::services::Event;
16using svcs::cli::HelpCommand;
17using svcs::test::cli::mocks::MockSubject;
18using svcs::test::cli::mocks::MockHelpService;
19
20class HelpCommandTest : public ::testing::Test {
21protected:
22 void SetUp() override;
23 void TearDown() override;
24
25 static bool containsMessage(const std::vector<Event>& notifications, const std::string& message);
26 int countMessages(const std::vector<Event>& notifications, const std::string& message);
27
28 std::shared_ptr<MockSubject> mockEventBus;
29 std::shared_ptr<MockHelpService> mockHelpService;
30 std::unique_ptr<HelpCommand> command;
31};
32
33}
Defines the event structure used for the Observer pattern notifications.
Declaration of the HelpCommand class for displaying command help information.
Mock implementation of the HelpService interface for unit testing purposes.
Definition IntHelpCommandTest.hxx:20
Mock implementation of the ISubject interface for unit testing purposes.
Utility classes and test fixtures for CLI command testing.
Definition ClearCommandTest.cxx:17
Structure describing an event published by the VCS core.
Definition Event.hxx:30