Sha256: fec0ab98d087fc5f3ebeddfdb6cdbe7af5c4d3d3067a06c2c2a31f21a1be98bb
Contents?: true
Size: 1.29 KB
Versions: 2
Compression:
Stored size: 1.29 KB
Contents
require File.dirname(File.expand_path(__FILE__)) + '/spec_helper.rb' describe JSparrow::Connection do subject do configure_connection end context 'When configured' do it 'should known a jms_client_jar' do subject.jms_client_jar.should_not be nil end it 'should known a jndi_properties' do subject.jndi_properties.should_not be nil end it 'should have the queue_connection_factory enabled' do subject.enabled_connection_factories[:queue_connection_factory].should_not be nil end it 'should have the topic_connection_factory enabled' do subject.enabled_connection_factories[:topic_connection_factory].should_not be nil end it 'should have the test_queue enabled' do subject.enabled_queues[:test_queue].should_not be nil end it 'should have the test_topic enabled' do subject.enabled_topics[:test_topic].should_not be nil end it 'should allow create a new Client' do jms_client = create_jms_client jms_client.class.should be JSparrow::Connection::Client end it 'should allow create a new Listener' do jms_listener = create_jms_listener jms_listener.class.superclass.should be JSparrow::Connection::Listener end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jsparrow-1.1.3 | spec/connection_spec.rb |
jsparrow-1.1.2 | spec/connection_spec.rb |