def test_no_length
conn_subscribe make_destination
@conn.publish make_destination, "test_stomp#test_no_length",
{ :suppress_content_length => true }
msg = @conn.receive
assert_equal "test_stomp#test_no_length", msg.body
@conn.publish make_destination, "test_stomp#test_\000_length",
{ :suppress_content_length => true }
msg2 = @conn.receive
if @conn.protocol == Stomp::SPL_10
assert_equal "test_stomp#test_", msg2.body
else
assert_equal "test_stomp#test_\000_length", msg2.body
end
checkEmsg(@conn)
end