Search in sources :

Example 11 with PluginMockComponent

use of utilities.mocks.PluginMockComponent in project Plan by plan-player-analytics.

the class PlanCommandTest method preparePlanCommand.

@BeforeEach
void preparePlanCommand(@TempDir Path tempDir) throws Exception {
    PlanPluginComponent component = new PluginMockComponent(tempDir).getComponent();
    underTest = component.planCommand();
}
Also used : PluginMockComponent(utilities.mocks.PluginMockComponent) PlanPluginComponent(utilities.dagger.PlanPluginComponent) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

PluginMockComponent (utilities.mocks.PluginMockComponent)11 PlanConfig (com.djrapitops.plan.settings.config.PlanConfig)5 BeforeAll (org.junit.jupiter.api.BeforeAll)5 BeforeEach (org.junit.jupiter.api.BeforeEach)4 User (com.djrapitops.plan.delivery.domain.auth.User)3 RegisterWebUserTransaction (com.djrapitops.plan.storage.database.transactions.commands.RegisterWebUserTransaction)3 File (java.io.File)3 PlanSystem (com.djrapitops.plan.PlanSystem)2 Server (com.djrapitops.plan.identification.Server)1 Locale (com.djrapitops.plan.settings.locale.Locale)1 DBSystem (com.djrapitops.plan.storage.database.DBSystem)1 StoreServerInformationTransaction (com.djrapitops.plan.storage.database.transactions.StoreServerInformationTransaction)1 Transaction (com.djrapitops.plan.storage.database.transactions.Transaction)1 RemoveEverythingTransaction (com.djrapitops.plan.storage.database.transactions.commands.RemoveEverythingTransaction)1 PlayerRegisterTransaction (com.djrapitops.plan.storage.database.transactions.events.PlayerRegisterTransaction)1 CreateTablesTransaction (com.djrapitops.plan.storage.database.transactions.init.CreateTablesTransaction)1 MoreExecutors (com.google.common.util.concurrent.MoreExecutors)1 Path (java.nio.file.Path)1 PlatformAbstractionLayer (net.playeranalytics.plugin.PlatformAbstractionLayer)1 TestPluginLogger (utilities.TestPluginLogger)1