Skip to content

Commit ba3da9f

Browse files
committed
Fix text
1 parent db8767e commit ba3da9f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/test/java/world/bentobox/level/LevelTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
import world.bentobox.bentobox.managers.AddonsManager;
6161
import world.bentobox.bentobox.managers.CommandsManager;
6262
import world.bentobox.bentobox.managers.FlagsManager;
63+
import world.bentobox.bentobox.managers.HooksManager;
6364
import world.bentobox.bentobox.managers.IslandWorldManager;
6465
import world.bentobox.bentobox.managers.IslandsManager;
6566
import world.bentobox.bentobox.managers.PlaceholdersManager;
@@ -118,6 +119,8 @@ public class LevelTest {
118119
private PluginManager pim;
119120
@Mock
120121
private BlockConfig blockConfig;
122+
@Mock
123+
private HooksManager hm;
121124

122125
@BeforeClass
123126
public static void beforeClass() throws IOException {
@@ -150,6 +153,8 @@ public static void beforeClass() throws IOException {
150153
*/
151154
@Before
152155
public void setUp() throws Exception {
156+
when(plugin.getHooks()).thenReturn(hm);
157+
153158
Server server = ServerMocks.newServer();
154159
// Set up plugin
155160
Whitebox.setInternalState(BentoBox.class, "instance", plugin);

0 commit comments

Comments
 (0)