com.mockobjects.jms
public class MockMessageConsumer extends MockObject
Constructor and Description |
---|
MockMessageConsumer() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
MessageListener |
getMessageListener() |
java.lang.String |
getMessageSelector() |
Message |
receive() |
Message |
receive(long timeout) |
Message |
receiveNoWait() |
void |
setExpectedCloseCalls(int callCount) |
void |
setExpectedMessageListener(MessageListener messageListener) |
void |
setExpectedReceiveCalls(int callCount) |
void |
setExpectedTimeout(long timeout) |
void |
setMessageListener(MessageListener messageListener) |
void |
setupExpiresOnTimeout(boolean expiresOnTimeout) |
void |
setupReceivedMessage(Message message) |
void |
setupThrowException(JMSException e) |
notImplemented, notYetImplemented, verify
public void setExpectedMessageListener(MessageListener messageListener)
public void close() throws JMSException
JMSException
public MessageListener getMessageListener() throws JMSException
JMSException
public java.lang.String getMessageSelector() throws JMSException
JMSException
public Message receive() throws JMSException
JMSException
public Message receive(long timeout) throws JMSException
JMSException
public void setExpectedTimeout(long timeout)
public Message receiveNoWait() throws JMSException
JMSException
public void setExpectedCloseCalls(int callCount)
public void setExpectedReceiveCalls(int callCount)
public void setupReceivedMessage(Message message)
public void setupExpiresOnTimeout(boolean expiresOnTimeout)
public void setupThrowException(JMSException e)
public void setMessageListener(MessageListener messageListener) throws JMSException
JMSException
Copyright © 2002 Mock Objects. All Rights Reserved.