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, setupThrowException
notImplemented, notYetImplemented, verify
public 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
JMSException
public TopicSubscriber createDurableSubscriber(Topic topic, java.lang.String name, java.lang.String messsageSelecter, boolean noLocal) throws JMSException
JMSException
public void setupCreatePublisher(TopicPublisher topicPublisherToReturn)
public TopicPublisher createPublisher(Topic topic) throws JMSException
JMSException
public void setupTopicSubscriber(TopicSubscriber topicSubscriberToReturn)
public TopicSubscriber createSubscriber(Topic topic) throws JMSException
JMSException
public TopicSubscriber createSubscriber(Topic topic, java.lang.String messsageSelecter, boolean noLocal) throws JMSException
JMSException
public TemporaryTopic createTemporaryTopic() throws JMSException
JMSException
public Topic createTopic(java.lang.String topicName) throws JMSException
JMSException
public void unsubscribe(java.lang.String topicName) throws JMSException
JMSException
Copyright © 2002 Mock Objects. All Rights Reserved.