summaryrefslogtreecommitdiff
path: root/ruby/tests
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2009-06-23 13:04:20 +0000
committerRafael H. Schloming <rhs@apache.org>2009-06-23 13:04:20 +0000
commit04047a25c6813fca28da27439d901f6977e618e2 (patch)
treec79107847b8da58ce46a03b9ec965b386c575938 /ruby/tests
parent88b6b472b53db97defafe87d658f97ec0f78cd38 (diff)
downloadqpid-python-04047a25c6813fca28da27439d901f6977e618e2.tar.gz
renamed the type field of structs to st_type so it won't conflict with struct fields
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@787663 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'ruby/tests')
-rw-r--r--ruby/tests/connection.rb13
1 files changed, 12 insertions, 1 deletions
diff --git a/ruby/tests/connection.rb b/ruby/tests/connection.rb
index ab892d8e53..c2a851ec0a 100644
--- a/ruby/tests/connection.rb
+++ b/ruby/tests/connection.rb
@@ -49,7 +49,7 @@ class MockSession < Qpid::Session::Delegate
end
def queue_query(qq)
- return qq.type.result.create(qq.queue)
+ return qq.st_type.result.create(qq.queue)
end
def message_transfer(cmd, headers, body)
@@ -64,6 +64,10 @@ class MockSession < Qpid::Session::Delegate
@queue.put([cmd, headers, body])
end
end
+
+ def exchange_declare(ed)
+ # do nothing
+ end
end
class TestConnectionTest < Test::Unit::TestCase
@@ -232,4 +236,11 @@ class TestConnectionTest < Test::Unit::TestCase
:message => Qpid::Message.new("test"))
s.sync(10)
end
+
+ def test_exchange_declare
+ c = connect
+ c.start(10)
+ s = c.session("test")
+ s.exchange_declare("test-exchange")
+ end
end