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.FlagsManager;
import world.bentobox.bentobox.managers.IslandWorldManager; import world.bentobox.bentobox.managers.IslandWorldManager;
import world.bentobox.bentobox.managers.IslandsManager; import world.bentobox.bentobox.managers.IslandsManager;
import world.bentobox.bentobox.managers.PlaceholdersManager;
/** /**
* @author tastybento * @author tastybento
@ -97,6 +98,8 @@ public class ChallengesAddonTest {
private AddonsManager am; private AddonsManager am;
@Mock @Mock
private BukkitScheduler scheduler; private BukkitScheduler scheduler;
@Mock
private PlaceholdersManager phm;
/** /**
* @throws java.lang.Exception * @throws java.lang.Exception
@ -110,6 +113,9 @@ public class ChallengesAddonTest {
// Command manager // Command manager
CommandsManager cm = mock(CommandsManager.class); CommandsManager cm = mock(CommandsManager.class);
when(plugin.getCommandsManager()).thenReturn(cm); when(plugin.getCommandsManager()).thenReturn(cm);
// Placeholders manager
when(plugin.getPlaceholdersManager()).thenReturn(phm);
// Player // Player
Player p = mock(Player.class); Player p = mock(Player.class);