Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.mockobjects.jms
Class MockTopicSession  view MockTopicSession download MockTopicSession.java

java.lang.Object
  extended bycom.mockobjects.MockObject
      extended bycom.mockobjects.jms.MockSession
          extended bycom.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


Field Summary
private  com.mockobjects.ExpectationCounter createTopicCalls
           
private  com.mockobjects.ExpectationValue topicName
           
private  com.mockobjects.ReturnValue topicPublisherToReturn
           
private  com.mockobjects.ReturnValue topicSubscriberToReturn
           
private  com.mockobjects.ReturnValue topicToReturn
           
 
Fields inherited from class com.mockobjects.jms.MockSession
myCloseCalls, myCreateTextMessageCalls
 
Fields inherited from interface javax.jms.Session
AUTO_ACKNOWLEDGE, CLIENT_ACKNOWLEDGE, DUPS_OK_ACKNOWLEDGE, SESSION_TRANSACTED
 
Constructor Summary
MockTopicSession()
           
 
Method Summary
 javax.jms.TopicSubscriber createDurableSubscriber(javax.jms.Topic topic, java.lang.String name)
           
 javax.jms.TopicSubscriber createDurableSubscriber(javax.jms.Topic topic, java.lang.String name, java.lang.String messsageSelecter, boolean noLocal)
           
 javax.jms.TopicPublisher createPublisher(javax.jms.Topic topic)
           
 javax.jms.TopicSubscriber createSubscriber(javax.jms.Topic topic)
           
 javax.jms.TopicSubscriber createSubscriber(javax.jms.Topic topic, java.lang.String messsageSelecter, boolean noLocal)
           
 javax.jms.TemporaryTopic createTemporaryTopic()
           
 javax.jms.Topic createTopic(java.lang.String topicName)
           
 void setExpectedTopicName(java.lang.String topicName)
           
 void setupCreatePublisher(javax.jms.TopicPublisher topicPublisherToReturn)
           
 void setupCreateTopic(javax.jms.Topic topicToReturn)
           
 void setupCreateTopicCalls(int createTopicCalls)
           
 void setupTopicSubscriber(javax.jms.TopicSubscriber topicSubscriberToReturn)
           
 void unsubscribe(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, throwExceptionIfAny
 
Methods inherited from class com.mockobjects.MockObject
assertEquals, assertEquals, assertTrue, fail, notImplemented, notYetImplemented, notYetImplemented, verify
 
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
 

Field Detail

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
Constructor Detail

MockTopicSession

public MockTopicSession()
Method Detail

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