# File test/test_message.rb, line 85 def test_0030_kcode # dest = make_destination if @conn.protocol == Stomp::SPL_10 @conn.subscribe dest else sh = {:id => @conn.uuid()} @conn.subscribe dest, sh end # "\000".upto("\377") do |abody| @conn.publish dest, abody msg = @conn.receive assert_instance_of Stomp::Message , msg, "type check for #{abody}" assert_equal abody, msg.body, "equal check for #{abody}" end end