diff options
author | Ted Ross <tross@apache.org> | 2009-10-02 17:45:58 +0000 |
---|---|---|
committer | Ted Ross <tross@apache.org> | 2009-10-02 17:45:58 +0000 |
commit | 0f7c02dae11afed532bf60302cf2185f422fd23c (patch) | |
tree | 9b176b6ebbe29419aa4bfe5d24102d5091dc2a72 /qpid/cpp/bindings/qmf/tests | |
parent | 4b60b602712e767a4438b2c6552cb50fa9aa97cb (diff) | |
download | qpid-python-0f7c02dae11afed532bf60302cf2185f422fd23c.tar.gz |
QMF Fixes:
- In ruby: waitForStable => wait_for_stable
- Setting an unknown attribute on connection settings now throws an exception
- Added connected? accessor to Connection
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@821109 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/bindings/qmf/tests')
-rwxr-xr-x | qpid/cpp/bindings/qmf/tests/ruby_console.rb | 2 | ||||
-rwxr-xr-x | qpid/cpp/bindings/qmf/tests/ruby_console_test.rb | 10 | ||||
-rw-r--r-- | qpid/cpp/bindings/qmf/tests/test_base.rb | 2 |
3 files changed, 12 insertions, 2 deletions
diff --git a/qpid/cpp/bindings/qmf/tests/ruby_console.rb b/qpid/cpp/bindings/qmf/tests/ruby_console.rb index b53cf57b1f..f4420c9fc6 100755 --- a/qpid/cpp/bindings/qmf/tests/ruby_console.rb +++ b/qpid/cpp/bindings/qmf/tests/ruby_console.rb @@ -110,7 +110,7 @@ class App < Qmf::ConsoleHandler @qmfc = Qmf::Console.new(self) @broker = @qmfc.add_connection(@connection) - @broker.waitForStable + @broker.wait_for_stable ##dump_schema diff --git a/qpid/cpp/bindings/qmf/tests/ruby_console_test.rb b/qpid/cpp/bindings/qmf/tests/ruby_console_test.rb index 9a33b5cdc6..b72c8e3806 100755 --- a/qpid/cpp/bindings/qmf/tests/ruby_console_test.rb +++ b/qpid/cpp/bindings/qmf/tests/ruby_console_test.rb @@ -24,6 +24,8 @@ require 'test_base' class ConsoleTest < ConsoleTestBase def test_A_agent_presence + assert(@connection.connected?, "Connection not connected") + agents = [] count = 0 while agents.size == 0 @@ -37,6 +39,14 @@ class ConsoleTest < ConsoleTestBase assert_equal(agentList.size, 2, "Number of agents reported by Console") end + def test_A_connection_settings + begin + @settings.bogusAttribute = 25 + fail("Connection settings accepted bogus attribute") + rescue + end + end + def test_B_basic_method_invocation parent = @qmfc.object(:class => "parent") assert(parent, "Number of 'parent' objects") diff --git a/qpid/cpp/bindings/qmf/tests/test_base.rb b/qpid/cpp/bindings/qmf/tests/test_base.rb index 947753b02a..cb7fd9d4f9 100644 --- a/qpid/cpp/bindings/qmf/tests/test_base.rb +++ b/qpid/cpp/bindings/qmf/tests/test_base.rb @@ -31,7 +31,7 @@ class ConsoleTestBase < Qmf::ConsoleHandler @qmfc = Qmf::Console.new @broker = @qmfc.add_connection(@connection) - @broker.waitForStable + @broker.wait_for_stable tests = [] methods.each do |m| |