use of alma.alarmsystem.clients.CategoryClient in project ACS by ACS-Community.
the class CategoryClientParent 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 CategoryClientTest method setUp.
/**
* @see extends ComponentClientTestCase
*/
public void setUp() throws Exception {
super.setUp();
categoryClient = new CategoryClient(getContainerServices());
assertNotNull(categoryClient);
alarmsReceived = new Vector<Alarm>();
}
use of alma.alarmsystem.clients.CategoryClient in project ACS by ACS-Community.
the class CoreCDBAlarmTest 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);
// Connect the categories
categoryClient = new CategoryClient(contSvcs);
assertNotNull(categoryClient);
categoryClient.connect(this);
}
use of alma.alarmsystem.clients.CategoryClient in project ACS by ACS-Community.
the class BACITest method setUp.
/**
* @see alma.acs.component.client.ComponentClientTestCase#setUp()
*/
@Override
protected void setUp() throws Exception {
super.setUp();
// Check the container services... just in case ;-)
assertNotNull(getContainerServices());
// Instantiate and connect the source client
sourceClient = new SourceClient(getContainerServices());
assertNotNull(sourceClient);
sourceClient.addAlarmListener(this);
sourceClient.connect();
// Instantiate and connect the category client
categoryClient = new CategoryClient(getContainerServices());
assertNotNull(categoryClient);
categoryClient.connect(this);
// Get the component
getTestComponent();
}
Aggregations