# File test/test_message.rb, line 66 def test_0020_kcode # abody = "" "\000".upto("\377") {|abyte| abody << abyte } # dest = make_destination if @conn.protocol == Stomp::SPL_10 @conn.subscribe dest else sh = {} @conn.subscribe dest, sh, @conn.uuid() end @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