ComponentTestHelper Class Reference
Class to test a single component.
More...
#include <ComponentTest.h>
List of all members.
Detailed Description
Class to test a single component.
- Create an instance of this class
- Use AddMock to add mock components that the tested component relies on
- Use Add to add the test component itself, and it returns a component pointer
- Call methods on the component pointer
- Use Roundtrip to test the consistency of serialization
Constructor & Destructor Documentation
| ComponentTestHelper::ComponentTestHelper |
( |
|
) |
[inline] |
Member Function Documentation
Call this once to initialise the test helper with a component.
| CSimContext& ComponentTestHelper::GetSimContext |
( |
|
) |
[inline] |
| void ComponentTestHelper::HandleMessage |
( |
IComponent * |
cmp, |
|
|
const CMessage & |
msg, |
|
|
bool |
global | |
|
) |
| | [inline] |
| void ComponentTestHelper::Roundtrip |
( |
bool |
verbose = false |
) |
[inline] |
Checks that the object roundtrips through its serialize/deserialize functions correctly.
Computes the debug output, hash, and binary serialization; then deserializes into a new system and checks the serialization outputs are unchanged.
Member Data Documentation
The documentation for this class was generated from the following file: