| Package | Description |
|---|---|
| com.mockrunner.jms | |
| com.mockrunner.mock.jms |
| Modifier and Type | Method and Description |
|---|---|
MockConnection |
JMSTestModule.getCurrentConnection()
Returns the current
MockConnection based on its
index or null if no connection
was created. |
protected MockConnection |
BasicJMSTestCaseAdapter.getCurrentConnection()
Delegates to
JMSTestModule.getCurrentConnection() |
| Modifier and Type | Method and Description |
|---|---|
void |
JMSTestModule.registerTestMessageListenerForQueue(MockConnection connection,
String queueName,
boolean transacted,
int acknowledgeMode,
javax.jms.MessageListener listener)
Creates a new session and receiver using the specified connection and
registers the specified listener.
|
protected void |
BasicJMSTestCaseAdapter.registerTestMessageListenerForQueue(MockConnection connection,
String queueName,
boolean transacted,
int acknowledgeMode,
javax.jms.MessageListener listener)
|
void |
JMSTestModule.registerTestMessageListenerForQueue(MockConnection connection,
String queueName,
boolean transacted,
int acknowledgeMode,
String messageSelector,
javax.jms.MessageListener listener)
Creates a new session and receiver using the specified connection and
registers the specified listener.
|
protected void |
BasicJMSTestCaseAdapter.registerTestMessageListenerForQueue(MockConnection connection,
String queueName,
boolean transacted,
int acknowledgeMode,
String messageSelector,
javax.jms.MessageListener listener)
|
void |
JMSTestModule.registerTestMessageListenerForQueue(MockConnection connection,
String queueName,
javax.jms.MessageListener listener)
Creates a new session and receiver using the specified connection and
registers the specified listener.
|
protected void |
BasicJMSTestCaseAdapter.registerTestMessageListenerForQueue(MockConnection connection,
String queueName,
javax.jms.MessageListener listener)
|
void |
JMSTestModule.registerTestMessageListenerForTopic(MockConnection connection,
String topicName,
boolean transacted,
int acknowledgeMode,
javax.jms.MessageListener listener)
Creates a new session and subscriber using the specified connection and
registers the specified listener.
|
protected void |
BasicJMSTestCaseAdapter.registerTestMessageListenerForTopic(MockConnection connection,
String topicName,
boolean transacted,
int acknowledgeMode,
javax.jms.MessageListener listener)
|
void |
JMSTestModule.registerTestMessageListenerForTopic(MockConnection connection,
String topicName,
boolean transacted,
int acknowledgeMode,
String messageSelector,
javax.jms.MessageListener listener)
Creates a new session and subscriber using the specified connection and
registers the specified listener.
|
protected void |
BasicJMSTestCaseAdapter.registerTestMessageListenerForTopic(MockConnection connection,
String topicName,
boolean transacted,
int acknowledgeMode,
String messageSelector,
javax.jms.MessageListener listener)
|
void |
JMSTestModule.registerTestMessageListenerForTopic(MockConnection connection,
String topicName,
javax.jms.MessageListener listener)
Creates a new session and subscriber using the specified connection and
registers the specified listener.
|
protected void |
BasicJMSTestCaseAdapter.registerTestMessageListenerForTopic(MockConnection connection,
String topicName,
javax.jms.MessageListener listener)
|
| Constructor and Description |
|---|
GenericTransmissionManager(MockConnection connection,
MockSession session) |
QueueTransmissionManager(MockConnection connection,
MockSession session) |
TopicTransmissionManager(MockConnection connection,
MockSession session) |
| Modifier and Type | Class and Description |
|---|---|
class |
MockQueueConnection
Mock implementation of JMS
QueueConnection. |
class |
MockTopicConnection
Mock implementation of JMS
TopicConnection. |
| Modifier and Type | Method and Description |
|---|---|
protected MockConnection |
MockSession.getConnection() |
protected MockConnection |
MockMessageConsumer.getConnection() |
MockConnection |
MockConnectionFactory.getConnection(int index)
Returns the connection with the specified index
or
null if no such connection
exists. |
MockConnection |
MockConnectionFactory.getLatestConnection()
Returns the latest created connection
or
null if no such connection
exists. |
Copyright © 2003–2020. All rights reserved.