java.lang.Object
com.mockobjects.MockObject
com.mockobjects.jms.MockSession
com.mockobjects.jms.MockTopicSession
- All Implemented Interfaces:
- java.lang.Runnable, javax.jms.Session, javax.jms.TopicSession, com.mockobjects.Verifiable
- public class MockTopicSession
- extends MockSession
- implements javax.jms.TopicSession
| 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, throwExceptionIfAny |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.jms.Session |
close, commit, createBrowser, createBrowser, createBytesMessage, createConsumer, createConsumer, createConsumer, createMapMessage, createMessage, createObjectMessage, createObjectMessage, createProducer, createQueue, createStreamMessage, createTemporaryQueue, createTextMessage, createTextMessage, getAcknowledgeMode, getMessageListener, getTransacted, recover, rollback, run, setMessageListener |
topicToReturn
private final com.mockobjects.ReturnValue topicToReturn
topicName
private com.mockobjects.ExpectationValue topicName
createTopicCalls
private com.mockobjects.ExpectationCounter createTopicCalls
topicPublisherToReturn
private final com.mockobjects.ReturnValue topicPublisherToReturn
topicSubscriberToReturn
private final com.mockobjects.ReturnValue topicSubscriberToReturn
MockTopicSession
public MockTopicSession()
setupCreateTopic
public void setupCreateTopic(javax.jms.Topic topicToReturn)
setExpectedTopicName
public void setExpectedTopicName(java.lang.String topicName)
setupCreateTopicCalls
public void setupCreateTopicCalls(int createTopicCalls)
createDurableSubscriber
public javax.jms.TopicSubscriber createDurableSubscriber(javax.jms.Topic topic,
java.lang.String name)
throws javax.jms.JMSException
- Specified by:
createDurableSubscriber in interface javax.jms.TopicSession
createDurableSubscriber
public javax.jms.TopicSubscriber createDurableSubscriber(javax.jms.Topic topic,
java.lang.String name,
java.lang.String messsageSelecter,
boolean noLocal)
throws javax.jms.JMSException
- Specified by:
createDurableSubscriber in interface javax.jms.TopicSession
setupCreatePublisher
public void setupCreatePublisher(javax.jms.TopicPublisher topicPublisherToReturn)
createPublisher
public javax.jms.TopicPublisher createPublisher(javax.jms.Topic topic)
throws javax.jms.JMSException
- Specified by:
createPublisher in interface javax.jms.TopicSession
setupTopicSubscriber
public void setupTopicSubscriber(javax.jms.TopicSubscriber topicSubscriberToReturn)
createSubscriber
public javax.jms.TopicSubscriber createSubscriber(javax.jms.Topic topic)
throws javax.jms.JMSException
- Specified by:
createSubscriber in interface javax.jms.TopicSession
createSubscriber
public javax.jms.TopicSubscriber createSubscriber(javax.jms.Topic topic,
java.lang.String messsageSelecter,
boolean noLocal)
throws javax.jms.JMSException
- Specified by:
createSubscriber in interface javax.jms.TopicSession
createTemporaryTopic
public javax.jms.TemporaryTopic createTemporaryTopic()
throws javax.jms.JMSException
- Specified by:
createTemporaryTopic in interface javax.jms.TopicSession
createTopic
public javax.jms.Topic createTopic(java.lang.String topicName)
throws javax.jms.JMSException
- Specified by:
createTopic in interface javax.jms.TopicSession
unsubscribe
public void unsubscribe(java.lang.String topicName)
throws javax.jms.JMSException
- Specified by:
unsubscribe in interface javax.jms.TopicSession