Search in sources :

Example 1 with TestLogger

use of utilities.mocks.objects.TestLogger 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)

Aggregations

PlanBungee (com.djrapitops.plan.PlanBungee)1 ColorScheme (com.djrapitops.plan.commands.use.ColorScheme)1 TestLogger (utilities.mocks.objects.TestLogger)1