Search in sources :

Example 6 with CategoryClient

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);
}
Also used : CategoryClient(alma.alarmsystem.clients.CategoryClient)

Example 7 with 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>();
}
Also used : Alarm(cern.laser.client.data.Alarm) CategoryClient(alma.alarmsystem.clients.CategoryClient)

Example 8 with CategoryClient

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);
}
Also used : CategoryClient(alma.alarmsystem.clients.CategoryClient)

Example 9 with CategoryClient

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();
}
Also used : CategoryClient(alma.alarmsystem.clients.CategoryClient) SourceClient(alma.alarmsystem.clients.SourceClient)

Aggregations

CategoryClient (alma.alarmsystem.clients.CategoryClient)9 SourceClient (alma.alarmsystem.clients.SourceClient)2 Alarm (cern.laser.client.data.Alarm)2 ACSJMSMessageEntity (com.cosylab.acs.jms.ACSJMSMessageEntity)1 Before (org.junit.Before)1