# File test/test_message.rb, line 48 def test_0010_kcode # dest = make_destination if @conn.protocol == Stomp::SPL_10 @conn.subscribe dest else sh = {} @conn.subscribe dest, sh, @conn.uuid() end @messages.each 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