Search in sources :

Example 6 with FaultStateImpl

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());
}
Also used : ACSFaultState(alma.alarmsystem.source.ACSFaultState) FaultStateImpl(cern.laser.source.alarmsysteminterface.impl.FaultStateImpl)

Aggregations

FaultStateImpl (cern.laser.source.alarmsysteminterface.impl.FaultStateImpl)6 ASIMessage (cern.laser.source.alarmsysteminterface.impl.message.ASIMessage)4 ACSFaultState (alma.alarmsystem.source.ACSFaultState)3 FaultState (cern.laser.source.alarmsysteminterface.FaultState)3 ACSJMSTextMessage (com.cosylab.acs.jms.ACSJMSTextMessage)3 Timestamp (java.sql.Timestamp)3 LaserCoreFaultState (alma.alarmsystem.core.alarms.LaserCoreFaultState)2 Vector (java.util.Vector)2 DummyContainerServices (alma.acs.container.testsupport.DummyContainerServices)1 Configurator (cern.laser.source.alarmsysteminterface.impl.Configurator)1 ASIConfiguration (cern.laser.source.alarmsysteminterface.impl.configuration.ASIConfiguration)1 FaultState (cern.laser.source.alarmsysteminterface.impl.message.FaultState)1 FaultStates (cern.laser.source.alarmsysteminterface.impl.message.FaultStates)1 ArrayList (java.util.ArrayList)1 Date (java.util.Date)1