Search in sources :

Example 1 with CategoryClient

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());
}
Also used : ACSJMSMessageEntity(com.cosylab.acs.jms.ACSJMSMessageEntity) CategoryClient(alma.alarmsystem.clients.CategoryClient) Before(org.junit.Before)

Example 2 with CategoryClient

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

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

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

Example 5 with CategoryClient

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

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