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