Commit 603bca82 authored by legoc's avatar legoc

Changed simple test

parent a2bea6d2
......@@ -16,6 +16,8 @@
package fr.ill.ics.cameo.test;
import java.util.Date;
import fr.ill.ics.cameo.Application;
import fr.ill.ics.cameo.Server;
......@@ -39,6 +41,8 @@ public class TestStartWithSimpleApplication {
System.exit(-1);
}
Date d = new Date();
try {
// loop the number of times.
for (int i = 0; i < numberOfTimes; ++i) {
......@@ -47,7 +51,15 @@ public class TestStartWithSimpleApplication {
Application.Instance application = server.start("simplejava");
// the getString is blocking until the application finishes
application.waitFor();
//application.waitFor();
try {
Thread.sleep(400);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
System.out.println("finished application " + application);
}
......@@ -56,7 +68,7 @@ public class TestStartWithSimpleApplication {
Application.This.terminate();
}
System.out.println("finished the application");
System.out.println("finished the application after " + ((new Date()).getTime() - d.getTime()) + "ms");
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment