alma::acs::alarm::test::panel::AlarmContainerTest Class Reference

Inheritance diagram for alma::acs::alarm::test::panel::AlarmContainerTest:
Inheritance graph
[legend]
Collaboration diagram for alma::acs::alarm::test::panel::AlarmContainerTest:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 AlarmContainerTest () throws Exception
void testContainerSize () throws Exception
void testAlarmsRemove () throws Exception
void testRemoveOldest () throws Exception
void testReplaceAlarm () throws Exception
void testRemoveInactivAls () throws Exception

Protected Member Functions

void setUp () throws Exception
void tearDown () throws Exception

Private Member Functions

int populateContainer (int size, String fm, Collection< Alarm > generatedAlarms, Collection< AlarmTableEntry > entries) throws Exception

Private Attributes

final int CONTAINER_SIZE = 10000
AlarmsReductionContainer container

Detailed Description

AlarmContainerTest tests AlarmsContainer

After building an AlarmsContainer, the test stresses each of its methods in both situations i.e. with and without reductions.

Author:
acaproni

Constructor & Destructor Documentation

alma::acs::alarm::test::panel::AlarmContainerTest::AlarmContainerTest (  )  throws Exception [inline]

Constructor

Exceptions:
Exception 

Member Function Documentation

int alma::acs::alarm::test::panel::AlarmContainerTest::populateContainer ( int  size,
String  fm,
Collection< Alarm generatedAlarms,
Collection< AlarmTableEntry entries 
) throws Exception [inline, private]

Populate the container with the passed number of randomly generated alarms.

Parameters:
size The number of alarms to add to the container
fm The fault family of the added alarms
generatedAlarms A Collection containing the generated alarms; it can be null; if it is not null, the newly generated alarms are added to the collection.
entries The AlarmtableEntry generated while adding alarms to the container it can be null; if it is not null, the newly generated entries are added to the collection.
Returns:
The number of not reduced alarms in the collection

References alma::acsplugins::alarmsystem::gui::table::AlarmsReductionContainer::add(), container, cern::laser::client::data::Alarm::getStatus(), and cern::laser::client::data::Status::isReduced().

Referenced by testAlarmsRemove(), testContainerSize(), testRemoveInactivAls(), testRemoveOldest(), and testReplaceAlarm().

void alma::acs::alarm::test::panel::AlarmContainerTest::setUp (  )  throws Exception [inline, protected]
void alma::acs::alarm::test::panel::AlarmContainerTest::tearDown (  )  throws Exception [inline, protected]
void alma::acs::alarm::test::panel::AlarmContainerTest::testAlarmsRemove (  )  throws Exception [inline]
void alma::acs::alarm::test::panel::AlarmContainerTest::testContainerSize (  )  throws Exception [inline]
void alma::acs::alarm::test::panel::AlarmContainerTest::testRemoveInactivAls (  )  throws Exception [inline]
void alma::acs::alarm::test::panel::AlarmContainerTest::testRemoveOldest (  )  throws Exception [inline]
void alma::acs::alarm::test::panel::AlarmContainerTest::testReplaceAlarm (  )  throws Exception [inline]

Member Data Documentation

The max number of alarms in the container

Referenced by setUp(), testAlarmsRemove(), testContainerSize(), testRemoveInactivAls(), testRemoveOldest(), and testReplaceAlarm().


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

Generated by  doxygen 1.6.2