package test;

import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

import java.io.IOException;

import org.junit.Test;

import bot.Bot;

public class BotTests {

	@Test
	public void connectionTest() throws IOException {
		Bot bot = new Bot(System.getenv(Bot.TOKEN_NAME));
		assertFalse(bot.isConnected());
		bot.connect();
		assertTrue(bot.isConnected());
		bot.disconnect();
		assertFalse(bot.isConnected());
	}

	//TODO: vrification de bonne rcption de messages
	
	//TODO: vrification de bons envois de messages
}

@@ -468,32 +468,33 @@
 %09%7D%0D%0A%0D%0A%09//TODO: v
+%C3%A9
 rification de bo
@@ -498,17 +498,19 @@
  bonne r
-c
+%C3%A9c%C3%A9
 ption de
@@ -533,16 +533,17 @@
 /TODO: v
+%C3%A9
 rificati

encoding to utf-8