mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-04-19 05:08:02 +00:00
[AB-241] fixing test
This commit is contained in:
@@ -95,6 +95,9 @@ public class CommandReceivedHandlerTest {
|
|||||||
@Mock
|
@Mock
|
||||||
private Command command;
|
private Command command;
|
||||||
|
|
||||||
|
@Mock
|
||||||
|
private MessageChannel channel;
|
||||||
|
|
||||||
@Captor
|
@Captor
|
||||||
private ArgumentCaptor<Parameters> parametersArgumentCaptor;
|
private ArgumentCaptor<Parameters> parametersArgumentCaptor;
|
||||||
|
|
||||||
@@ -157,6 +160,7 @@ public class CommandReceivedHandlerTest {
|
|||||||
when(event.getMessage()).thenReturn(message);
|
when(event.getMessage()).thenReturn(message);
|
||||||
when(commandManager.isCommand(message)).thenReturn(true);
|
when(commandManager.isCommand(message)).thenReturn(true);
|
||||||
when(event.getGuild()).thenReturn(guild);
|
when(event.getGuild()).thenReturn(guild);
|
||||||
|
when(event.getChannel()).thenReturn(channel);
|
||||||
when(guild.getIdLong()).thenReturn(SERVER_ID);
|
when(guild.getIdLong()).thenReturn(SERVER_ID);
|
||||||
when(message.getContentRaw()).thenReturn(MESSAGE_CONTENT_COMMAND_ONLY);
|
when(message.getContentRaw()).thenReturn(MESSAGE_CONTENT_COMMAND_ONLY);
|
||||||
when(commandManager.getCommandName(anyString(), eq(SERVER_ID))).thenReturn(COMMAND_NAME);
|
when(commandManager.getCommandName(anyString(), eq(SERVER_ID))).thenReturn(COMMAND_NAME);
|
||||||
|
|||||||
Reference in New Issue
Block a user