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);
}
Aggregations