Search in sources :

Example 1 with MockDataSourceDefinition

use of com.serotonin.m2m2.vo.dataSource.mock.MockDataSourceDefinition in project ma-core-public by infiniteautomation.

the class MangoTestBase method staticSetup.

@BeforeClass
public static void staticSetup() throws IOException {
    // Configure Log4j2
    ConfigurationSource source = new ConfigurationSource(MangoTestBase.class.getClass().getResource("/test-log4j2.xml").openStream());
    Configurator.initialize(null, source);
    List<ModuleElementDefinition> definitions = new ArrayList<>();
    definitions.add(new MockDataSourceDefinition());
    addModule("BaseTest", definitions);
}
Also used : ModuleElementDefinition(com.serotonin.m2m2.module.ModuleElementDefinition) ConfigurationSource(org.apache.logging.log4j.core.config.ConfigurationSource) ArrayList(java.util.ArrayList) MockDataSourceDefinition(com.serotonin.m2m2.vo.dataSource.mock.MockDataSourceDefinition) BeforeClass(org.junit.BeforeClass)

Aggregations

ModuleElementDefinition (com.serotonin.m2m2.module.ModuleElementDefinition)1 MockDataSourceDefinition (com.serotonin.m2m2.vo.dataSource.mock.MockDataSourceDefinition)1 ArrayList (java.util.ArrayList)1 ConfigurationSource (org.apache.logging.log4j.core.config.ConfigurationSource)1 BeforeClass (org.junit.BeforeClass)1