package chat;

public class TestClient {

	public static void main(String[] args) {
		Chatter bob = new TextChatter ("Bob");
		Chatter joe = new TextChatter ("Joe");
		TextGestTopics gt = new TextGestTopics();
		gt.createTopic("java");
		gt.createTopic("UML");
		gt.listTopics();
		gt.createTopic("jeux");
		gt.listTopics();
		TextChatRoom cr = (TextChatRoom)gt.joinTopic("jeux");
		cr.join(bob);
		cr.post("Je suis seul ou quoi ?",bob);
		cr.join(joe);
		cr.post("Tiens, salut Joe !",bob);
		cr.post("Toi aussi tu chat sur les forums de jeux pendant les TP,Bob?",joe);
	}
						
}
