

Public Member Functions | |
| BACITest (String title) throws Exception | |
| void | faultStateReceived (FaultState faultState) |
| void | onAlarm (Alarm alarm) |
| void | onException (LaserSelectionException e) |
| void | sourceXMLMsgReceived (String asiMessage) |
Protected Member Functions | |
| void | setUp () throws Exception |
| void | tearDown () throws Exception |
Protected Attributes | |
| BaciPropTest | testComponent |
Private Member Functions | |
| void | getTestComponent () throws Exception |
Private Attributes | |
| CategoryClient | categoryClient |
| SourceClient | sourceClient |
Static Private Attributes | |
| static final String | COMPONENT_NAME = "TEST_COMPONENT" |
Base class for testing property alarms sent by BACI
| alma::acs::alarmsystem::test::BACITest::BACITest | ( | String | title | ) | throws Exception [inline] |
Constructor
| void alma::acs::alarmsystem::test::BACITest::faultStateReceived | ( | FaultState | faultState | ) | [inline] |
Print the alarms received by the sources
Implements alma::alarmsystem::clients::source::SourceListener.
References cern::laser::source::alarmsysteminterface::FaultState::getCode(), cern::laser::source::alarmsysteminterface::FaultState::getDescriptor(), cern::laser::source::alarmsysteminterface::FaultState::getFamily(), cern::laser::source::alarmsysteminterface::FaultState::getMember(), and alma::acs::component::client::ComponentClientTestCase::m_logger.
| void alma::acs::alarmsystem::test::BACITest::getTestComponent | ( | ) | throws Exception [inline, private] |
Get the test component
References COMPONENT_NAME, alma::acs::component::client::ComponentClientTestCase::getContainerServices(), and testComponent.
Referenced by setUp().
| void alma::acs::alarmsystem::test::BACITest::onAlarm | ( | Alarm | alarm | ) | [inline] |
Print a message for each alarm received by the ASC
Implements cern::laser::client::services::selection::AlarmSelectionListener.
References cern::laser::client::data::Alarm::getAlarmId(), cern::laser::client::data::Alarm::getStatus(), and alma::acs::component::client::ComponentClientTestCase::m_logger.
| void alma::acs::alarmsystem::test::BACITest::onException | ( | LaserSelectionException | e | ) | [inline] |
Print a message for each error
Implements cern::laser::client::services::selection::AlarmSelectionListener.
References alma::acs::component::client::ComponentClientTestCase::m_logger.
| void alma::acs::alarmsystem::test::BACITest::setUp | ( | ) | throws Exception [inline, protected] |
Reimplemented from alma::acs::component::client::ComponentClientTestCase.
References alma::alarmsystem::clients::SourceClient::addAlarmListener(), categoryClient, alma::alarmsystem::clients::CategoryClient::connect(), alma::alarmsystem::clients::SourceClient::connect(), alma::acs::component::client::ComponentClientTestCase::getContainerServices(), getTestComponent(), and sourceClient.
| void alma::acs::alarmsystem::test::BACITest::sourceXMLMsgReceived | ( | String | asiMessage | ) | [inline] |
Implements alma::alarmsystem::clients::source::SourceListener.
| void alma::acs::alarmsystem::test::BACITest::tearDown | ( | ) | throws Exception [inline, protected] |
Reimplemented from alma::acs::component::client::ComponentClientTestCase.
References categoryClient, alma::alarmsystem::clients::CategoryClient::close(), alma::alarmsystem::clients::SourceClient::close(), COMPONENT_NAME, alma::acs::component::client::ComponentClientTestCase::getContainerServices(), sourceClient, and testComponent.
Referenced by setUp(), and tearDown().
final String alma::acs::alarmsystem::test::BACITest::COMPONENT_NAME = "TEST_COMPONENT" [static, private] |
Referenced by getTestComponent(), and tearDown().
Referenced by setUp(), and tearDown().
BaciPropTest alma::acs::alarmsystem::test::BACITest::testComponent [protected] |
The component that triggers BACI to send alarms
Referenced by getTestComponent(), tearDown(), alma::acs::alarmsystem::test::BACIDoublePropertyTest::testRODouble(), alma::acs::alarmsystem::test::BACIDoublePropCompleteTest::testRODouble(), alma::acs::alarmsystem::test::BACIEnumPropertyTest::testROEnum(), and alma::acs::alarmsystem::test::BACIPatternPropertyTest::testROPattern().
1.6.2