Search in sources :

Example 1 with RuntimeManagerImpl

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());
}
Also used : PointValueDao(com.serotonin.m2m2.db.dao.PointValueDao) DataPointDao(com.serotonin.m2m2.db.dao.DataPointDao) DataSourceDao(com.serotonin.m2m2.db.dao.DataSourceDao) ExecutorService(java.util.concurrent.ExecutorService) PointValueCache(com.infiniteautomation.mango.pointvaluecache.PointValueCache) PublisherDao(com.serotonin.m2m2.db.dao.PublisherDao) RuntimeManagerImpl(com.serotonin.m2m2.rt.RuntimeManagerImpl) Before(org.junit.Before)

Aggregations

PointValueCache (com.infiniteautomation.mango.pointvaluecache.PointValueCache)1 DataPointDao (com.serotonin.m2m2.db.dao.DataPointDao)1 DataSourceDao (com.serotonin.m2m2.db.dao.DataSourceDao)1 PointValueDao (com.serotonin.m2m2.db.dao.PointValueDao)1 PublisherDao (com.serotonin.m2m2.db.dao.PublisherDao)1 RuntimeManagerImpl (com.serotonin.m2m2.rt.RuntimeManagerImpl)1 ExecutorService (java.util.concurrent.ExecutorService)1 Before (org.junit.Before)1