aboutsummaryrefslogtreecommitdiff
path: root/tests/TestApi.java
diff options
context:
space:
mode:
authorjestin2005-07-06 20:04:19 +0000
committerjestin2005-07-06 20:04:19 +0000
commitab5311fc62b84a8650212d214ebafcef0754bf5f (patch)
tree0929e477d95336c9c26290951ded63065bbf29e6 /tests/TestApi.java
parent0cef96242b0e0aa10b4b33ee0f4b175048dbe3e0 (diff)
downloadivy-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.java24
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));
}
}