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());
}
Aggregations