Public Member Functions | |
UserPropsTest () throws Exception | |
void | onAlarm (Alarm alarm) |
void | onException (LaserSelectionException e) |
void | testProperties () throws Exception |
Override void | faultStateReceived (FaultState faultState) |
Protected Member Functions | |
void | setUp () throws Exception |
void | tearDown () throws Exception |
Private Member Functions | |
int | waitForMessages (int numOfMessages) |
void | send_alarm (String family, String member, int code, boolean active, Properties props) throws Exception |
Private Attributes | |
CategoryClient | categoryClient |
SourceClient | sourceClient |
Vector< Alarm > | alarmsReceived |
Static Private Attributes | |
final int | MAX_TIMEOUT = 120 |
The test is done by a couple of alarms with user properties and listening from both the sources and categories notification channels.
The checking is almost entirely delegated to tat by printing messages on the stdout.
|
Constructor |
|
|
|
|
|
|
|
Push an alarm
|
|
|
|
|
|
Test if the properties set while sending an alarm arrive to the
The test is done by sending 2 active alarms with 2 properties and one properties respectively. The triplets of the two alarms differ only for the FC that will be used to check the correctness of the received properties.
|
|
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 |
|
The source client |