Fixed failing tests
This commit is contained in:
@@ -241,7 +241,7 @@ public class PostOfficePublishTest {
|
||||
.topicName(NEWS_TOPIC).build());
|
||||
|
||||
// Verify
|
||||
assertTrue("QoS0 MUST clean retained message for topic", retainedRepository.isEmtpy());
|
||||
assertTrue("QoS0 MUST clean retained message for topic", retainedRepository.isEmpty());
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -403,7 +403,7 @@ public class PostOfficePublishTest {
|
||||
.topicName(NEWS_TOPIC).build());
|
||||
|
||||
// Verify
|
||||
assertTrue("Retained message for topic /news must be cleared", retainedRepository.isEmtpy());
|
||||
assertTrue("Retained message for topic /news must be cleared", retainedRepository.isEmpty());
|
||||
}
|
||||
|
||||
private void assertMessageIsRetained(String expectedTopicName) {
|
||||
|
||||
@@ -16,13 +16,14 @@
|
||||
|
||||
package io.moquette.broker.config;
|
||||
|
||||
import io.moquette.broker.config.ConfigurationParser;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.io.Reader;
|
||||
import java.io.StringReader;
|
||||
import java.text.ParseException;
|
||||
import java.util.Properties;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
|
||||
@@ -62,8 +62,8 @@ public class ServerIntegrationWebSocketTest {
|
||||
@After
|
||||
public void tearDown() throws Exception {
|
||||
client.stop();
|
||||
|
||||
m_server.stopServer();
|
||||
IntegrationUtils.clearTestStorage();
|
||||
}
|
||||
|
||||
@SuppressWarnings("FutureReturnValueIgnored")
|
||||
|
||||
@@ -22,6 +22,7 @@ import static org.junit.Assert.assertTrue;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import io.moquette.BrokerConstants;
|
||||
import io.moquette.integration.IntegrationUtils;
|
||||
import io.moquette.testclient.RawClient;
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
@@ -53,6 +54,7 @@ public class ConnectionIT {
|
||||
dbFile.delete());
|
||||
}
|
||||
assertFalse(dbFile.exists());
|
||||
IntegrationUtils.clearTestStorage();
|
||||
}
|
||||
|
||||
@Test(timeout = 3000)
|
||||
|
||||
Reference in New Issue
Block a user