test/uri_test.rb in jruby-hornetq-0.3.2 vs test/uri_test.rb in jruby-hornetq-0.3.3
- old
+ new
@@ -31,22 +31,22 @@
assert_equal 'hornetq', uri.scheme
assert_equal 'foobar', uri.host
assert_equal HornetQ.netty_port(1234), uri.port
assert_nil uri.backup_host
assert_equal '/zulu', uri.path
- assert_equal '../abc', uri[:data_directory]
+ assert_equal '../abc', uri['data_directory']
assert_equal false, uri.backup?
- assert_equal 'def', uri[:myval]
+ assert_equal 'def', uri['myval']
end
should 'parse backup server' do
uri = HornetQ::URI.new('hornetq://0.0.0.0:5446/?backup=true&data_directory=./data_backup')
assert_equal 'hornetq', uri.scheme
assert_equal '0.0.0.0', uri.host
assert_equal HornetQ.netty_port(5446), uri.port
assert_nil uri.backup_host
assert_equal '/', uri.path
- assert_equal './data_backup', uri[:data_directory]
+ assert_equal './data_backup', uri['data_directory']
assert_equal true, uri.backup?
end
should 'parse live server with backup specified' do
uri = HornetQ::URI.new('hornetq://0.0.0.0,hornetq_backup')