Fixes tests for Acid Command

This commit is contained in:
tastybento 2019-10-03 14:45:45 -07:00
parent 2e66d8358c
commit f35c6d1803

View File

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