Fixes tests

This commit is contained in:
tastybento 2019-07-19 19:04:10 -07:00
parent 1f0740104b
commit 6c70b9856d
2 changed files with 5 additions and 1 deletions

View File

@ -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);
}
/**

View File

@ -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;