Public Types | |
enum | AlarmsFromCDB { TEST, TEST_MEMBER1, true, cause, quickly, alarm, disaster, TEST, TEST_MEMBER1, true, null, null, alarm, null, TEST, TEST_MEMBER2, true, cause, quickly, alarm, disaster, TEST, TEST_MEMBER2, true, null, null, alarm, null, TEST, TEST_MEMBER1, false, cause, quickly, alarm, disaster, TEST, TEST_MEMBER1, false, null, null, alarm, null, TEST, TEST_MEMBER2, false, cause, quickly, alarm, disaster, TEST, TEST_MEMBER2, false, null, null, alarm, FF = FFFMcodestatuspriconsequencedesccauseaction, FM, code, status, pri, cause, action, desc, FF = FFFMcodestatuspriconsequencedesccauseaction, FM, FC } |
Public Member Functions | |
CategoryClientTest () throws Exception | |
void | setUp () throws Exception |
void | tearDown () throws Exception |
void | onAlarm (Alarm alarm) |
void | onException (LaserSelectionException e) |
void | testAlarmReception () throws Exception |
Package Types | |
Private Member Functions | |
void | send_alarm (String family, String member, int code, boolean active) throws Exception |
int | waitForMessages (int numOfMessages) |
Private Attributes | |
CategoryClient | categoryClient |
Vector< Alarm > | alarmsReceived |
Static Private Attributes | |
final int | MAX_TIMEOUT = 120 |
|
|
Constructor
|
|
|
|
|
|
Push an alarm
|
|
|
|
|
|
Sends a couple of alarms and check if they arrive from the client
|
|
Wait for the messages from the alarm system.
|
|
The vector with the alarms received |
|
The categoryClient to test |
|
Max number of seconds to wait for the messages |