From dd41de430e181803f190b6485c3f68fd7857bd7e Mon Sep 17 00:00:00 2001 From: Andreas Mager Date: Wed, 1 Feb 2017 16:10:44 +0100 Subject: [PATCH] broker/test/ConfigurationClassLoaderTest: code formatter used --- .../server/ConfigurationClassLoaderTest.java | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/broker/src/test/java/io/moquette/server/ConfigurationClassLoaderTest.java b/broker/src/test/java/io/moquette/server/ConfigurationClassLoaderTest.java index ab1f87f5..6eb6ea7f 100644 --- a/broker/src/test/java/io/moquette/server/ConfigurationClassLoaderTest.java +++ b/broker/src/test/java/io/moquette/server/ConfigurationClassLoaderTest.java @@ -13,6 +13,7 @@ * * You may elect to redistribute this code under either of these licenses. */ + package io.moquette.server; import io.moquette.BrokerConstants; @@ -22,33 +23,31 @@ import io.moquette.spi.security.IAuthenticator; import io.moquette.spi.security.IAuthorizator; import org.junit.After; import org.junit.Test; - import java.io.File; import java.io.IOException; import java.util.Properties; - import static org.junit.Assert.*; /** * - * @author luca + * @author luca */ public class ConfigurationClassLoaderTest implements IAuthenticator, IAuthorizator { + Server m_server; IConfig m_config; - + protected void startServer(Properties props) throws IOException { m_server = new Server(); m_config = new MemoryConfig(props); m_server.startServer(m_config); } - @After public void tearDown() throws Exception { m_server.stopServer(); } - + @Test public void loadAuthenticator() throws Exception { Properties props = new Properties(IntegrationUtils.prepareTestProperties()); @@ -56,7 +55,7 @@ public class ConfigurationClassLoaderTest implements IAuthenticator, IAuthorizat startServer(props); assertTrue(true); } - + @Test public void loadAuthorizator() throws Exception { Properties props = new Properties(IntegrationUtils.prepareTestProperties()); @@ -79,5 +78,5 @@ public class ConfigurationClassLoaderTest implements IAuthenticator, IAuthorizat public boolean canRead(String topic, String user, String client) { return true; } - + }