com.mockobjects.jms
Class MockSession
java.lang.Object
com.mockobjects.MockObject
com.mockobjects.jms.MockSession
- All Implemented Interfaces:
- Verifiable
- Direct Known Subclasses:
- MockQueueSession, MockTopicSession
- public class MockSession
- extends MockObject
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockSession
public MockSession()
setupCreateObjectMessage
public void setupCreateObjectMessage(ObjectMessage objectMessageToReturn)
createObjectMessage
public ObjectMessage createObjectMessage()
throws JMSException
- Throws:
JMSException
createObjectMessage
public ObjectMessage createObjectMessage(java.io.Serializable object)
throws JMSException
- Throws:
JMSException
rollback
public void rollback()
throws JMSException
- Throws:
JMSException
setupTextMessage
public void setupTextMessage(TextMessage textMessage)
createBytesMessage
public BytesMessage createBytesMessage()
throws JMSException
- Throws:
JMSException
createMapMessage
public MapMessage createMapMessage()
throws JMSException
- Throws:
JMSException
createMessage
public Message createMessage()
throws JMSException
- Throws:
JMSException
getTransacted
public boolean getTransacted()
throws JMSException
- Throws:
JMSException
recover
public void recover()
throws JMSException
- Throws:
JMSException
close
public void close()
throws JMSException
- Throws:
JMSException
commit
public void commit()
throws JMSException
- Throws:
JMSException
setMessageListener
public void setMessageListener(MessageListener listener)
throws JMSException
- Throws:
JMSException
setExpectedCloseCalls
public void setExpectedCloseCalls(int callCount)
setExpectedCreateTextMessageCalls
public void setExpectedCreateTextMessageCalls(int callCount)
createStreamMessage
public StreamMessage createStreamMessage()
throws JMSException
- Throws:
JMSException
createTextMessage
public TextMessage createTextMessage()
throws JMSException
- Throws:
JMSException
createTextMessage
public TextMessage createTextMessage(java.lang.String text)
throws JMSException
- Throws:
JMSException
getMessageListener
public MessageListener getMessageListener()
throws JMSException
- Throws:
JMSException
run
public void run()
setupThrowException
public void setupThrowException(JMSException e)
Copyright © 2002 Mock Objects. All Rights Reserved.