use of com.serotonin.m2m2.vo.publish.mock.MockPublisherDefinition 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
}
use of com.serotonin.m2m2.vo.publish.mock.MockPublisherDefinition in project ma-core-public by infiniteautomation.
the class PublisherAuditTest method addDefinitions.
@BeforeClass
public static void addDefinitions() {
List<ModuleElementDefinition> definitions = new ArrayList<>();
definitions.add(new MockPublisherDefinition());
addModule("mockPublisher", definitions);
}
Aggregations