test/test_helper.rb in stomp-1.2.16 vs test/test_helper.rb in stomp-1.3.0

- old
+ new

@@ -79,9 +79,24 @@ } conn = Stomp::Connection.open(hash) conn end + # Get a Stomp Anonymous Connection. + def get_anonymous_connection() + ch = get_conn_headers() + hash = { :hosts => [ + {:host => host, :port => port, :ssl => nil}, + ], + :reliable => false, + :connect_headers => ch, + :stompconn => get_stomp_conn(), + :usecrlf => get_crlf(), + } + conn = Stomp::Connection.open(hash) + conn + end + # Get a Stomp SSL Connection. def get_ssl_connection() ch = get_conn_headers() ssl_params = Stomp::SSLParams.new(:use_ruby_ciphers => jruby?()) hash = { :hosts => [