Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Rakambda committed Jul 17, 2022
1 parent dda9a91 commit 9b44e5d
Showing 1 changed file with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
package fr.raksrinana.channelpointsminer.miner.factory;

import fr.raksrinana.channelpointsminer.miner.api.chat.ws.TwitchChatWebSocketClient;
import fr.raksrinana.channelpointsminer.miner.api.passport.TwitchLogin;
import fr.raksrinana.channelpointsminer.miner.api.ws.TwitchPubSubWebSocketClient;
import fr.raksrinana.channelpointsminer.miner.tests.ParallelizableTest;
import org.assertj.core.api.Assertions;
import org.mockito.Mock;
import org.junit.jupiter.api.Test;

@ParallelizableTest
class TwitchPubSubWebSocketClientFactoryTest{
@Mock
private TwitchLogin twitchLogin;

@Test
void create(){
Assertions.assertThat(TwitchWebSocketClientFactory.createPubSubClient()).isNotNull();
void createPubSub(){
Assertions.assertThat(TwitchWebSocketClientFactory.createPubSubClient()).isNotNull().isInstanceOf(TwitchPubSubWebSocketClient.class);
}

@Test
void createIrc(){
Assertions.assertThat(TwitchWebSocketClientFactory.createIrcClient(twitchLogin)).isNotNull().isInstanceOf(TwitchChatWebSocketClient.class);
}
}

0 comments on commit 9b44e5d

Please sign in to comment.