Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

alma::ACS::MasterComponentImpl::MasterComponentTest Class Reference

Collaboration diagram for alma::ACS::MasterComponentImpl::MasterComponentTest:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

Author:
hsommer created Apr 13, 2004 4:32:51 PM


Constructor & Destructor Documentation

alma::ACS::MasterComponentImpl::MasterComponentTest::MasterComponentTest  )  throws Exception [inline]
 

Constructor for MasterComponentTest.


Member Function Documentation

void alma::ACS::MasterComponentImpl::MasterComponentTest::_testEventSync StateChangeListener  listener  )  throws Exception [inline, private]
 

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.

void alma::ACS::MasterComponentImpl::MasterComponentTest::setUp  )  throws Exception [inline, protected]
 

void alma::ACS::MasterComponentImpl::MasterComponentTest::tearDown  )  throws Exception [inline, protected]
 

void alma::ACS::MasterComponentImpl::MasterComponentTest::testEventSyncMultipleRuns  )  throws Exception [inline]
 

Test method for multiple runs of _testEventSync().

void alma::ACS::MasterComponentImpl::MasterComponentTest::testFullLifecycle  )  throws Exception [inline]
 

void alma::ACS::MasterComponentImpl::MasterComponentTest::testInitPass1  )  throws Exception [inline]
 

void alma::ACS::MasterComponentImpl::MasterComponentTest::verifyCurrentState ROstringSeq  statesProperty,
String[]  expectedHierarchy
[inline, private]
 

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 StateChangeListener.


Member Data Documentation

MasterComponent alma::ACS::MasterComponentImpl::MasterComponentTest::m_masterComp [private]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:54:06 2009 for ACS Java API by doxygen 1.3.8