aboutsummaryrefslogtreecommitdiff
path: root/tests/NewLine.java
diff options
context:
space:
mode:
authorjestin2005-07-06 20:04:19 +0000
committerjestin2005-07-06 20:04:19 +0000
commitab5311fc62b84a8650212d214ebafcef0754bf5f (patch)
tree0929e477d95336c9c26290951ded63065bbf29e6 /tests/NewLine.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/NewLine.java')
-rw-r--r--tests/NewLine.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/NewLine.java b/tests/NewLine.java
index 78835a3..ac4dc43 100644
--- a/tests/NewLine.java
+++ b/tests/NewLine.java
@@ -7,16 +7,16 @@ class NewLine {
public static void main(String[] args) throws IvyException {
Getopt opt = new Getopt("NewLine",args,"b:n:");
- String domain=Ivy.getDomain(null); // default bus
+ String domain=Ivy.getDomain(null);
int c;
int nb = 10000;
while ((c = opt.getopt()) != -1) switch (c) {
- case 'n':
- nb=Integer.parseInt(opt.getOptarg());
- break;
case 'b':
domain=opt.getOptarg();
break;
+ case 'n':
+ nb=Integer.parseInt(opt.getOptarg());
+ break;
default:
System.exit(0);
}
@@ -30,7 +30,6 @@ class NewLine {
System.out.println("trying Newline on " + n + " tests");
nbmsg=n;
bus = new Ivy("NewLine","NewLine ready", null);
- // System.out.println("protectnewline is OFF in 1.2.4 !!!");
bus.protectNewlines(true);
bus.sendToSelf(true);
bus.bindMsg("^coucou(.)monde$",new IvyMessageListener() {
@@ -40,7 +39,6 @@ class NewLine {
}
});
bus.start(domain);
- // try { Thread.sleep(2000); } catch (InterruptedException ie) { }
long t1,t2,t3;
t1=(new java.util.Date()).getTime();
System.out.println("sending "+nbmsg+" protected newlines");
@@ -60,7 +58,9 @@ class NewLine {
for (int i=0;i<n;i++ ) bus.sendMsg("coucou monde");
t3=(new java.util.Date()).getTime();
System.out.println("with protection " + (t2-t1) +"ms, without "+(t3-t2)+"ms");
+ System.out.println("DEBUUUUUUG stopping the bus");
bus.stop();
+ System.out.println("DEBUUUUUUG end stopping the bus");
}
}