use of com.infiniteautomation.mango.spring.service.DataSourceService in project ma-core-public by MangoAutomation.
the class DataPointEventsTest method stopAllDataSources.
@After
public void stopAllDataSources() {
// Since we don't shutdown the runtime between tests we need to do this
DataSourceService service = Common.getBean(DataSourceService.class);
service.list(ds -> service.delete(ds.getId()));
}
use of com.infiniteautomation.mango.spring.service.DataSourceService in project ma-core-public by MangoAutomation.
the class RateOfChangeDetectorTest method configure.
@Before
public void configure() {
this.listener = new EventDetectorEventListener();
Common.eventManager.addUserEventListener(this.listener);
dataSourceService = Common.getBean(DataSourceService.class);
dsVo = new MockDataSourceVO("test", "DS_1");
dsVo.setEnabled(true);
dsVo.setUpdatePeriods(1);
dsVo.setUpdatePeriodType(TimePeriods.SECONDS);
validate(dsVo);
dataSourceService.insert(dsVo);
}
Aggregations