broker/ConnectionIT: code formatter used
This commit is contained in:
@@ -13,14 +13,13 @@
|
||||
*
|
||||
* You may elect to redistribute this code under either of these licenses.
|
||||
*/
|
||||
|
||||
package io.moquette.spec.v3_1_1.connection;
|
||||
|
||||
import static org.junit.Assert.assertFalse;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
import io.moquette.BrokerConstants;
|
||||
import io.moquette.server.Server;
|
||||
import io.moquette.testclient.RawClient;
|
||||
@@ -54,7 +53,9 @@ public class ConnectionIT {
|
||||
|
||||
File dbFile = new File(BrokerConstants.DEFAULT_PERSISTENT_PATH);
|
||||
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());
|
||||
}
|
||||
@@ -67,7 +68,8 @@ public class ConnectionIT {
|
||||
.write(0x13) // Remaining Length
|
||||
.write(0x00, 0x04) // Protocol Name Length
|
||||
.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
|
||||
// User Name Flag(0)
|
||||
@@ -108,7 +110,8 @@ public class ConnectionIT {
|
||||
.write(0x13) // Remaining Length
|
||||
.write(0x00, 0x04) // Protocol Name Length
|
||||
.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
|
||||
// User Name Flag(0)
|
||||
@@ -137,7 +140,8 @@ public class ConnectionIT {
|
||||
.write(0x12) // Remaining Length
|
||||
.write(0x00, 0x04) // Protocol Name Length
|
||||
.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
|
||||
// User Name Flag(0)
|
||||
|
||||
Reference in New Issue
Block a user