|
SVCS - English Documentation
|
Test fixture for InitCommand integration tests. More...
#include <InitCommandIntegrationTest.hxx>
Protected Member Functions | |
| void | SetUp () override |
| Sets up the test environment. | |
| void | TearDown () override |
| Tears down the test environment. | |
Protected Attributes | |
| std::shared_ptr< MockSubject > | mockEventBus |
| Mock event bus for capturing system notifications. | |
| std::shared_ptr< RepositoryManager > | repoManager |
| Real RepositoryManager instance under test. | |
| std::unique_ptr< InitCommand > | command |
| InitCommand instance under test. | |
| std::filesystem::path | testDir |
| Path to the temporary directory created for the test. | |
Test fixture for InitCommand integration tests.
Manages the setup and teardown of a temporary, isolated directory on the filesystem for each test case. It uses the real RepositoryManager to test actual repository creation logic and a MockSubject to verify event publications.
|
overrideprotected |
Sets up the test environment.
Creates a unique temporary directory, changes the current path to it, and initializes the RepositoryManager and InitCommand.
|
overrideprotected |
Tears down the test environment.
Restores the original current path and recursively removes the temporary directory.