Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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

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

Override void setUp () throws Exception
Override 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

Override void alma::acs::alarm::test::panel::AlarmContainerTest::setUp  )  throws Exception [inline, protected]
 

See also:
alma.acs.component.client.ComponentClientTestCase::setUp()

Override void alma::acs::alarm::test::panel::AlarmContainerTest::tearDown  )  throws Exception [inline, protected]
 

See also:
alma.acs.component.client.ComponentClientTestCase::tearDown()

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

Test the removal of alarms

Exceptions:
Exception 

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

Check the size of the container

Exceptions:
Exception 

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

Test the removal of inactive alarms

Exceptions:
Exception 

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

Test removeOldest()

Exceptions:
Exception 

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

Test replaceAlarm()

Exceptions:
Exception 


Member Data Documentation

AlarmsReductionContainer alma::acs::alarm::test::panel::AlarmContainerTest::container [private]
 

The container to test

final int alma::acs::alarm::test::panel::AlarmContainerTest::CONTAINER_SIZE = 10000 [private]
 

The max number of alarms in the container


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:51:21 2009 for ACS Java API by doxygen 1.3.8