use of com.serotonin.m2m2.rt.RuntimeManagerImpl in project ma-core-public by infiniteautomation.
the class PublisherRTQueueMonitorTest method before.
@Before
@Override
public void before() {
super.before();
// Due to the test framework order of runtime manager injection had to add this
ExecutorService executorService = Common.getBean(ExecutorService.class);
DataSourceDao dataSourceDao = Common.getBean(DataSourceDao.class);
PublisherDao publisherDao = Common.getBean(PublisherDao.class);
DataPointDao dataPointDao = Common.getBean(DataPointDao.class);
PointValueDao pointValueDao = Common.getBean(PointValueDao.class);
PointValueCache pointValueCache = Common.getBean(PointValueCache.class);
Common.runtimeManager = new RuntimeManagerImpl(executorService, dataSourceDao, publisherDao, dataPointDao, pointValueDao, pointValueCache);
Common.runtimeManager.initialize(false);
this.timer.setStartTime(System.currentTimeMillis());
}
Aggregations