Test Class Adapter Source

Functions

TEST_F(ClassAdapterTest, AdapterTranslation)

Tests the Adapter’s ability to translate requests.

TEST_F(ClassAdapterTest, DirectAdapteeRequest)

Tests direct interaction with the Adaptee’s specificRequest for comparison.

class ClassAdapterTest : public testing::Test

Test Fixture for the Class Adapter Pattern.

Protected Functions

inline std::string captureOutput(const std::function<void()> &func)

Captures and verifies console output during tests.

Protected Attributes

Adapter adapter

Instance of the Adapter used for testing.

Inner Classes