summaryrefslogtreecommitdiff
path: root/ruby/qpid/test.rb
blob: af57e8cf68ded98abda30b41caa84de14bb26601 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require "qpid/spec"
require "qpid/client"

module Qpid

  module Test

    def connect()
      spec = Spec.load("../specs/amqp.0-8.xml")
      c = Client.new("0.0.0.0", 5672, spec)
      c.start({"LOGIN" => "guest", "PASSWORD" => "guest"})
      return c
    end

  end

end