Search in sources :

Example 1 with MangoTestBase

use of com.serotonin.m2m2.MangoTestBase in project ma-core-public by infiniteautomation.

the class MangoTestBase method staticSetup.

@BeforeClass
public static void staticSetup() throws IOException {
    setSuperadminAuthentication();
    dataDirectory = Files.createTempDirectory("MangoTestBase");
    properties = new MockMangoProperties();
    properties.setProperty("paths.data", dataDirectory.toString());
    setupTestDB();
    Providers.add(MangoProperties.class, properties);
    Providers.add(ICoreLicense.class, new TestLicenseDefinition());
    Common.releaseProps = new Properties();
    addModule("BaseTest", new MockDataSourceDefinition(), new MockPublisherDefinition());
}
Also used : MockPublisherDefinition(com.serotonin.m2m2.vo.publish.mock.MockPublisherDefinition) MangoProperties(com.serotonin.util.properties.MangoProperties) Properties(java.util.Properties) MockDataSourceDefinition(com.serotonin.m2m2.vo.dataSource.mock.MockDataSourceDefinition) BeforeClass(org.junit.BeforeClass)

Aggregations

MockDataSourceDefinition (com.serotonin.m2m2.vo.dataSource.mock.MockDataSourceDefinition)1 MockPublisherDefinition (com.serotonin.m2m2.vo.publish.mock.MockPublisherDefinition)1 MangoProperties (com.serotonin.util.properties.MangoProperties)1 Properties (java.util.Properties)1 BeforeClass (org.junit.BeforeClass)1