com.mockobjects.jms
public class MockConnection extends MockObject implements Connection
Method Summary | |
---|---|
void | close() |
ConnectionConsumer | createConnectionConsumer(Destination destination, String messageSelector, ServerSessionPool sessionPool, int maxMessages) |
ConnectionConsumer | createDurableConnectionConsumer(Topic topic, String subscriptionName, String messageSelector, ServerSessionPool sessionPool, int maxMessages) |
Session | createSession(boolean transacted, int acknowledgeMode) |
String | getClientID() |
ExceptionListener | getExceptionListener() |
ConnectionMetaData | getMetaData() |
void | setClientID(String clientID) |
void | setExceptionListener(ExceptionListener listener) |
void | setExpectedCloseCalls(int callCount) |
void | setExpectedStartCalls(int callCount) |
void | setExpectedStopCalls(int callCount) |
void | setupThrowException(JMSException e) |
void | start() |
void | stop() |