parent
552e4a2844
commit
51f105da7b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue