Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
tgracchus committed Oct 9, 2023
1 parent 0a16655 commit 023dbc1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ protected void decode(

final MessageType messageType = getMessageType(fixedHeader);
final @Nullable Message message;

if (messageType == CONNECT) {
message = handleConnect(buf, clientConnectionContext, fixedHeader, packetSize, remainingLength);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public void test_second_connect_received() {

@Test
public void test_connect_mqtt5_packet_size_too_large() {
final byte[] mqtt5_connect = {
final byte[] mqtt5Connect = {
// fixed header
// type, reserved
0b0001_0000,
Expand All @@ -200,12 +200,12 @@ public void test_connect_mqtt5_packet_size_too_large() {
// client identifier
0, 4, 't', 'e', 's', 't'};

test_connect_packet_size_too_large(mqtt5_connect);
test_connect_packet_size_too_large(mqtt5Connect);
}

@Test
public void test_connect_mqtt3_1_1_packet_size_too_large() {
final byte[] mqtt3_1_1_connect = {
final byte[] mqtt311Connect = {
// fixed header
// type, reserved
0b0001_0000,
Expand All @@ -226,12 +226,12 @@ public void test_connect_mqtt3_1_1_packet_size_too_large() {
// client identifier
0, 4, 't', 'e', 's', 't'};

test_connect_packet_size_too_large(mqtt3_1_1_connect);
test_connect_packet_size_too_large(mqtt311Connect);
}

@Test
public void test_connect_mqtt3_1_packet_size_too_large() {
final byte[] mqtt3_1_connect = {
final byte[] mqtt31Connect = {
// fixed header
// type, reserved
0b0001_0000,
Expand All @@ -252,7 +252,7 @@ public void test_connect_mqtt3_1_packet_size_too_large() {
// client identifier
0, 4, 't', 'e', 's', 't'};

test_connect_packet_size_too_large(mqtt3_1_connect);
test_connect_packet_size_too_large(mqtt31Connect);
}


Expand Down

0 comments on commit 023dbc1

Please sign in to comment.