Search in sources :

Example 1 with ColorScheme

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

the class PlanPluginMocker method mockPlugin.

private PlanPluginMocker mockPlugin() {
    planMock = Mockito.mock(PlanPlugin.class);
    super.planMock = planMock;
    doReturn(new ColorScheme("§1", "§2", "§3")).when(planMock).getColorScheme();
    return this;
}
Also used : PlanPlugin(com.djrapitops.plan.PlanPlugin) ColorScheme(com.djrapitops.plan.commands.use.ColorScheme)

Example 2 with ColorScheme

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

the class PlanNukkitMocker method mockPlugin.

private PlanNukkitMocker mockPlugin() {
    planMock = Mockito.mock(PlanNukkit.class);
    super.planMock = planMock;
    doReturn(new ColorScheme("§1", "§2", "§3")).when(planMock).getColorScheme();
    cn.nukkit.plugin.PluginLogger mockedLogger = Mockito.mock(cn.nukkit.plugin.PluginLogger.class);
    doReturn(mockedLogger).when(planMock).getLogger();
    return this;
}
Also used : PlanNukkit(com.djrapitops.plan.PlanNukkit) ColorScheme(com.djrapitops.plan.commands.use.ColorScheme)

Example 3 with ColorScheme

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

the class PlanFabricMocker method mockPlugin.

private PlanFabricMocker mockPlugin() {
    planMock = Mockito.mock(PlanFabric.class);
    super.planMock = planMock;
    doReturn(new ColorScheme("§1", "§2", "§3")).when(planMock).getColorScheme();
    return this;
}
Also used : PlanFabric(net.playeranalytics.plan.PlanFabric) ColorScheme(com.djrapitops.plan.commands.use.ColorScheme)

Example 4 with ColorScheme

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

the class PlanBungeeMocker method mockPlugin.

private PlanBungeeMocker mockPlugin() {
    planMock = Mockito.mock(PlanBungee.class);
    super.planMock = planMock;
    doReturn(new ColorScheme("§1", "§2", "§3")).when(planMock).getColorScheme();
    TestLogger testLogger = new TestLogger();
    doReturn(testLogger).when(planMock).getLogger();
    return this;
}
Also used : PlanBungee(com.djrapitops.plan.PlanBungee) ColorScheme(com.djrapitops.plan.commands.use.ColorScheme) TestLogger(utilities.mocks.objects.TestLogger)

Example 5 with ColorScheme

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

the class PlanVelocityMocker method mockPlugin.

private PlanVelocityMocker mockPlugin() {
    planMock = Mockito.mock(PlanVelocity.class);
    super.planMock = planMock;
    doReturn(new ColorScheme("§1", "§2", "§3")).when(planMock).getColorScheme();
    return this;
}
Also used : ColorScheme(com.djrapitops.plan.commands.use.ColorScheme) PlanVelocity(com.djrapitops.plan.PlanVelocity)

Aggregations

ColorScheme (com.djrapitops.plan.commands.use.ColorScheme)5 PlanBungee (com.djrapitops.plan.PlanBungee)1 PlanNukkit (com.djrapitops.plan.PlanNukkit)1 PlanPlugin (com.djrapitops.plan.PlanPlugin)1 PlanVelocity (com.djrapitops.plan.PlanVelocity)1 PlanFabric (net.playeranalytics.plan.PlanFabric)1 TestLogger (utilities.mocks.objects.TestLogger)1