Public Types | |
Public Member Functions | |
TestAlarmDAO () throws Exception | |
void | setUp () throws Exception |
void | tearDown () throws Exception |
void | testAlarmIDs () throws Exception |
void | testGetAlarmID () throws Exception |
void | testResponsiblePerson () throws Exception |
void | testGetSources () throws Exception |
void | testFindAlarm () throws Exception |
void | testDeleteAlarm () |
Package Types | |
Private Types | |
enum | AlarmTriplets { TEST_MEMBER1, alarm, cause, quickly, disaster, TEST_MEMBER1, alarm, null, null, null, TEST_MEMBER2, alarm, cause, quickly, disaster, TEST_MEMBER2, alarm, null, null, null, TEST, alarm, cause, quickly, disaster, TEST, alarm, null, null, null, PS_MEMBER, alarm, mistake, null, ID, priority, desc, cause, action, ret = IDprioritydesccauseactionconsequence ID.split(":") new Triplet(parts[0],parts[1],Integer.parseInt(parts[2])) } |
Private Attributes | |
ACSAlarmDAOImpl | alarmDAO |
|
|
Constructor
|
|
|
|
|
|
Check the getting of all the alarm IDs The ID of an alarm is given by its triplet
|
|
Test the deletion of alarms |
|
Find alarm is like getAlarm but throws an exception if the alarm is not found
|
|
Test the getting of alarms by their ID. it check the alarm, its ID, its triplet, its priority, its description, action, cause, consequence |
|
Test the sources read from CDB (only one at the moment)
|
|
Test the setting of the responsible person by getting PS and one of the TEST member
|
|
|