diff --git a/src/test/java/world/bentobox/bskyblock/BSkyBlockTest.java b/src/test/java/world/bentobox/bskyblock/BSkyBlockTest.java index 31fbfa2..a70bcaa 100644 --- a/src/test/java/world/bentobox/bskyblock/BSkyBlockTest.java +++ b/src/test/java/world/bentobox/bskyblock/BSkyBlockTest.java @@ -41,6 +41,7 @@ import world.bentobox.bentobox.api.addons.AddonDescription; import world.bentobox.bentobox.api.configuration.Config; import world.bentobox.bentobox.api.user.User; import world.bentobox.bentobox.database.objects.Island; +import world.bentobox.bentobox.managers.AddonsManager; import world.bentobox.bentobox.managers.CommandsManager; import world.bentobox.bentobox.managers.IslandWorldManager; import world.bentobox.bentobox.managers.IslandsManager; @@ -130,6 +131,9 @@ public class BSkyBlockTest { addon.setFile(jFile); AddonDescription desc = new AddonDescription.Builder("bentobox", "bskyblock", "1.3").description("test").authors("tasty").build(); addon.setDescription(desc); + // Addons manager + AddonsManager am = mock(AddonsManager.class); + when(plugin.getAddonsManager()).thenReturn(am); } /** diff --git a/src/test/java/world/bentobox/bskyblock/commands/AdminCommandTest.java b/src/test/java/world/bentobox/bskyblock/commands/AdminCommandTest.java index 36b021b..f916635 100644 --- a/src/test/java/world/bentobox/bskyblock/commands/AdminCommandTest.java +++ b/src/test/java/world/bentobox/bskyblock/commands/AdminCommandTest.java @@ -38,7 +38,7 @@ import world.bentobox.bskyblock.Settings; @PrepareForTest({Bukkit.class, BentoBox.class, User.class }) public class AdminCommandTest { - private static final int NUM_COMMANDS = 27; + private static final int NUM_COMMANDS = 28; private User user; private BSkyBlock addon;