use of alma.alarmsystem.alarmmessage.generated.AlarmDefinition in project ACS by ACS-Community.
the class ACSAlarmDAOImplTest method testGetReductionDefinitions.
public void testGetReductionDefinitions() {
Parent p = new Parent();
Child c = new Child();
AlarmDefinition ad_p = new AlarmDefinition();
AlarmDefinition ad_c = new AlarmDefinition();
ad_p.setFaultFamily("A1");
ad_p.setFaultMember("B1");
ad_p.setFaultCode(1);
ad_c.setFaultFamily("A2");
ad_c.setFaultMember("B2");
ad_c.setFaultCode(2);
p.setAlarmDefinition(ad_p);
c.setAlarmDefinition(ad_c);
ReductionLinkType rl = new ReductionLinkType();
rl.setParent(p);
rl.setChild(c);
rl.setType("NODE");
ReductionDefinitions rds = _alarmDAO.getReductionRules();
_alarmDAO.addReductionRule(rds, rl);
//_alarmDAO.flushReductionRules(rds);
}
Aggregations