Search in sources :

Example 1 with AlarmSystemInterfaceProxy

use of cern.laser.source.alarmsysteminterface.impl.AlarmSystemInterfaceProxy in project ACS by ACS-Community.

the class ObjectsTest method testSourceType.

public void testSourceType() throws Exception {
    ACSAlarmSystemInterface source;
    String sourceName = this.getName();
    try {
        source = ACSAlarmSystemInterfaceFactory.createSource(sourceName);
    } catch (Exception e) {
        System.out.println("Error creating the source: " + e.getMessage());
        e.printStackTrace();
        throw e;
    }
    assertNotNull("Error creating the source", source);
    assertTrue("The source has wrong class type", source instanceof AlarmSystemInterfaceProxy);
}
Also used : ACSAlarmSystemInterface(alma.alarmsystem.source.ACSAlarmSystemInterface) AlarmSystemInterfaceProxy(cern.laser.source.alarmsysteminterface.impl.AlarmSystemInterfaceProxy)

Aggregations

ACSAlarmSystemInterface (alma.alarmsystem.source.ACSAlarmSystemInterface)1 AlarmSystemInterfaceProxy (cern.laser.source.alarmsysteminterface.impl.AlarmSystemInterfaceProxy)1