Commit c273787e authored by ics's avatar ics

Modified tests to track the memory leak

parent 77d15e1a
......@@ -132,6 +132,10 @@
<start executable="java" args="-classpath cameo-tests-jzmq/target/cameo-tests-jzmq-0.0.1-full.jar fr.ill.ics.cameo.test.TestEndpoint"/>
</application>
<application name="startlistjava" starting_time="inf" retries="0" stopping_time="1" stream="yes" log_directory="logs" multiple="no" restart="no">
<start executable="java" args="-classpath cameo-tests-jzmq/target/cameo-tests-jzmq-0.0.1-full.jar fr.ill.ics.cameo.test.TestList"/>
</application>
<!-- Managed cpp apps -->
<application name="simplecpp" starting_time="0" retries="0" stopping_time="1" stream="yes" log_directory="logs" multiple="no" restart="no">
<start executable="build/bin/testsimple"/>
......
......@@ -42,7 +42,7 @@
<dependencies>
<dependency>
<groupId>fr.ill.ics</groupId>
<artifactId>cameo-api-java</artifactId>
<artifactId>cameo-api-java-jzmq</artifactId>
<version>0.1.2</version>
</dependency>
</dependencies>
......
......@@ -30,7 +30,7 @@ public class TestEndpoint {
try {
while (true) {
System.out.println("connection to server : " + server.isAvailable());
System.out.println("connection to server : " + server.isAvailable(1));
}
} finally {
......
/*
* Copyright 2015 Institut Laue-Langevin
*
* Licensed under the EUPL, Version 1.1 only (the "License");
* You may not use this work except in compliance with the Licence.
* You may obtain a copy of the Licence at:
*
* http://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package fr.ill.ics.cameo.test;
import java.util.List;
import fr.ill.ics.cameo.Application;
import fr.ill.ics.cameo.Application.Configuration;
import fr.ill.ics.cameo.Application.This;
import fr.ill.ics.cameo.Server;
public class TestList {
public static void main(String[] args) {
Application.This.init(args);
Server server = This.getServer();
try {
while (true) {
List<Configuration> confs = server.getApplicationConfigurations();
System.out.println("confs size " + confs.size());
}
} finally {
Application.This.terminate();
}
}
}
\ No newline at end of file
......@@ -51,14 +51,7 @@ public class TestStartWithSimpleApplication {
Application.Instance application = server.start("simplejava");
// the getString is blocking until the application finishes
//application.waitFor();
try {
Thread.sleep(400);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
application.waitFor();
System.out.println("finished application " + application);
}
......
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