use of cern.laser.source.alarmsysteminterface.impl.FaultStateImpl in project ACS by ACS-Community.
the class ObjectsTest method testFaultStateType.
public void testFaultStateType() throws Exception {
ACSFaultState fs = ACSAlarmSystemInterfaceFactory.createFaultState(faultFamily, faultMember, faultCode);
String descriptor = "A description for this FS";
assertNotNull("Error creting the FS", fs);
assertTrue("The FS has wrong class type", fs instanceof FaultStateImpl);
assertEquals("Wrong FF", faultFamily, fs.getFamily());
assertEquals("Wrong FM", faultMember, fs.getMember());
assertEquals("Wrong FC", faultCode, new Integer(fs.getCode()));
fs.setDescriptor(descriptor);
assertEquals("Wrong descriptor", descriptor, fs.getDescriptor());
}
Aggregations