24#include <gtest/gtest.h>
43using namespace svcs::test::cli::mocks;
45using namespace svcs::core;
93 std::unique_ptr<AddCommand>
command;
115 void SetUp()
override;
139 void createTestFile(
const std::string& filename,
const std::string& content =
"test content")
const;
Declaration of the AddCommand class.
Declaration of the RepositoryManager class, managing all repository-level file operations.
Test fixture for AddCommand integration tests.
Definition IntAddCommandTest.hxx:46
std::shared_ptr< MockSubject > mockEventBus
Mock event bus for capturing system notifications.
Definition IntAddCommandTest.hxx:52
std::filesystem::path testDir
Path to the temporary directory used as the repository root.
Definition IntAddCommandTest.hxx:70
void createTestFile(const std::string &filename, const std::string &content="test content") const
Creates a test file inside the test directory.
Definition IntAddCommandTest.cxx:49
void createTestDirectory(const std::string &dirname) const
Creates a test directory inside the test directory.
Definition IntAddCommandTest.cxx:55
void SetUp() override
Sets up the test environment.
Definition IntAddCommandTest.cxx:25
std::shared_ptr< RepositoryManager > repoManager
Real RepositoryManager instance under test.
Definition IntAddCommandTest.hxx:58
void TearDown() override
Tears down the test environment.
Definition IntAddCommandTest.cxx:43
std::unique_ptr< AddCommand > command
AddCommand instance under test.
Definition IntAddCommandTest.hxx:64
Mock implementation of the ISubject interface for unit testing purposes.
Command-line interface components and command implementations.
Service layer components and infrastructure services.
Utility classes and test fixtures for CLI command testing.
Definition ClearCommandTest.cxx:17