diff options
| author | Ted Ross <tross@apache.org> | 2009-10-23 18:31:10 +0000 |
|---|---|---|
| committer | Ted Ross <tross@apache.org> | 2009-10-23 18:31:10 +0000 |
| commit | a63be09b172c9091b87dedaceaa755777b914756 (patch) | |
| tree | 38d0db1f7796903e2ec588ca375311c8368c1592 /cpp/bindings/qmf/tests/ruby_console_test.rb | |
| parent | c677d6ffec635f28e3e48255cfca3508a13b40ae (diff) | |
| download | qpid-python-a63be09b172c9091b87dedaceaa755777b914756.tar.gz | |
Removed references to broker and agent bank from API, replaced with the
more generic (and forward compatible) "key".
In the Ruby binding, ensured that ruby objects reference their own copies
of the wrapped c++ objects to protect from problems when the c++ objects are
deleted out from under the wrappers.
Added agent discriminator to the console::objects method.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@829167 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/bindings/qmf/tests/ruby_console_test.rb')
| -rwxr-xr-x | cpp/bindings/qmf/tests/ruby_console_test.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cpp/bindings/qmf/tests/ruby_console_test.rb b/cpp/bindings/qmf/tests/ruby_console_test.rb index e0440367c5..98180a97cd 100755 --- a/cpp/bindings/qmf/tests/ruby_console_test.rb +++ b/cpp/bindings/qmf/tests/ruby_console_test.rb @@ -201,6 +201,19 @@ class ConsoleTest < ConsoleTestBase end + def test_D_get_with_agent + agents = @qmfc.agents + agents.each do |agent| + if agent.label == "qmfa" + parent = @qmfc.object(:class => "parent", :agent => agent) + assert(parent, "Number of parent objects") + return + end + end + + fail("Didn't find a non-broker agent") + end + end app = ConsoleTest.new |
