@@ -0,0 +1,2376 @@
+package com.nincraft.ninbot.components.channel;%0A%0Aimport com.nincraft.ninbot.NinbotTest;%0Aimport com.nincraft.ninbot.components.common.Emojis;%0Aimport com.nincraft.ninbot.components.config.component.ComponentService;%0Aimport lombok.val;%0Aimport net.dv8tion.jda.api.JDA;%0Aimport net.dv8tion.jda.api.Permission;%0Aimport net.dv8tion.jda.api.entities.Guild;%0Aimport net.dv8tion.jda.api.entities.Member;%0Aimport net.dv8tion.jda.api.entities.SelfUser;%0Aimport net.dv8tion.jda.api.entities.VoiceChannel;%0Aimport net.dv8tion.jda.api.events.guild.voice.GuildVoiceJoinEvent;%0Aimport net.dv8tion.jda.api.requests.RestAction;%0Aimport net.dv8tion.jda.api.requests.restaction.ChannelAction;%0Aimport org.junit.Test;%0Aimport org.mockito.InjectMocks;%0Aimport org.mockito.Mock;%0Aimport org.mockito.Mockito;%0A%0Aimport static org.mockito.ArgumentMatchers.anyString;%0Aimport static org.mockito.Mockito.*;%0A%0Apublic class TempVoiceChannelManagerTest extends NinbotTest %7B%0A%0A    @Mock%0A    TempVoiceChannelRepository tempVoiceChannelRepository;%0A%0A    @Mock%0A    ComponentService componentService;%0A%0A    @InjectMocks%0A    TempVoiceChannelManager tempVoiceChannelManager;%0A%0A    @Test%0A    public void onGuildVoiceJoin() %7B%0A        val guild = Mockito.mock(Guild.class);%0A        val joinEvent = Mockito.mock(GuildVoiceJoinEvent.class);%0A        val jda = Mockito.mock(JDA.class);%0A        val selfUser = Mockito.mock(SelfUser.class);%0A        val member = Mockito.mock(Member.class);%0A        val voiceChannelJoined = Mockito.mock(VoiceChannel.class);%0A        val restAction = Mockito.mock(ChannelAction.class);%0A%0A        when(joinEvent.getGuild()).thenReturn(guild);%0A        when(guild.getId()).thenReturn(%221%22);%0A        when(guild.getJDA()).thenReturn(jda);%0A        when(jda.getSelfUser()).thenReturn(selfUser);%0A        when(guild.getMember(selfUser)).thenReturn(member);%0A        when(joinEvent.getChannelJoined()).thenReturn(voiceChannelJoined);%0A        when(joinEvent.getMember()).thenReturn(member);%0A        when(voiceChannelJoined.getName()).thenReturn(Emojis.PLUS + %22 wot%22);%0A        when(member.hasPermission(any(Permission.class))).thenReturn(true);%0A        when(member.getEffectiveName()).thenReturn(%22Nincodedo%22);%0A        when(guild.createVoiceChannel(anyString())).thenReturn(restAction);%0A%0A        tempVoiceChannelManager.onGuildVoiceJoin(joinEvent);%0A%0A        verify(guild, times(1)).createVoiceChannel(%22Nincodedo's wot%22);%0A    %7D%0A%7D

Add temp voice channel test