

Public Member Functions | |
| TestCategoryActiveChildren () throws Exception | |
| void | setUp () throws Exception |
| void | teraDown () throws Exception |
| void | onAlarm (Alarm alarm) |
| void | onException (LaserSelectionException e) |
| void | testActiveChildren () throws Exception |
Private Member Functions | |
| void | send_alarm (String family, String member, int code, boolean active) throws Exception |
| void | waitAlarm (int n) |
Private Attributes | |
| CategoryClient | categoryClient |
| volatile int | alarmsReceived |
Test getChildren method of the CategoryClient.
| alma::alarmsystem::clients::test::TestCategoryActiveChildren::TestCategoryActiveChildren | ( | ) | throws Exception [inline] |
Constructor
| Exception |
| void alma::alarmsystem::clients::test::TestCategoryActiveChildren::onAlarm | ( | Alarm | alarm | ) | [inline] |
| void alma::alarmsystem::clients::test::TestCategoryActiveChildren::onException | ( | LaserSelectionException | e | ) | [inline] |
| void alma::alarmsystem::clients::test::TestCategoryActiveChildren::send_alarm | ( | String | family, | |
| String | member, | |||
| int | code, | |||
| boolean | active | |||
| ) | throws Exception [inline, private] |
Push an alarm
| active | If true the alarm is active |
References alma::alarmsystem::source::ACSAlarmSystemInterface::push(), alma::alarmsystem::source::ACSFaultState::setDescriptor(), and alma::alarmsystem::source::ACSFaultState::setUserTimestamp().
Referenced by testActiveChildren().
| void alma::alarmsystem::clients::test::TestCategoryActiveChildren::setUp | ( | ) | throws Exception [inline] |
Reimplemented from alma::acs::component::client::ComponentClientTestCase.
References categoryClient, and alma::acs::component::client::ComponentClientTestCase::getContainerServices().
| void alma::alarmsystem::clients::test::TestCategoryActiveChildren::teraDown | ( | ) | throws Exception [inline] |
References categoryClient, and alma::alarmsystem::clients::CategoryClient::close().
| void alma::alarmsystem::clients::test::TestCategoryActiveChildren::testActiveChildren | ( | ) | throws Exception [inline] |
Test the getting of active children.
| Exception |
References alarmsReceived, categoryClient, alma::alarmsystem::clients::CategoryClient::connect(), alma::alarmsystem::clients::CategoryClient::getActiveChildren(), send_alarm(), and waitAlarm().
| void alma::alarmsystem::clients::test::TestCategoryActiveChildren::waitAlarm | ( | int | n | ) | [inline, private] |
Wait until n alarms are received
| n | The number of alarms to wait for |
References alarmsReceived.
Referenced by testActiveChildren().
volatile int alma::alarmsystem::clients::test::TestCategoryActiveChildren::alarmsReceived [private] |
The number of received alarms
Referenced by onAlarm(), testActiveChildren(), and waitAlarm().
CategoryClient alma::alarmsystem::clients::test::TestCategoryActiveChildren::categoryClient [private] |
The categoryClient to test
Referenced by setUp(), teraDown(), and testActiveChildren().
1.6.2