AMQ-8398 - Fix Stomp to Stomp Unicode UTF-8 test

The connection receive was out of order and causing failures in some of
the Stomp tests like StompNIOSSL
This commit is contained in:
Christopher L. Shannon 2024-09-04 15:33:55 -04:00
parent e1bcbb9f3e
commit f5fb6c91b2
1 changed files with 2 additions and 2 deletions

View File

@ -281,13 +281,13 @@ public class StompTest extends StompTestSupport {
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);