File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/test/java/world/bentobox/level Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 6060import world .bentobox .bentobox .managers .AddonsManager ;
6161import world .bentobox .bentobox .managers .CommandsManager ;
6262import world .bentobox .bentobox .managers .FlagsManager ;
63+ import world .bentobox .bentobox .managers .HooksManager ;
6364import world .bentobox .bentobox .managers .IslandWorldManager ;
6465import world .bentobox .bentobox .managers .IslandsManager ;
6566import 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 );
You can’t perform that action at this time.
0 commit comments