org.stringtree.mock.jms
Class MockConnectionFactory

java.lang.Object
  extended by org.stringtree.mock.RecordingMock
      extended by org.stringtree.mock.jms.MockConnectionFactory
All Implemented Interfaces:
javax.jms.ConnectionFactory, javax.jms.QueueConnectionFactory, javax.jms.TopicConnectionFactory

public class MockConnectionFactory
extends RecordingMock
implements javax.jms.ConnectionFactory, javax.jms.QueueConnectionFactory, javax.jms.TopicConnectionFactory


Field Summary
 
Fields inherited from class org.stringtree.mock.RecordingMock
exception, recorded, verbose
 
Constructor Summary
MockConnectionFactory()
           
 
Method Summary
 javax.jms.Connection createConnection()
           
 javax.jms.Connection createConnection(java.lang.String userName, java.lang.String password)
           
 javax.jms.QueueConnection createQueueConnection()
           
 javax.jms.QueueConnection createQueueConnection(java.lang.String userName, java.lang.String password)
           
 javax.jms.TopicConnection createTopicConnection()
           
 javax.jms.TopicConnection createTopicConnection(java.lang.String userName, java.lang.String password)
           
 
Methods inherited from class org.stringtree.mock.RecordingMock
assertCalled, assertCalled, assertCalled, assertCalled, assertNotCalled, assertNotCalled, clear, record, record, record, setException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockConnectionFactory

public MockConnectionFactory()
Method Detail

createConnection

public javax.jms.Connection createConnection()
Specified by:
createConnection in interface javax.jms.ConnectionFactory

createConnection

public javax.jms.Connection createConnection(java.lang.String userName,
                                             java.lang.String password)
Specified by:
createConnection in interface javax.jms.ConnectionFactory

createQueueConnection

public javax.jms.QueueConnection createQueueConnection()
                                                throws javax.jms.JMSException
Specified by:
createQueueConnection in interface javax.jms.QueueConnectionFactory
Throws:
javax.jms.JMSException

createQueueConnection

public javax.jms.QueueConnection createQueueConnection(java.lang.String userName,
                                                       java.lang.String password)
                                                throws javax.jms.JMSException
Specified by:
createQueueConnection in interface javax.jms.QueueConnectionFactory
Throws:
javax.jms.JMSException

createTopicConnection

public javax.jms.TopicConnection createTopicConnection()
                                                throws javax.jms.JMSException
Specified by:
createTopicConnection in interface javax.jms.TopicConnectionFactory
Throws:
javax.jms.JMSException

createTopicConnection

public javax.jms.TopicConnection createTopicConnection(java.lang.String userName,
                                                       java.lang.String password)
                                                throws javax.jms.JMSException
Specified by:
createTopicConnection in interface javax.jms.TopicConnectionFactory
Throws:
javax.jms.JMSException