Public Member Functions | |
SendTest () throws Exception | |
void | setUp () throws Exception |
void | tearDown () throws Exception |
void | testSend () throws Exception |
void | testStress () throws Exception |
void | receive (com.cosylab.acs.jms.ACSJMSMessageEntity msg) |
Private Member Functions | |
boolean | isValidFSMessage (FaultStateImpl fs, int num) |
Private Attributes | |
volatile Consumer | m_consumer |
final int | ITERATIONS = 10 |
int | nMsgReceived |
volatile Object | receiverError |
String | faultFamily = "AlarmSource" |
String | faultMember = "ALARM_SOURCE_ANTENNA" |
Static Private Attributes | |
final String | m_channelName = "CMW.ALARM_SYSTEM.ALARMS.SOURCES.ALARM_SYSTEM_SOURCES" |
Each message is checked for integrity
|
|
|
Check if the message is coherent with the number
|
|
The method receives all the messages published in the NC For each message received it checks if its content is right i.e. the name of the class, the member and the code contains the number of the message in the sequence. In this way it also checks if the messages are received in the same order they were sent. The method also checks if all the messages have been received and prints a message if receives more messages then the messages pushed
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Alarm NC events are received in different threads than the tests run in. In order to let the test fail when there are receiver exceptions or validation errors, we can communicate them in this variable. |