Search in sources :

Example 1 with MockPublisherVO

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
}
Also used : MockPublisherDefinition(com.serotonin.m2m2.vo.publish.mock.MockPublisherDefinition) MockPublisherVO(com.serotonin.m2m2.vo.publish.mock.MockPublisherVO) Test(org.junit.Test)

Aggregations

MockPublisherDefinition (com.serotonin.m2m2.vo.publish.mock.MockPublisherDefinition)1 MockPublisherVO (com.serotonin.m2m2.vo.publish.mock.MockPublisherVO)1 Test (org.junit.Test)1