package exh3y.telebot;

import static org.junit.Assert.assertTrue;

import org.json.JSONObject;
import org.junit.Test;

import exh3y.telebot.actions.TelegramActionHandler;
import exh3y.telebot.actions.TelegramMessageHandler;
import exh3y.telebot.data.TelegramMessage;

public class TeleBotTest implements TelegramMessageHandler {

	@Test
	public void testTeleBotCreation() {

		TeleBot bot = new TeleBot("123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11");
		try {
			bot.registerCommandAction("/test", this);
			bot.unregisterCommandAction("/test");
			bot.registerDefaultTextAction(this);
		} catch (Exception e) {
			assertTrue(false);
		}
	}

	@Override
	public void onCommandReceive(int chatId, TelegramMessage message) {

		return;
	}

	@Override
	public void onCommandReceive(JSONObject response) {

		// TODO Auto-generated method stub
		
	}

}

@@ -168,104 +168,8 @@
 ler;
-%0Aimport exh3y.telebot.actions.TelegramMessageHandler;%0Aimport exh3y.telebot.data.TelegramMessage;
 %0A%0Apu
@@ -210,23 +210,22 @@
 Telegram
-Message
+Action
 Handler 
@@ -593,91 +593,8 @@
 Id, 
-TelegramMessage message) %7B%0A%0A%09%09return;%0A%09%7D%0A%0A%09@Override%0A%09public void onCommandReceive(
 JSON
@@ -604,23 +604,22 @@
 ect 
-respons
+messag
 e) %7B%0A%0A%09%09
 // T
@@ -618,45 +618,15 @@
 %0A%0A%09%09
-// TODO Auto-generated method stub%0A%09%09
+return;
 %0A%09%7D%0A

Revert "Fixed errors"