Commit 3dc78a08 authored by Guillaume Surrel's avatar Guillaume Surrel
Browse files

setProperties method must hold the complete set of new properties.

parent 6d47d63f
......@@ -88,6 +88,10 @@ public class TestCollectorQueue4 extends TestCase implements MessageListener {
AdminModule.connect(cf);
Properties props = new Properties();
props.setProperty("collector.url", url);
props.setProperty("expiration", "0");
props.setProperty("persistent", "false");
props.setProperty("acquisition.period", "3000");
props.setProperty("collector.type", "" + org.objectweb.joram.shared.messages.Message.BYTES);
queue.setProperties(props);
Thread.sleep(12000);
......
......@@ -88,6 +88,10 @@ public class TestCollectorTopic4 extends TestCase implements MessageListener {
AdminModule.connect(cf);
Properties props = new Properties();
props.setProperty("collector.url", url);
props.setProperty("expiration", "0");
props.setProperty("persistent", "false");
props.setProperty("acquisition.period", "3000");
props.setProperty("collector.type", "" + org.objectweb.joram.shared.messages.Message.BYTES);
topic.setProperties(props);
AdminModule.disconnect();
......
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