Search in sources :

Example 1 with PlanPlugin

use of com.djrapitops.plan.PlanPlugin in project Plan by plan-player-analytics.

the class SpongeMockComponent method getPlanSystem.

public PlanSystem getPlanSystem() throws Exception {
    if (component == null) {
        PlanPlugin planMock = getPlanMock();
        component = DaggerPlanSpongeComponent.builder().plan(planMock).abstractionLayer(new TestPlatformAbstractionLayer(planMock)).game(mockGame()).build();
    }
    return component.system();
}
Also used : PlanPlugin(com.djrapitops.plan.PlanPlugin)

Example 2 with PlanPlugin

use of com.djrapitops.plan.PlanPlugin in project Plan by plan-player-analytics.

the class BukkitMockComponent method getPlanSystem.

public PlanSystem getPlanSystem() throws Exception {
    if (component == null) {
        PlanPlugin planMock = getPlanMock();
        component = DaggerPlanBukkitComponent.builder().plan(planMock).abstractionLayer(new TestPlatformAbstractionLayer(planMock)).server(mockServer()).build();
    }
    return component.system();
}
Also used : PlanPlugin(com.djrapitops.plan.PlanPlugin)

Example 3 with PlanPlugin

use of com.djrapitops.plan.PlanPlugin in project Plan by plan-player-analytics.

the class FabricMockComponent method getPlanSystem.

public PlanSystem getPlanSystem() {
    if (component == null) {
        PlanPlugin planMock = getPlanMock();
        component = DaggerPlanFabricComponent.builder().plan(planMock).abstractionLayer(new TestPlatformAbstractionLayer(planMock)).server(mockServer()).serverProperties(mockServerProperties()).build();
    }
    return component.system();
}
Also used : PlanPlugin(com.djrapitops.plan.PlanPlugin)

Example 4 with PlanPlugin

use of com.djrapitops.plan.PlanPlugin in project Plan by plan-player-analytics.

the class PluginMockComponent method initComponent.

private void initComponent() throws Exception {
    if (component == null) {
        PlanPlugin planMock = getPlanMock();
        abstractionLayer = new TestPlatformAbstractionLayer(planMock);
        component = DaggerPlanPluginComponent.builder().bindTemporaryDirectory(tempDir).plan(planMock).abstractionLayer(abstractionLayer).build();
    }
}
Also used : PlanPlugin(com.djrapitops.plan.PlanPlugin)

Aggregations

PlanPlugin (com.djrapitops.plan.PlanPlugin)4