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 |
AlarmContainerTest tests AlarmsContainer
After building an AlarmsContainer, the test stresses each of its methods in both situations i.e. with and without reductions.
|
|
Constructor
|
|
||||||||||||||||||||
|
Populate the container with the passed number of randomly generated alarms.
|
|
|
|
|
|
|
|
|
Test the removal of alarms
|
|
|
Check the size of the container
|
|
|
Test the removal of inactive alarms
|
|
|
Test
|
|
|
Test
|
|
|
The container to test |
|
|
The max number of alarms in the container |
1.3.8