use of alma.alarmsystem.clients.CategoryClient in project ACS by ACS-Community.
the class AlarmsDelayCoreAlarmTest method setUp.
@Before
public void setUp() throws Exception {
contSvcs = getContainerServices();
assertThat("Invalid null container services", contSvcs, notNullValue());
logger = contSvcs.getLogger();
assertThat("Invalid null logger", logger, notNullValue());
// Connect the categories
categoryClient = new CategoryClient(contSvcs);
assertThat("Invalid null CategoryClient", categoryClient, notNullValue());
categoryClient.connect(this);
alarmSource = ACSAlarmSystemInterfaceFactory.createSource();
assertThat("The source is null!", alarmSource, notNullValue());
// Connect to the source NC
sourceNC = contSvcs.createNotificationChannelPublisher(sourceChannelName, ACS_NC_DOMAIN_ALARMSYSTEM.value, ACSJMSMessageEntity.class);
assertThat("The source NC is null!", sourceNC, notNullValue());
}
use of alma.alarmsystem.clients.CategoryClient in project ACS by ACS-Community.
the class CategoryClientThreshold method setUp.
/**
* @see extends ComponentClientTestCase
*/
public void setUp() throws Exception {
super.setUp();
categoryClient = new CategoryClient(getContainerServices());
assertNotNull(categoryClient);
}
use of alma.alarmsystem.clients.CategoryClient in project ACS by ACS-Community.
the class TestCategoryActiveChildren method setUp.
/**
* @see extends ComponentClientTestCase
*/
public void setUp() throws Exception {
super.setUp();
categoryClient = new CategoryClient(getContainerServices());
assertNotNull(categoryClient);
}
use of alma.alarmsystem.clients.CategoryClient in project ACS by ACS-Community.
the class UserPropsTest method setUp.
/**
* @see extends ComponentClientTestCase
*/
protected void setUp() throws Exception {
super.setUp();
categoryClient = new CategoryClient(getContainerServices());
assertNotNull(categoryClient);
categoryClient.connect(this);
// Instantiate and connect the source client
sourceClient = new SourceClient(getContainerServices());
assertNotNull(sourceClient);
sourceClient.addAlarmListener(this);
sourceClient.connect();
alarmsReceived = new Vector<Alarm>();
}
use of alma.alarmsystem.clients.CategoryClient in project ACS by ACS-Community.
the class CategoryClientChildren method setUp.
/**
* @see extends ComponentClientTestCase
*/
public void setUp() throws Exception {
super.setUp();
categoryClient = new CategoryClient(getContainerServices());
assertNotNull(categoryClient);
}
Aggregations