Added the 'disabled' keyword in config to disable a listener on a port

This commit is contained in:
andsel
2016-05-18 00:11:19 +02:00
parent 04303eda75
commit e41e55f5aa
11 changed files with 29 additions and 26 deletions
@@ -48,7 +48,7 @@ public class ServerRestartIntegrationTest {
protected void startServer() throws IOException {
m_server = new Server();
final Properties configProps = IntegrationUtils.prepareTestPropeties();
final Properties configProps = IntegrationUtils.prepareTestProperties();
m_config = new MemoryConfig(configProps);
m_server.startServer(m_config);
}
@@ -101,7 +101,7 @@ public class ServerRestartIntegrationTest {
IntegrationUtils.cleanPersistenceFile(m_config);
//restart the server
m_server.startServer(IntegrationUtils.prepareTestPropeties());
m_server.startServer(IntegrationUtils.prepareTestProperties());
//reconnect the Subscriber subscribing to the same /topic but different QoS
m_subscriber.connect(CLEAN_SESSION_OPT);
@@ -128,7 +128,7 @@ public class ServerRestartIntegrationTest {
m_server.stopServer();
//restart the server
m_server.startServer(IntegrationUtils.prepareTestPropeties());
m_server.startServer(IntegrationUtils.prepareTestProperties());
m_publisher.connect();
m_publisher.publish("/topic", "Hello world MQTT!!".getBytes(), 0, false);
@@ -148,7 +148,7 @@ public class ServerRestartIntegrationTest {
m_server.stopServer();
//restart the server
m_server.startServer(IntegrationUtils.prepareTestPropeties());
m_server.startServer(IntegrationUtils.prepareTestProperties());
//subscriber reconnects
m_subscriber = new MqttClient("tcp://localhost:1883", "Subscriber", s_dataStore);
m_subscriber.setCallback(m_messageCollector);