broker/ConnectionIT: code formatter used

This commit is contained in:
Andreas Mager
2017-02-01 17:13:42 +01:00
parent e68c5ce4b0
commit 3ebb9c7d48
@@ -13,14 +13,13 @@
* *
* 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.spec.v3_1_1.connection; package io.moquette.spec.v3_1_1.connection;
import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertTrue;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
import io.moquette.BrokerConstants; import io.moquette.BrokerConstants;
import io.moquette.server.Server; import io.moquette.server.Server;
import io.moquette.testclient.RawClient; import io.moquette.testclient.RawClient;
@@ -54,7 +53,9 @@ public class ConnectionIT {
File dbFile = new File(BrokerConstants.DEFAULT_PERSISTENT_PATH); File dbFile = new File(BrokerConstants.DEFAULT_PERSISTENT_PATH);
if (dbFile.exists()) { if (dbFile.exists()) {
assertTrue("Error deleting the moquette db file " + BrokerConstants.DEFAULT_PERSISTENT_PATH, dbFile.delete()); assertTrue(
"Error deleting the moquette db file " + BrokerConstants.DEFAULT_PERSISTENT_PATH,
dbFile.delete());
} }
assertFalse(dbFile.exists()); assertFalse(dbFile.exists());
} }
@@ -67,7 +68,8 @@ public class ConnectionIT {
.write(0x13) // Remaining Length .write(0x13) // Remaining Length
.write(0x00, 0x04) // Protocol Name Length .write(0x00, 0x04) // Protocol Name Length
.write("MQTT") // Protocol Name .write("MQTT") // Protocol Name
.write(0x04) // The value of the Protocol Level field for the version 3.1.1 of the protocol is 4 (0x04) .write(0x04) // The value of the Protocol Level field for the version 3.1.1 of the
// protocol is 4 (0x04)
// Connect Flags // Connect Flags
// User Name Flag(0) // User Name Flag(0)
@@ -108,7 +110,8 @@ public class ConnectionIT {
.write(0x13) // Remaining Length .write(0x13) // Remaining Length
.write(0x00, 0x04) // Protocol Name Length .write(0x00, 0x04) // Protocol Name Length
.write("MQTT") // Protocol Name .write("MQTT") // Protocol Name
.write(0x04) // The value of the Protocol Level field for the version 3.1.1 of the protocol is 4 (0x04) .write(0x04) // The value of the Protocol Level field for the version 3.1.1 of the
// protocol is 4 (0x04)
// Connect Flags // Connect Flags
// User Name Flag(0) // User Name Flag(0)
@@ -137,7 +140,8 @@ public class ConnectionIT {
.write(0x12) // Remaining Length .write(0x12) // Remaining Length
.write(0x00, 0x04) // Protocol Name Length .write(0x00, 0x04) // Protocol Name Length
.write("MQTT") // Protocol Name .write("MQTT") // Protocol Name
.write(0x04) // The value of the Protocol Level field for the version 3.1.1 of the protocol is 4 (0x04) .write(0x04) // The value of the Protocol Level field for the version 3.1.1 of the
// protocol is 4 (0x04)
// Connect Flags // Connect Flags
// User Name Flag(0) // User Name Flag(0)