public class MockQueueConnectionFactory extends MockConnectionFactory
QueueConnectionFactory.| Constructor and Description |
|---|
MockQueueConnectionFactory(DestinationManager destinationManager,
ConfigurationManager configurationManager) |
| Modifier and Type | Method and Description |
|---|---|
javax.jms.Connection |
createConnection() |
javax.jms.Connection |
createConnection(java.lang.String name,
java.lang.String password) |
MockQueueConnection |
getLatestQueueConnection()
Returns the latest created connection
or
null if no such connection
exists. |
MockQueueConnection |
getQueueConnection(int index)
Returns the connection with the specified index
or
null if no such connection
exists. |
clearConnections, configurationManager, connections, createQueueConnection, createQueueConnection, createTopicConnection, createTopicConnection, destinationManager, exception, getConnection, getLatestConnection, setJMSExceptionpublic MockQueueConnectionFactory(DestinationManager destinationManager, ConfigurationManager configurationManager)
public javax.jms.Connection createConnection()
throws javax.jms.JMSException
createConnection in interface javax.jms.ConnectionFactorycreateConnection in class MockConnectionFactoryjavax.jms.JMSExceptionpublic javax.jms.Connection createConnection(java.lang.String name,
java.lang.String password)
throws javax.jms.JMSException
createConnection in interface javax.jms.ConnectionFactorycreateConnection in class MockConnectionFactoryjavax.jms.JMSExceptionpublic MockQueueConnection getQueueConnection(int index)
null if no such connection
exists.index - the indexpublic MockQueueConnection getLatestQueueConnection()
null if no such connection
exists.Copyright © 2003-2018. All Rights Reserved.