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

Quick Search    Search Deep

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

java.lang.Object
  extended bycom.mockobjects.MockObject
      extended bycom.mockobjects.jms.MockConnection
          extended bycom.mockobjects.jms.MockQueueConnection
All Implemented Interfaces:
javax.jms.Connection, javax.jms.QueueConnection, com.mockobjects.Verifiable

public class MockQueueConnection
extends MockConnection
implements javax.jms.QueueConnection


Field Summary
private  com.mockobjects.ReturnValue myQueueSession
           
 
Fields inherited from class com.mockobjects.jms.MockConnection
myCloseCalls, myStartCalls, myStopCalls
 
Constructor Summary
MockQueueConnection()
           
 
Method Summary
 javax.jms.ConnectionConsumer createConnectionConsumer(javax.jms.Queue queue, java.lang.String messageSelector, javax.jms.ServerSessionPool sessionPool, int mexMessages)
           
 javax.jms.QueueSession createQueueSession(boolean transacted, int acknowledgeMode)
           
 void setupQueueSession(javax.jms.QueueSession queueSession)
           
 
Methods inherited from class com.mockobjects.jms.MockConnection
close, getClientID, getExceptionListener, getMetaData, setClientID, setExceptionListener, setExpectedCloseCalls, setExpectedStartCalls, setExpectedStopCalls, setupThrowException, start, stop, 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.Connection
close, createConnectionConsumer, createDurableConnectionConsumer, createSession, getClientID, getExceptionListener, getMetaData, setClientID, setExceptionListener, start, stop
 

Field Detail

myQueueSession

private final com.mockobjects.ReturnValue myQueueSession
Constructor Detail

MockQueueConnection

public MockQueueConnection()
Method Detail

createConnectionConsumer

public javax.jms.ConnectionConsumer createConnectionConsumer(javax.jms.Queue queue,
                                                             java.lang.String messageSelector,
                                                             javax.jms.ServerSessionPool sessionPool,
                                                             int mexMessages)
                                                      throws javax.jms.JMSException
Specified by:
createConnectionConsumer in interface javax.jms.QueueConnection

createQueueSession

public javax.jms.QueueSession createQueueSession(boolean transacted,
                                                 int acknowledgeMode)
                                          throws javax.jms.JMSException
Specified by:
createQueueSession in interface javax.jms.QueueConnection

setupQueueSession

public void setupQueueSession(javax.jms.QueueSession queueSession)