mirror of
https://github.com/BentoBoxWorld/AcidIsland.git
synced 2025-01-10 10:27:44 +01:00
Fixes tests for Acid Command
This commit is contained in:
parent
2e66d8358c
commit
f35c6d1803
@ -26,6 +26,7 @@ import world.bentobox.bentobox.api.addons.Addon;
|
||||
import world.bentobox.bentobox.api.localization.TextVariables;
|
||||
import world.bentobox.bentobox.api.user.User;
|
||||
import world.bentobox.bentobox.managers.CommandsManager;
|
||||
import world.bentobox.bentobox.managers.FlagsManager;
|
||||
|
||||
/**
|
||||
* @author tastybento
|
||||
@ -38,6 +39,8 @@ public class AcidCommandTest {
|
||||
private static final int NUM_COMMANDS = 29;
|
||||
@Mock
|
||||
private User user;
|
||||
@Mock
|
||||
private FlagsManager fm;
|
||||
|
||||
/**
|
||||
* @throws java.lang.Exception
|
||||
@ -66,6 +69,10 @@ public class AcidCommandTest {
|
||||
// Return the reference (USE THIS IN THE FUTURE)
|
||||
when(user.getTranslation(Mockito.anyString())).thenAnswer((Answer<String>) invocation -> invocation.getArgument(0, String.class));
|
||||
|
||||
// Flags manager
|
||||
when(plugin.getFlagsManager()).thenReturn(fm);
|
||||
when(fm.getFlags()).thenReturn(Collections.emptyList());
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user