use of com.serotonin.m2m2.vo.publish.mock.MockPublisherVO in project ma-core-public by infiniteautomation.
the class PublisherAuditTest method testPublisherAuditTrail.
@Test
public void testPublisherAuditTrail() {
MockPublisherVO vo = new MockPublisherVO();
vo.setDefinition(new MockPublisherDefinition());
vo.setXid("PUB_TEST1");
vo.setPoints(createPoints());
vo.setEnabled(false);
PublisherDao.instance.savePublisher(vo);
// Modify and re-save
vo.setEnabled(true);
PublisherDao.instance.savePublisher(vo);
// TODO Verify Audit Events
}
Aggregations