Package com.mockobjects.jms
Class MockTopicSession
- java.lang.Object
-
- com.mockobjects.MockObject
-
- com.mockobjects.jms.MockSession
-
- com.mockobjects.jms.MockTopicSession
-
- All Implemented Interfaces:
Verifiable
public class MockTopicSession extends MockSession
-
-
Constructor Summary
Constructors Constructor Description MockTopicSession()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TopicSubscribercreateDurableSubscriber(Topic topic, java.lang.String name)TopicSubscribercreateDurableSubscriber(Topic topic, java.lang.String name, java.lang.String messsageSelecter, boolean noLocal)TopicPublishercreatePublisher(Topic topic)TopicSubscribercreateSubscriber(Topic topic)TopicSubscribercreateSubscriber(Topic topic, java.lang.String messsageSelecter, boolean noLocal)TemporaryTopiccreateTemporaryTopic()TopiccreateTopic(java.lang.String topicName)voidsetExpectedTopicName(java.lang.String topicName)voidsetupCreatePublisher(TopicPublisher topicPublisherToReturn)voidsetupCreateTopic(Topic topicToReturn)voidsetupCreateTopicCalls(int createTopicCalls)voidsetupTopicSubscriber(TopicSubscriber topicSubscriberToReturn)voidunsubscribe(java.lang.String topicName)-
Methods inherited from class com.mockobjects.jms.MockSession
close, commit, createBytesMessage, createMapMessage, createMessage, createObjectMessage, createObjectMessage, createStreamMessage, createTextMessage, createTextMessage, getMessageListener, getTransacted, recover, rollback, run, setExpectedCloseCalls, setExpectedCreateTextMessageCalls, setMessageListener, setupCreateObjectMessage, setupTextMessage, setupThrowException
-
Methods inherited from class com.mockobjects.MockObject
notImplemented, notYetImplemented, verify
-
-
-
-
Method Detail
-
setupCreateTopic
public void setupCreateTopic(Topic topicToReturn)
-
setExpectedTopicName
public void setExpectedTopicName(java.lang.String topicName)
-
setupCreateTopicCalls
public void setupCreateTopicCalls(int createTopicCalls)
-
createDurableSubscriber
public TopicSubscriber createDurableSubscriber(Topic topic, java.lang.String name) throws JMSException- Throws:
JMSException
-
createDurableSubscriber
public TopicSubscriber createDurableSubscriber(Topic topic, java.lang.String name, java.lang.String messsageSelecter, boolean noLocal) throws JMSException- Throws:
JMSException
-
setupCreatePublisher
public void setupCreatePublisher(TopicPublisher topicPublisherToReturn)
-
createPublisher
public TopicPublisher createPublisher(Topic topic) throws JMSException- Throws:
JMSException
-
setupTopicSubscriber
public void setupTopicSubscriber(TopicSubscriber topicSubscriberToReturn)
-
createSubscriber
public TopicSubscriber createSubscriber(Topic topic) throws JMSException- Throws:
JMSException
-
createSubscriber
public TopicSubscriber createSubscriber(Topic topic, java.lang.String messsageSelecter, boolean noLocal) throws JMSException- Throws:
JMSException
-
createTemporaryTopic
public TemporaryTopic createTemporaryTopic() throws JMSException- Throws:
JMSException
-
createTopic
public Topic createTopic(java.lang.String topicName) throws JMSException- Throws:
JMSException
-
unsubscribe
public void unsubscribe(java.lang.String topicName) throws JMSException- Throws:
JMSException
-
-