mirror of
https://github.com/BentoBoxWorld/BSkyBlock.git
synced 2025-01-15 20:11:19 +01:00
Fixes tests
This commit is contained in:
parent
1f0740104b
commit
6c70b9856d
@ -41,6 +41,7 @@ import world.bentobox.bentobox.api.addons.AddonDescription;
|
|||||||
import world.bentobox.bentobox.api.configuration.Config;
|
import world.bentobox.bentobox.api.configuration.Config;
|
||||||
import world.bentobox.bentobox.api.user.User;
|
import world.bentobox.bentobox.api.user.User;
|
||||||
import world.bentobox.bentobox.database.objects.Island;
|
import world.bentobox.bentobox.database.objects.Island;
|
||||||
|
import world.bentobox.bentobox.managers.AddonsManager;
|
||||||
import world.bentobox.bentobox.managers.CommandsManager;
|
import world.bentobox.bentobox.managers.CommandsManager;
|
||||||
import world.bentobox.bentobox.managers.IslandWorldManager;
|
import world.bentobox.bentobox.managers.IslandWorldManager;
|
||||||
import world.bentobox.bentobox.managers.IslandsManager;
|
import world.bentobox.bentobox.managers.IslandsManager;
|
||||||
@ -130,6 +131,9 @@ public class BSkyBlockTest {
|
|||||||
addon.setFile(jFile);
|
addon.setFile(jFile);
|
||||||
AddonDescription desc = new AddonDescription.Builder("bentobox", "bskyblock", "1.3").description("test").authors("tasty").build();
|
AddonDescription desc = new AddonDescription.Builder("bentobox", "bskyblock", "1.3").description("test").authors("tasty").build();
|
||||||
addon.setDescription(desc);
|
addon.setDescription(desc);
|
||||||
|
// Addons manager
|
||||||
|
AddonsManager am = mock(AddonsManager.class);
|
||||||
|
when(plugin.getAddonsManager()).thenReturn(am);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -38,7 +38,7 @@ import world.bentobox.bskyblock.Settings;
|
|||||||
@PrepareForTest({Bukkit.class, BentoBox.class, User.class })
|
@PrepareForTest({Bukkit.class, BentoBox.class, User.class })
|
||||||
public class AdminCommandTest {
|
public class AdminCommandTest {
|
||||||
|
|
||||||
private static final int NUM_COMMANDS = 27;
|
private static final int NUM_COMMANDS = 28;
|
||||||
private User user;
|
private User user;
|
||||||
private BSkyBlock addon;
|
private BSkyBlock addon;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user