diff options
author | jestin | 2005-07-06 20:04:19 +0000 |
---|---|---|
committer | jestin | 2005-07-06 20:04:19 +0000 |
commit | ab5311fc62b84a8650212d214ebafcef0754bf5f (patch) | |
tree | 0929e477d95336c9c26290951ded63065bbf29e6 /tests/TestApi.java | |
parent | 0cef96242b0e0aa10b4b33ee0f4b175048dbe3e0 (diff) | |
download | ivy-java-ab5311fc62b84a8650212d214ebafcef0754bf5f.zip ivy-java-ab5311fc62b84a8650212d214ebafcef0754bf5f.tar.gz ivy-java-ab5311fc62b84a8650212d214ebafcef0754bf5f.tar.bz2 ivy-java-ab5311fc62b84a8650212d214ebafcef0754bf5f.tar.xz |
tests 1.2.8
le build.xml c'est pour une automatisation de la construction avec ant plutôt
qu'avec make. je ne sais encore guère
Diffstat (limited to 'tests/TestApi.java')
-rw-r--r-- | tests/TestApi.java | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/tests/TestApi.java b/tests/TestApi.java index 3fa936a..00c2f29 100644 --- a/tests/TestApi.java +++ b/tests/TestApi.java @@ -93,32 +93,12 @@ class TestApi implements IvyMessageListener, IvyApplicationListener { System.out.println("Sender leaving the bus"); sbus.stop(); System.out.println("Sender has left the bus"); - new Killer(domain); - } - } - - class Killer implements IvyMessageListener { - private Ivy kbus; - public Killer(String domain) { - try { - System.out.println("Killer joining the bus"); - kbus = new Ivy("Killer","Killer ready", null); - kbus.bindMsg("^"+TestApiReadyMsg+"$",this); - kbus.start(domain); - } catch (IvyException ie) { - ie.printStackTrace(); - } - } - public void receive(IvyClient c,String[] args) { - c.sendDie("bye bye"); - System.out.println("Killer leaving the bus"); - kbus.stop(); - System.out.println("Killer has left the bus"); + new Killer(domain,("^"+TestApiReadyMsg+"$")); } } public static void main(String[] args) throws IvyException { - new TestApi(Ivy.getDomain(null)); + new TestApi(Ivy.getDomainArgs("TestApi",args)); } } |