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 60
60
import world .bentobox .bentobox .managers .AddonsManager ;
61
61
import world .bentobox .bentobox .managers .CommandsManager ;
62
62
import world .bentobox .bentobox .managers .FlagsManager ;
63
+ import world .bentobox .bentobox .managers .HooksManager ;
63
64
import world .bentobox .bentobox .managers .IslandWorldManager ;
64
65
import world .bentobox .bentobox .managers .IslandsManager ;
65
66
import world .bentobox .bentobox .managers .PlaceholdersManager ;
@@ -118,6 +119,8 @@ public class LevelTest {
118
119
private PluginManager pim ;
119
120
@ Mock
120
121
private BlockConfig blockConfig ;
122
+ @ Mock
123
+ private HooksManager hm ;
121
124
122
125
@ BeforeClass
123
126
public static void beforeClass () throws IOException {
@@ -150,6 +153,8 @@ public static void beforeClass() throws IOException {
150
153
*/
151
154
@ Before
152
155
public void setUp () throws Exception {
156
+ when (plugin .getHooks ()).thenReturn (hm );
157
+
153
158
Server server = ServerMocks .newServer ();
154
159
// Set up plugin
155
160
Whitebox .setInternalState (BentoBox .class , "instance" , plugin );
You can’t perform that action at this time.
0 commit comments