Moved test to use a test client callback that queue up all received messages

This commit is contained in:
andsel
2016-03-06 19:50:47 +01:00
parent 6cadaebb0c
commit 4e8f72a34b
8 changed files with 71 additions and 159 deletions
@@ -61,7 +61,7 @@ public class ServerIntegrationSSLTest {
static MqttClientPersistence s_dataStore;
IMqttClient m_client;
TestCallback m_callback;
MessageCollector m_callback;
@BeforeClass
public static void beforeTests() {
@@ -94,7 +94,7 @@ public class ServerIntegrationSSLTest {
m_client = new MqttClient("ssl://localhost:8883", "TestClient", s_dataStore);
// m_client = new MqttClient("ssl://test.mosquitto.org:8883", "TestClient", s_dataStore);
m_callback = new TestCallback();
m_callback = new MessageCollector();
m_client.setCallback(m_callback);
}