|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mockrunner.mock.jms.MockDestination com.mockrunner.mock.jms.MockQueue
public class MockQueue
Mock implementation of JMS Queue
.
Constructor Summary | |
---|---|
MockQueue(java.lang.String name)
|
Method Summary | |
---|---|
void |
addMessage(javax.jms.Message message)
Adds a message to this Queue that will
be propagated to the corresponding receiver. |
java.lang.String |
getQueueName()
|
Methods inherited from class com.mockrunner.mock.jms.MockDestination |
---|
acknowledgeMessage, addCurrentMessage, addReceivedMessage, addSession, clear, getCurrentMessageList, getMatchingMessage, getMessage, getReceivedMessageList, isEmpty, loadMessage, removeSession, reset, sessionSet |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.jms.Queue |
---|
toString |
Constructor Detail |
---|
public MockQueue(java.lang.String name)
Method Detail |
---|
public java.lang.String getQueueName() throws javax.jms.JMSException
getQueueName
in interface javax.jms.Queue
javax.jms.JMSException
public void addMessage(javax.jms.Message message) throws javax.jms.JMSException
Queue
that will
be propagated to the corresponding receiver. Only one
receiver will get the message. The order is not
predictable.
addMessage
in class MockDestination
message
- the message
javax.jms.JMSException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |