mirror of https://github.com/apache/activemq.git
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:
parent
e1bcbb9f3e
commit
f5fb6c91b2
|
@ -281,13 +281,13 @@ public class StompTest extends StompTestSupport {
|
||||||
|
|
||||||
String frame = "CONNECT\n" + "login:system\n" + "passcode:manager\n\n" + Stomp.NULL;
|
String frame = "CONNECT\n" + "login:system\n" + "passcode:manager\n\n" + Stomp.NULL;
|
||||||
stompConnection.sendFrame(frame);
|
stompConnection.sendFrame(frame);
|
||||||
|
frame = stompConnection.receiveFrame();
|
||||||
|
assertTrue(frame.startsWith("CONNECTED"));
|
||||||
|
|
||||||
// publish message with string that requires 4-byte UTF-8 encoding
|
// publish message with string that requires 4-byte UTF-8 encoding
|
||||||
frame = "SEND\n" + "destination:/queue/" + getQueueName() + "\n\n" + body + Stomp.NULL;
|
frame = "SEND\n" + "destination:/queue/" + getQueueName() + "\n\n" + body + Stomp.NULL;
|
||||||
stompConnection.sendFrame(frame);
|
stompConnection.sendFrame(frame);
|
||||||
|
|
||||||
frame = stompConnection.receiveFrame();
|
|
||||||
assertTrue(frame.startsWith("CONNECTED"));
|
|
||||||
frame = "SUBSCRIBE\n" + "destination:/queue/" + getQueueName() + "\n" + "ack:auto\n\n" + Stomp.NULL;
|
frame = "SUBSCRIBE\n" + "destination:/queue/" + getQueueName() + "\n" + "ack:auto\n\n" + Stomp.NULL;
|
||||||
stompConnection.sendFrame(frame);
|
stompConnection.sendFrame(frame);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue