Package com.mockobjects.jms
Class MockTopicConnection
java.lang.Object
com.mockobjects.MockObject
com.mockobjects.jms.MockConnection
com.mockobjects.jms.MockTopicConnection
- All Implemented Interfaces:
Verifiable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConnectionConsumer
createConnectionConsumer
(Topic topic, String messageSelector, ServerSessionPool sessionPool, int maxMessages) ConnectionConsumer
createDurableConnectionConsumer
(Topic topic, String subscriptionName, String messageSelector, ServerSessionPool sessionPool, int maxMessages) TopicSession
createTopicSession
(boolean transacted, int acknowledgeMode) void
setupCreateTopicSession
(TopicSession topicSessionToReturn) Methods inherited from class com.mockobjects.jms.MockConnection
close, getClientID, getExceptionListener, getMetaData, setClientID, setExceptionListener, setExpectedCloseCalls, setExpectedStartCalls, setExpectedStopCalls, setupThrowException, start, stop
Methods inherited from class com.mockobjects.MockObject
notImplemented, notYetImplemented, verify
-
Constructor Details
-
MockTopicConnection
public MockTopicConnection()
-
-
Method Details
-
setupCreateTopicSession
public void setupCreateTopicSession(TopicSession topicSessionToReturn) -
createConnectionConsumer
public ConnectionConsumer createConnectionConsumer(Topic topic, String messageSelector, ServerSessionPool sessionPool, int maxMessages) throws JMSException - Throws:
JMSException
-
createDurableConnectionConsumer
public ConnectionConsumer createDurableConnectionConsumer(Topic topic, String subscriptionName, String messageSelector, ServerSessionPool sessionPool, int maxMessages) throws JMSException - Throws:
JMSException
-
createTopicSession
public TopicSession createTopicSession(boolean transacted, int acknowledgeMode) throws JMSException - Throws:
JMSException
-