Public Member Functions | |
MasterComponentTest () throws Exception | |
void | testInitPass1 () throws Exception |
void | testFullLifecycle () throws Exception |
void | testEventSyncMultipleRuns () throws Exception |
Protected Member Functions | |
void | setUp () throws Exception |
void | tearDown () throws Exception |
Private Member Functions | |
void | _testEventSync (StateChangeListener listener) throws Exception |
void | verifyCurrentState (ROstringSeq statesProperty, String[] expectedHierarchy) |
Private Attributes | |
MasterComponent | m_masterComp |
|
Constructor for MasterComponentTest. |
|
Uses state change notification to synchronize sending the next event, instead of stupid Thread.sleep like the above tests. This method could be taken as an example of how subsystems can use these synchronization helper classes to write unit tests for their own master components. |
|
|
|
|
|
Test method for multiple runs of _testEventSync(). |
|
|
|
|
|
Helper method for the repeated task of getting the current state hierarchy and comparing it against the expected hierarchy.
This method is a replica of StateChangeListener#verifyCurrentState(String[]) which is necessary for testing w/o using the synchronization facilities offered by |
|
|