alma::acs::lasercore::test::TestAlarmDAO Class Reference

Inheritance diagram for alma::acs::lasercore::test::TestAlarmDAO:
Inheritance graph
[legend]
Collaboration diagram for alma::acs::lasercore::test::TestAlarmDAO:
Collaboration graph
[legend]

List of all members.

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 ()

Private Types

enum  AlarmTriplets {
  TEST_TM1_1 = ("TEST:TEST_MEMBER1:1",2,"Test alarm 1","The cause","Run and fix quickly","A disaster"), TEST_TM1_2 = ("TEST:TEST_MEMBER1:2",3,"Test alarm 2",null,null,null), TEST_TM2_1 = ("TEST:TEST_MEMBER2:1",2,"Test alarm 1","The cause","Run and fix quickly","A disaster"), TEST_TM2_2 = ("TEST:TEST_MEMBER2:2",3,"Test alarm 2",null,null,null),
  TEST_DEF_1 = ("TEST:*:1",2,"Test alarm 1","The cause","Run and fix quickly","A disaster"), TEST_DEF_2 = ("TEST:*:2",3,"Test alarm 2",null,null,null), PS_PSM_1 = ("PS:PS_MEMBER:1",2,"PS test alarm","A terrible mistake",null,null), IDL = ("IDLFamily:IDLMember:1",0,"This alarm has been sent through an IDL method","Sent an IDL alarm",null,null)
}

Private Attributes

ACSAlarmDAOImpl alarmDAO

Detailed Description

Test the alarm definitions read from the CDB

Author:
acaproni

Member Enumeration Documentation

The triplets of the alarms defined in the CDB. It should be enough to change this enum if the alarm definitions in the CDB are modified.

Author:
acaproni
Enumerator:
TEST_TM1_1 
TEST_TM1_2 
TEST_TM2_1 
TEST_TM2_2 
TEST_DEF_1 
TEST_DEF_2 
PS_PSM_1 
IDL 

Constructor & Destructor Documentation

alma::acs::lasercore::test::TestAlarmDAO::TestAlarmDAO (  )  throws Exception [inline]

Constructor

Exceptions:
Exception 

Member Function Documentation

void alma::acs::lasercore::test::TestAlarmDAO::setUp (  )  throws Exception [inline]
void alma::acs::lasercore::test::TestAlarmDAO::tearDown (  )  throws Exception [inline]
See also:
TestCase

Reimplemented from alma::acs::component::client::ComponentClientTestCase.

void alma::acs::lasercore::test::TestAlarmDAO::testAlarmIDs (  )  throws Exception [inline]

Check the getting of all the alarm IDs

The ID of an alarm is given by its triplet

Exceptions:
Exception 

References alarmDAO, and com::cosylab::acs::laser::dao::ACSAlarmDAOImpl::getAllAlarmIDs().

void alma::acs::lasercore::test::TestAlarmDAO::testDeleteAlarm (  )  [inline]
void alma::acs::lasercore::test::TestAlarmDAO::testFindAlarm (  )  throws Exception [inline]

Find alarm is like getAlarm but throws an exception if the alarm is not found

Exceptions:
Exception 

References alarmDAO, com::cosylab::acs::laser::dao::ACSAlarmDAOImpl::findAlarm(), and cern::laser::business::data::Alarm::getAlarmId().

void alma::acs::lasercore::test::TestAlarmDAO::testGetAlarmID (  )  throws Exception [inline]
void alma::acs::lasercore::test::TestAlarmDAO::testGetSources (  )  throws Exception [inline]
void alma::acs::lasercore::test::TestAlarmDAO::testResponsiblePerson (  )  throws Exception [inline]

Test the setting of the responsible person by getting PS and one of the TEST member

Exceptions:
Exception 

References alarmDAO, com::cosylab::acs::laser::dao::ACSAlarmDAOImpl::getAlarm(), and cern::laser::business::data::Alarm::getResponsiblePerson().


Member Data Documentation


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2