

Classes | |
| class | DummyActionImpl |
| class | MyStateChangeSemaphore |
Public Member Functions | |
| void | setUp () |
| void | stateChangedNotify (AcsState[] oldStateHierarchy, AcsState[] currentStateHierarchy) |
| void | testLegalLifecycle () throws Exception |
| void | testIllegalEvent () throws Exception |
| void | testActionException () throws Exception |
| void | testReentryToCompositeState () throws Exception |
Private Member Functions | |
| void | assertStateHierarchy (String expectedPath) |
Private Attributes | |
| AlmaSubsystemContext | m_context |
| DummyActionImpl | m_actionImpl |
| AcsLogger | m_logger |
| MyStateChangeSemaphore | m_sync |
Tests the state machine from alma.ACS.MasterComponentImpl.statemachine without the Master component on top of it. No running ACS needed.
| void alma::ACS::MasterComponentImpl::statemachine::StateMachineTest::assertStateHierarchy | ( | String | expectedPath | ) | [inline, private] |
References alma::ACS::MasterComponentImpl::statemachine::AlmaSubsystemContext::getCurrentTopLevelState(), alma::ACS::MasterComponentImpl::statemachine::AlmaSubsystemStateAbstract::getStateHierarchy(), and m_context.
Referenced by testActionException(), testIllegalEvent(), testLegalLifecycle(), and testReentryToCompositeState().
| void alma::ACS::MasterComponentImpl::statemachine::StateMachineTest::setUp | ( | ) | [inline] |
| void alma::ACS::MasterComponentImpl::statemachine::StateMachineTest::stateChangedNotify | ( | AcsState[] | oldStateHierarchy, | |
| AcsState[] | currentStateHierarchy | |||
| ) | [inline] |
Implements alma::acs::genfw::runtime::sm::AcsStateChangeListener.
References m_logger.
| void alma::ACS::MasterComponentImpl::statemachine::StateMachineTest::testActionException | ( | ) | throws Exception [inline] |
References assertStateHierarchy(), alma::ACSErrTypeCommon::wrappers::AcsJIllegalStateEventEx::getEvent(), alma::ACSErrTypeCommon::wrappers::AcsJIllegalStateEventEx::getState(), alma::ACS::MasterComponentImpl::statemachine::AlmaSubsystemContext::initPass1(), alma::ACS::MasterComponentImpl::statemachine::AlmaSubsystemContext::initPass2(), m_actionImpl, m_context, m_logger, m_sync, alma::ACS::MasterComponentImpl::StateChangeSemaphore::reset(), alma::ACS::MasterComponentImpl::statemachine::AlmaSubsystemContext::shutdownPass1(), alma::ACS::MasterComponentImpl::statemachine::AlmaSubsystemContext::shutdownPass2(), alma::ACS::MasterComponentImpl::statemachine::StateMachineTest::DummyActionImpl::throwExInInitPass1(), and alma::ACS::MasterComponentImpl::StateChangeSemaphore::waitForStateChanges().
| void alma::ACS::MasterComponentImpl::statemachine::StateMachineTest::testIllegalEvent | ( | ) | throws Exception [inline] |
References assertStateHierarchy(), alma::ACSErrTypeCommon::wrappers::AcsJIllegalStateEventEx::getEvent(), alma::ACSErrTypeCommon::wrappers::AcsJIllegalStateEventEx::getState(), alma::ACS::MasterComponentImpl::statemachine::AlmaSubsystemContext::initPass1(), m_context, m_logger, m_sync, alma::ACS::MasterComponentImpl::StateChangeSemaphore::reset(), alma::ACS::MasterComponentImpl::statemachine::AlmaSubsystemContext::start(), and alma::ACS::MasterComponentImpl::StateChangeSemaphore::waitForStateChanges().
| void alma::ACS::MasterComponentImpl::statemachine::StateMachineTest::testLegalLifecycle | ( | ) | throws Exception [inline] |
References assertStateHierarchy(), alma::ACS::MasterComponentImpl::statemachine::AlmaSubsystemContext::initPass1(), alma::ACS::MasterComponentImpl::statemachine::AlmaSubsystemContext::initPass2(), m_context, m_logger, m_sync, alma::ACS::MasterComponentImpl::StateChangeSemaphore::reset(), alma::ACS::MasterComponentImpl::statemachine::AlmaSubsystemContext::shutdownPass1(), alma::ACS::MasterComponentImpl::statemachine::AlmaSubsystemContext::shutdownPass2(), alma::ACS::MasterComponentImpl::statemachine::AlmaSubsystemContext::start(), alma::ACS::MasterComponentImpl::statemachine::AlmaSubsystemContext::stop(), and alma::ACS::MasterComponentImpl::StateChangeSemaphore::waitForStateChanges().
| void alma::ACS::MasterComponentImpl::statemachine::StateMachineTest::testReentryToCompositeState | ( | ) | throws Exception [inline] |
References assertStateHierarchy(), alma::ACS::MasterComponentImpl::statemachine::StateMachineTest::DummyActionImpl::getCallsToReinit(), alma::ACS::MasterComponentImpl::statemachine::AlmaSubsystemContext::initPass1(), alma::ACS::MasterComponentImpl::statemachine::AlmaSubsystemContext::initPass2(), m_actionImpl, m_context, m_logger, m_sync, alma::ACS::MasterComponentImpl::statemachine::AlmaSubsystemContext::reinit(), alma::ACS::MasterComponentImpl::StateChangeSemaphore::reset(), and alma::ACS::MasterComponentImpl::StateChangeSemaphore::waitForStateChanges().
DummyActionImpl alma::ACS::MasterComponentImpl::statemachine::StateMachineTest::m_actionImpl [private] |
Referenced by setUp(), testActionException(), and testReentryToCompositeState().
Referenced by setUp(), stateChangedNotify(), testActionException(), testIllegalEvent(), testLegalLifecycle(), and testReentryToCompositeState().
MyStateChangeSemaphore alma::ACS::MasterComponentImpl::statemachine::StateMachineTest::m_sync [private] |
Referenced by setUp(), testActionException(), testIllegalEvent(), testLegalLifecycle(), and testReentryToCompositeState().
1.6.2