From 5823bdae46d964c3da847a7e4ec82209dc425e25 Mon Sep 17 00:00:00 2001 From: Andreas Mager Date: Wed, 1 Feb 2017 16:14:18 +0100 Subject: [PATCH] broker/ServerIntegrationHazelcastHandlerInterceptorTest: code formatter used --- ...rationHazelcastHandlerInterceptorTest.java | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/broker/src/test/java/io/moquette/server/ServerIntegrationHazelcastHandlerInterceptorTest.java b/broker/src/test/java/io/moquette/server/ServerIntegrationHazelcastHandlerInterceptorTest.java index f1df9f2e..c156b92a 100644 --- a/broker/src/test/java/io/moquette/server/ServerIntegrationHazelcastHandlerInterceptorTest.java +++ b/broker/src/test/java/io/moquette/server/ServerIntegrationHazelcastHandlerInterceptorTest.java @@ -1,3 +1,4 @@ + package io.moquette.server; import io.moquette.BrokerConstants; @@ -12,16 +13,15 @@ import org.eclipse.paho.client.mqttv3.persist.MqttDefaultFilePersistence; import org.junit.*; import org.slf4j.Logger; import org.slf4j.LoggerFactory; - import java.io.File; import java.io.IOException; import java.security.NoSuchAlgorithmException; import java.sql.SQLException; import java.util.Properties; - import static org.junit.Assert.assertEquals; -public class ServerIntegrationHazelcastHandlerInterceptorTest{ +public class ServerIntegrationHazelcastHandlerInterceptorTest { + private static final Logger LOG = LoggerFactory.getLogger(ServerIntegrationHazelcastHandlerInterceptorTest.class); static MqttClientPersistence s_dataStore; @@ -55,7 +55,9 @@ public class ServerIntegrationHazelcastHandlerInterceptorTest{ private Properties addHazelCastConf(Properties properties, int port, String hazelcastConfigurationFile) { properties.put(BrokerConstants.PORT_PROPERTY_NAME, port); - properties.put(BrokerConstants.INTERCEPT_HANDLER_PROPERTY_NAME, HazelcastInterceptHandler.class.getCanonicalName()); + properties.put( + BrokerConstants.INTERCEPT_HANDLER_PROPERTY_NAME, + HazelcastInterceptHandler.class.getCanonicalName()); properties.put(BrokerConstants.HAZELCAST_CONFIGURATION, hazelcastConfigurationFile); return properties; } @@ -65,14 +67,18 @@ public class ServerIntegrationHazelcastHandlerInterceptorTest{ String dbPath = IntegrationUtils.localMapDBPath(); IntegrationUtils.cleanPersistenceFile(dbPath); - final Properties configProps = addHazelCastConf(IntegrationUtils.prepareTestClusterProperties(1883), - 1883, "config/hazelcast.xml"); + final Properties configProps = addHazelCastConf( + IntegrationUtils.prepareTestClusterProperties(1883), + 1883, + "config/hazelcast.xml"); m_config_1883 = new MemoryConfig(configProps); server1883 = startServer(1883, m_config_1883); - final Properties configProps1884 = addHazelCastConf(IntegrationUtils.prepareTestClusterProperties(1884), - 1883, "config/hazelcast.xml"); + final Properties configProps1884 = addHazelCastConf( + IntegrationUtils.prepareTestClusterProperties(1884), + 1883, + "config/hazelcast.xml"); m_config_1884 = new MemoryConfig(configProps1884); server1884 = startServer(1884, m_config_1884);