Fix broken tests due to placeholder additions.

b5ecffb725
2958ca8b6c
This commit is contained in:
tastybento 2020-04-06 17:20:53 -07:00
parent 2958ca8b6c
commit bda02fe55b

View File

@ -67,6 +67,7 @@ import world.bentobox.bentobox.managers.CommandsManager;
import world.bentobox.bentobox.managers.FlagsManager;
import world.bentobox.bentobox.managers.IslandWorldManager;
import world.bentobox.bentobox.managers.IslandsManager;
import world.bentobox.bentobox.managers.PlaceholdersManager;
/**
* @author tastybento
@ -97,6 +98,8 @@ public class ChallengesAddonTest {
private AddonsManager am;
@Mock
private BukkitScheduler scheduler;
@Mock
private PlaceholdersManager phm;
/**
* @throws java.lang.Exception
@ -111,6 +114,9 @@ public class ChallengesAddonTest {
CommandsManager cm = mock(CommandsManager.class);
when(plugin.getCommandsManager()).thenReturn(cm);
// Placeholders manager
when(plugin.getPlaceholdersManager()).thenReturn(phm);
// Player
Player p = mock(Player.class);
// Sometimes use Mockito.withSettings().verboseLogging()