broker/ServerRestartIntegrationTest: code formatter used

This commit is contained in:
Andreas Mager
2017-02-01 17:13:42 +01:00
parent 6d4f076969
commit fde2a77aae
@@ -13,6 +13,7 @@
* *
* You may elect to redistribute this code under either of these licenses. * You may elect to redistribute this code under either of these licenses.
*/ */
package io.moquette.server; package io.moquette.server;
import io.moquette.server.config.IConfig; import io.moquette.server.config.IConfig;
@@ -23,7 +24,6 @@ import org.junit.After;
import org.junit.Before; import org.junit.Before;
import org.junit.BeforeClass; import org.junit.BeforeClass;
import org.junit.Test; import org.junit.Test;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.util.Properties; import java.util.Properties;
@@ -88,7 +88,6 @@ public class ServerRestartIntegrationTest {
IntegrationUtils.cleanPersistenceFile(m_config); IntegrationUtils.cleanPersistenceFile(m_config);
} }
@Test @Test
public void checkRestartCleanSubscriptionTree() throws Exception { public void checkRestartCleanSubscriptionTree() throws Exception {
// subscribe to /topic // subscribe to /topic
@@ -118,7 +117,6 @@ public class ServerRestartIntegrationTest {
assertNull(m_messageCollector.waitMessage(1)); assertNull(m_messageCollector.waitMessage(1));
} }
@Test @Test
public void checkDontPublishInactiveClientsAfterServerRestart() throws Exception { public void checkDontPublishInactiveClientsAfterServerRestart() throws Exception {
IMqttClient conn = subscribeAndPublish("/topic"); IMqttClient conn = subscribeAndPublish("/topic");
@@ -166,7 +164,7 @@ public class ServerRestartIntegrationTest {
/** /**
* Connect subscribe to topic and publish on the same topic * Connect subscribe to topic and publish on the same topic
* */ */
private IMqttClient subscribeAndPublish(String topic) throws Exception { private IMqttClient subscribeAndPublish(String topic) throws Exception {
IMqttClient client = new MqttClient("tcp://localhost:1883", "SubPub"); IMqttClient client = new MqttClient("tcp://localhost:1883", "SubPub");
MessageCollector collector = new MessageCollector(); MessageCollector collector = new MessageCollector();