broker/ServerIntegrationFuseTest: code formatter used
This commit is contained in:
@@ -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,11 +24,9 @@ import org.junit.Before;
|
|||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
import static org.junit.Assert.*;
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -35,6 +34,7 @@ import static org.junit.Assert.*;
|
|||||||
* @author andrea
|
* @author andrea
|
||||||
*/
|
*/
|
||||||
public class ServerIntegrationFuseTest {
|
public class ServerIntegrationFuseTest {
|
||||||
|
|
||||||
private static final Logger LOG = LoggerFactory.getLogger(ServerIntegrationPahoTest.class);
|
private static final Logger LOG = LoggerFactory.getLogger(ServerIntegrationPahoTest.class);
|
||||||
|
|
||||||
Server m_server;
|
Server m_server;
|
||||||
@@ -96,10 +96,10 @@ public class ServerIntegrationFuseTest {
|
|||||||
Topic[] topics = new Topic[]{new Topic(willTestamentTopic, QoS.AT_MOST_ONCE)};
|
Topic[] topics = new Topic[]{new Topic(willTestamentTopic, QoS.AT_MOST_ONCE)};
|
||||||
m_subscriber.subscribe(topics);
|
m_subscriber.subscribe(topics);
|
||||||
|
|
||||||
//Exercise, kill the publisher connection
|
// Exercise, kill the publisher connection
|
||||||
m_publisher.kill();
|
m_publisher.kill();
|
||||||
|
|
||||||
//Verify, that the testament is fired
|
// Verify, that the testament is fired
|
||||||
Message msg = m_subscriber.receive(500, TimeUnit.MILLISECONDS);
|
Message msg = m_subscriber.receive(500, TimeUnit.MILLISECONDS);
|
||||||
assertNotNull("We should get notified with 'Will' message", msg);
|
assertNotNull("We should get notified with 'Will' message", msg);
|
||||||
msg.ack();
|
msg.ack();
|
||||||
|
|||||||
Reference in New Issue
Block a user