use of com.serotonin.m2m2.vo.publish.mock.MockPublishedPointVO in project ma-core-public by infiniteautomation.
the class PublisherAuditTest method createPoints.
protected List<MockPublishedPointVO> createPoints() {
List<MockPublishedPointVO> points = new ArrayList<MockPublishedPointVO>(pointCount);
// Create data source?
MockDataSourceVO ds = new MockDataSourceVO();
ds.setXid("DS_TEST1");
ds.setName("TEST");
DataSourceDao.instance.save(ds);
for (int i = 1; i < pointCount + 1; i++) {
DataPointVO dp = new DataPointVO();
dp.setXid("DP_" + i);
dp.setPointLocator(new MockPointLocatorVO(DataTypes.NUMERIC, true));
dp.setDataSourceId(ds.getId());
DataPointDao.instance.save(dp);
MockPublishedPointVO vo = new MockPublishedPointVO();
vo.setDataPointId(i);
points.add(vo);
}
return points;
}
Aggregations