Skip to content

Commit

Permalink
AMQ-8398 - Fix Stomp to Stomp Unicode UTF-8 test
Browse files Browse the repository at this point in the history
The connection receive was out of order and causing failures in some of
the Stomp tests like StompNIOSSL
  • Loading branch information
cshannon committed Sep 4, 2024
1 parent e1bcbb9 commit f5fb6c9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -281,13 +281,13 @@ public void testSend4ByteUtf8StompToStomp() throws Exception {

String frame = "CONNECT\n" + "login:system\n" + "passcode:manager\n\n" + Stomp.NULL;
stompConnection.sendFrame(frame);
frame = stompConnection.receiveFrame();
assertTrue(frame.startsWith("CONNECTED"));

// publish message with string that requires 4-byte UTF-8 encoding
frame = "SEND\n" + "destination:/queue/" + getQueueName() + "\n\n" + body + Stomp.NULL;
stompConnection.sendFrame(frame);

frame = stompConnection.receiveFrame();
assertTrue(frame.startsWith("CONNECTED"));
frame = "SUBSCRIBE\n" + "destination:/queue/" + getQueueName() + "\n" + "ack:auto\n\n" + Stomp.NULL;
stompConnection.sendFrame(frame);

Expand Down

0 comments on commit f5fb6c9

Please sign in to comment.