Search in sources :

Example 1 with MockMangoLifecycle

use of com.serotonin.m2m2.MockMangoLifecycle in project ma-core-public by MangoAutomation.

the class DataSourceServiceTest method getLifecycle.

@Override
protected MockMangoLifecycle getLifecycle() {
    MockMangoLifecycle lifecycle = super.getLifecycle();
    lifecycle.setRuntimeManager(new MockRuntimeManager(true));
    return lifecycle;
}
Also used : MockRuntimeManager(com.serotonin.m2m2.MockRuntimeManager) MockMangoLifecycle(com.serotonin.m2m2.MockMangoLifecycle)

Example 2 with MockMangoLifecycle

use of com.serotonin.m2m2.MockMangoLifecycle in project ma-core-public by MangoAutomation.

the class PermissionServiceTest method getLifecycle.

@Override
protected MockMangoLifecycle getLifecycle() {
    MockMangoLifecycle lifecycle = super.getLifecycle();
    lifecycle.setRuntimeManager(new MockRuntimeManager(true));
    return lifecycle;
}
Also used : MockRuntimeManager(com.serotonin.m2m2.MockRuntimeManager) MockMangoLifecycle(com.serotonin.m2m2.MockMangoLifecycle)

Example 3 with MockMangoLifecycle

use of com.serotonin.m2m2.MockMangoLifecycle in project ma-core-public by MangoAutomation.

the class DataPointRTPointValueCacheTest method getLifecycle.

@Override
protected MockMangoLifecycle getLifecycle() {
    MockMangoLifecycle lifecycle = super.getLifecycle();
    lifecycle.addRuntimeContextConfiguration(PointValueCacheTestConfig.class);
    return lifecycle;
}
Also used : MockMangoLifecycle(com.serotonin.m2m2.MockMangoLifecycle)

Example 4 with MockMangoLifecycle

use of com.serotonin.m2m2.MockMangoLifecycle in project ma-core-public by MangoAutomation.

the class H2DatabaseUpgradeTest method getLifecycle.

@Override
protected MockMangoLifecycle getLifecycle() {
    MockMangoLifecycle lifecycle = super.getLifecycle();
    lifecycle.addRuntimeContextConfiguration(UpgradeConfig.class);
    return lifecycle;
}
Also used : MockMangoLifecycle(com.serotonin.m2m2.MockMangoLifecycle)

Example 5 with MockMangoLifecycle

use of com.serotonin.m2m2.MockMangoLifecycle in project ma-core-public by MangoAutomation.

the class MySQLDatabaseUpgradeTest method getLifecycle.

@Override
protected MockMangoLifecycle getLifecycle() {
    MockMangoLifecycle lifecycle = super.getLifecycle();
    lifecycle.addRuntimeContextConfiguration(UpgradeConfig.class);
    return lifecycle;
}
Also used : MockMangoLifecycle(com.serotonin.m2m2.MockMangoLifecycle)

Aggregations

MockMangoLifecycle (com.serotonin.m2m2.MockMangoLifecycle)24 MockRuntimeManager (com.serotonin.m2m2.MockRuntimeManager)8 MockEventManager (com.serotonin.m2m2.MockEventManager)4 SimulationTimerProvider (com.serotonin.m2m2.SimulationTimerProvider)1 SimulationTimer (com.serotonin.timer.SimulationTimer)1