From d5d548edaf6cf1ffb2d214b2bf0329ec341c42a1 Mon Sep 17 00:00:00 2001 From: jestin Date: Tue, 27 Jul 2004 16:23:00 +0000 Subject: major test rewrite to abide to the latest API. Updated tests for async msg handling and protect newline --- tests/Bug.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'tests/Bug.java') diff --git a/tests/Bug.java b/tests/Bug.java index 706d951..398bbee 100644 --- a/tests/Bug.java +++ b/tests/Bug.java @@ -19,15 +19,17 @@ class Bug implements IvyApplicationListener { public void connect(IvyClient client) { System.out.println("sending messages"); - bus.sendMsg("coucou"); - bus.sendMsg("titi"); - bus.sendMsg("tata"); - bus.sendMsg("toto"); + try { + bus.sendMsg("coucou"); + bus.sendMsg("titi"); + bus.sendMsg("tata"); + bus.sendMsg("toto"); + } catch (IvyException ie) { } System.out.println("done"); } - public void die(IvyClient client,int id) { - System.out.println("argh. cya"); + public void die(IvyClient client,int id,String msg) { + System.out.println("argh. cya "+msg); } public static void main(String args[]) { -- cgit v1.1