@@ -0,0 +1,2387 @@
+package com.nincraft.ninbot.components.countdown;%0A%0Aimport com.nincraft.ninbot.NinbotTest;%0Aimport com.nincraft.ninbot.TestUtils;%0Aimport com.nincraft.ninbot.components.command.CommandResult;%0Aimport com.nincraft.ninbot.components.common.Emojis;%0Aimport net.dv8tion.jda.api.entities.Guild;%0Aimport org.junit.Test;%0Aimport org.mockito.InjectMocks;%0Aimport org.mockito.Mock;%0Aimport org.mockito.Mockito;%0A%0Aimport static org.assertj.core.api.Assertions.assertThat;%0Aimport static org.mockito.Mockito.when;%0A%0Apublic class CountdownCommandTest extends NinbotTest %7B%0A%0A    @Mock%0A    CountdownRepository countdownRepository;%0A%0A    @InjectMocks%0A    CountdownCommand countdownCommand;%0A%0A    @Test%0A    public void testHelpCommand() %7B%0A        when(messageEvent.getMessage()).thenReturn(message);%0A        when(message.getContentStripped()).thenReturn(%22@Ninbot countdown%22);%0A        CommandResult commandResult = countdownCommand.executeCommand(messageEvent);%0A        assertThat(TestUtils.returnEmoji(commandResult)).contains(Emojis.CHECK_MARK);%0A        assertThat(TestUtils.returnPrivateMessageEmbededName(commandResult)).contains(%22Countdown Command Help%22);%0A    %7D%0A%0A    @Test%0A    public void testListCommandNoCountdowns() %7B%0A        Guild guild = Mockito.mock(Guild.class);%0A        when(messageEvent.getMessage()).thenReturn(message);%0A        when(messageEvent.getGuild()).thenReturn(guild);%0A        when(guild.getId()).thenReturn(%221%22);%0A        when(message.getContentStripped()).thenReturn(%22@Ninbot countdown list%22);%0A        CommandResult commandResult = countdownCommand.executeCommand(messageEvent);%0A        assertThat(TestUtils.returnEmbeddedTitle(commandResult)).isEqualTo(%22No countdowns are currently scheduled, %22%0A                + %22use %5C%22@Ninbot countdown%5C%22 to add your own!%22);%0A    %7D%0A%0A    @Test%0A    public void testListCommandHasCountdowns() %7B%0A        Guild guild = Mockito.mock(Guild.class);%0A        when(messageEvent.getMessage()).thenReturn(message);%0A        when(messageEvent.getGuild()).thenReturn(guild);%0A        when(guild.getId()).thenReturn(%221%22);%0A        when(message.getContentStripped()).thenReturn(%22@Ninbot countdown list%22);%0A        CommandResult commandResult = countdownCommand.executeCommand(messageEvent);%0A        assertThat(TestUtils.returnEmbeddedTitle(commandResult)).isEqualTo(%22No countdowns are currently scheduled, %22%0A                + %22use %5C%22@Ninbot countdown%5C%22 to add your own!%22);%0A    %7D%0A%7D

Add Countdown command test