Search in sources :

Example 1 with PlatformAbstractionLayer

use of net.playeranalytics.plugin.PlatformAbstractionLayer in project Plan by plan-player-analytics.

the class ShutdownDataPreservationTest method setupPreservation.

@BeforeEach
void setupPreservation(@TempDir Path temporaryFolder) throws Exception {
    PluginMockComponent pluginMockComponent = new PluginMockComponent(temporaryFolder);
    PlanSystem system = pluginMockComponent.getPlanSystem();
    PlatformAbstractionLayer abstractionLayer = pluginMockComponent.getAbstractionLayer();
    underTest = new ShutdownDataPreservation(system.getPlanFiles(), system.getLocaleSystem().getLocale(), system.getDatabaseSystem(), abstractionLayer.getPluginLogger(), system.getErrorLogger());
}
Also used : PlanSystem(com.djrapitops.plan.PlanSystem) PluginMockComponent(utilities.mocks.PluginMockComponent) PlatformAbstractionLayer(net.playeranalytics.plugin.PlatformAbstractionLayer) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

PlanSystem (com.djrapitops.plan.PlanSystem)1 PlatformAbstractionLayer (net.playeranalytics.plugin.PlatformAbstractionLayer)1 BeforeEach (org.junit.jupiter.api.BeforeEach)1 PluginMockComponent (utilities.mocks.PluginMockComponent)1