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 | ee477a65e6ac9532a27cdf589df6d9aba7d97796 (patch) | |
| tree | 7699a50a7a5bc3fdf2a3550cb288837a92dd0fba /cpp/bindings/qmf/tests | |
| parent | cc6ec1079431b7eb45031d36f5a6ad5e9a6675ac (diff) | |
| download | qpid-python-ee477a65e6ac9532a27cdf589df6d9aba7d97796.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/qpid@821109 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/bindings/qmf/tests')
| -rwxr-xr-x | cpp/bindings/qmf/tests/ruby_console.rb | 2 | ||||
| -rwxr-xr-x | cpp/bindings/qmf/tests/ruby_console_test.rb | 10 | ||||
| -rw-r--r-- | cpp/bindings/qmf/tests/test_base.rb | 2 |
3 files changed, 12 insertions, 2 deletions
diff --git a/cpp/bindings/qmf/tests/ruby_console.rb b/cpp/bindings/qmf/tests/ruby_console.rb index b53cf57b1f..f4420c9fc6 100755 --- a/cpp/bindings/qmf/tests/ruby_console.rb +++ b/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/cpp/bindings/qmf/tests/ruby_console_test.rb b/cpp/bindings/qmf/tests/ruby_console_test.rb index 9a33b5cdc6..b72c8e3806 100755 --- a/cpp/bindings/qmf/tests/ruby_console_test.rb +++ b/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/cpp/bindings/qmf/tests/test_base.rb b/cpp/bindings/qmf/tests/test_base.rb index 947753b02a..cb7fd9d4f9 100644 --- a/cpp/bindings/qmf/tests/test_base.rb +++ b/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| |
