ARTEMIS-1765 Adding StompWithLargeMessageTest

This closes #1965
This commit is contained in:
Howard Gao 2018-03-22 12:24:39 +08:00 committed by Clebert Suconic
parent 552e4a2844
commit 51f105da7b
1 changed files with 25 additions and 21 deletions

View File

@ -69,6 +69,7 @@ public class StompWithLargeMessagesTest extends StompTestBase {
public void testSendReceiveLargeMessage() throws Exception {
StompClientConnection conn = StompClientConnectionFactory.createClientConnection(uri);
try {
String address = "testLargeMessageAddress";
server.getActiveMQServer().createQueue(SimpleString.toSimpleString(address), RoutingType.ANYCAST, SimpleString.toSimpleString(address), null, true, false);
@ -92,6 +93,9 @@ public class StompWithLargeMessagesTest extends StompTestBase {
ClientStompFrame frame = conn.receiveFrame();
System.out.println(frame.getBody().length());
assertTrue(frame.getBody().equals(payload));
} finally {
conn.disconnect();
}
}
//stomp sender -> large -> stomp receiver