use of alma.acs.lasercore.test.stress.CategoryClient in project ACS by ACS-Community.
the class StressTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
contSvcs = getContainerServices();
assertNotNull(contSvcs);
alarmSource = ACSAlarmSystemInterfaceFactory.createSource();
assertNotNull("Error instantiating the source", alarmSource);
// Connect the categories
categoryClient = new CategoryClient(contSvcs);
assertNotNull(categoryClient);
categoryClient.addAlarmListener(this);
categoryClient.connect();
// generate the alarms
statesToPublish = new MiniFaultState[NUM_ALARMS_TO_SEND];
for (int t = 0; t < statesToPublish.length; t++) {
MiniFaultState mfs = new MiniFaultState();
assertNotNull(mfs);
statesToPublish[t] = mfs;
}
}
use of alma.acs.lasercore.test.stress.CategoryClient in project ACS by ACS-Community.
the class IDLSendAlarmTest method setUp.
/**
* @see alma.acs.component.client.ComponentClientTestCase#setUp()
*/
@Override
protected void setUp() throws Exception {
super.setUp();
contSvcs = getContainerServices();
assertNotNull(contSvcs);
logger = contSvcs.getLogger();
assertNotNull(logger);
// Get the alarm service
CernAlarmServiceUtils utils = new CernAlarmServiceUtils(contSvcs);
assertNotNull(utils);
alarmService = CERNAlarmServiceHelper.narrow(utils.getAlarmService());
assertNotNull(alarmService);
assertFalse(alarmService.isACSAlarmService());
alarms.clear();
// Connect the categories
categoryClient = new CategoryClient(contSvcs);
assertNotNull(categoryClient);
categoryClient.addAlarmListener(this);
categoryClient.connect();
}
use of alma.acs.lasercore.test.stress.CategoryClient in project ACS by ACS-Community.
the class RRWithRegExp method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
categoryClient = new CategoryClient(this.getContainerServices());
assertNotNull(categoryClient);
categoryClient.connect();
categoryClient.addAlarmListener(this);
alarmSource = ACSAlarmSystemInterfaceFactory.createSource();
assertNotNull(alarmSource);
System.out.println("setUp done");
}
use of alma.acs.lasercore.test.stress.CategoryClient in project ACS by ACS-Community.
the class RRWithDefaultFM method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
categoryClient = new CategoryClient(this.getContainerServices());
assertNotNull(categoryClient);
categoryClient.connect();
categoryClient.addAlarmListener(this);
alarmSource = ACSAlarmSystemInterfaceFactory.createSource();
assertNotNull(alarmSource);
System.out.println("setUp done");
}
Aggregations