public class MockTopicSession extends MockSession
| Constructor and Description |
|---|
MockTopicSession() |
| Modifier and Type | Method and Description |
|---|---|
TopicSubscriber |
createDurableSubscriber(Topic topic,
java.lang.String name) |
TopicSubscriber |
createDurableSubscriber(Topic topic,
java.lang.String name,
java.lang.String messsageSelecter,
boolean noLocal) |
TopicPublisher |
createPublisher(Topic topic) |
TopicSubscriber |
createSubscriber(Topic topic) |
TopicSubscriber |
createSubscriber(Topic topic,
java.lang.String messsageSelecter,
boolean noLocal) |
TemporaryTopic |
createTemporaryTopic() |
Topic |
createTopic(java.lang.String topicName) |
void |
setExpectedTopicName(java.lang.String topicName) |
void |
setupCreatePublisher(TopicPublisher topicPublisherToReturn) |
void |
setupCreateTopic(Topic topicToReturn) |
void |
setupCreateTopicCalls(int createTopicCalls) |
void |
setupTopicSubscriber(TopicSubscriber topicSubscriberToReturn) |
void |
unsubscribe(java.lang.String topicName) |
close, commit, createBytesMessage, createMapMessage, createMessage, createObjectMessage, createObjectMessage, createStreamMessage, createTextMessage, createTextMessage, getMessageListener, getTransacted, recover, rollback, run, setExpectedCloseCalls, setExpectedCreateTextMessageCalls, setMessageListener, setupCreateObjectMessage, setupTextMessage, setupThrowExceptionnotImplemented, notYetImplemented, verifypublic void setupCreateTopic(Topic topicToReturn)
public void setExpectedTopicName(java.lang.String topicName)
public void setupCreateTopicCalls(int createTopicCalls)
public TopicSubscriber createDurableSubscriber(Topic topic,
java.lang.String name)
throws JMSException
JMSExceptionpublic TopicSubscriber createDurableSubscriber(Topic topic,
java.lang.String name,
java.lang.String messsageSelecter,
boolean noLocal)
throws JMSException
JMSExceptionpublic void setupCreatePublisher(TopicPublisher topicPublisherToReturn)
public TopicPublisher createPublisher(Topic topic)
throws JMSException
JMSExceptionpublic void setupTopicSubscriber(TopicSubscriber topicSubscriberToReturn)
public TopicSubscriber createSubscriber(Topic topic)
throws JMSException
JMSExceptionpublic TopicSubscriber createSubscriber(Topic topic,
java.lang.String messsageSelecter,
boolean noLocal)
throws JMSException
JMSExceptionpublic TemporaryTopic createTemporaryTopic()
throws JMSException
JMSExceptionpublic Topic createTopic(java.lang.String topicName)
throws JMSException
JMSExceptionpublic void unsubscribe(java.lang.String topicName)
throws JMSException
JMSExceptionCopyright © 2002 Mock Objects. All Rights Reserved.