|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.exolab.jmscts.core.AbstractMessageVerifier
|
+--org.exolab.jmscts.test.message.util.MessagePopulatorVerifier
A helper class for populating and verifying the content of messages. This class provides no population or verification functionality - that is left to sublasses.
AbstractMessageVerifier,
MessagePopulator, Serialized Form| Constructor Summary | |
MessagePopulatorVerifier()
Construct a new instance. |
|
MessagePopulatorVerifier(java.lang.Class exception)
Construct an instance with the expected exception thrown when methods are invoked |
|
| Method Summary | |
void |
populate(javax.jms.Message message)
Populate a message with data. |
protected byte[] |
populateByteArray(int length,
int start)
Helper to return a byte array of the specified length, populated with an incrementing sequence of values |
void |
populateBytesMessage(javax.jms.BytesMessage message)
Populate a BytesMessage instance with data. |
void |
populateMapMessage(javax.jms.MapMessage message)
Populate a MapMessage instance with data. |
void |
populateMessage(javax.jms.Message message)
Populate a Message instance with data. |
void |
populateObjectMessage(javax.jms.ObjectMessage message)
Populate an ObjectMessage instance with data. |
void |
populateStreamMessage(javax.jms.StreamMessage message)
Populate a StreamMessage instance with data. |
void |
populateTextMessage(javax.jms.TextMessage message)
Populate a TextMessage instance with data. |
| Methods inherited from class org.exolab.jmscts.core.AbstractMessageVerifier |
equal, expect, expect, expect, getExpectedException, getMethods, invoke, invoke, invoke, verify, verifyBytesMessage, verifyMapMessage, verifyMessage, verifyObjectMessage, verifyStreamMessage, verifyTextMessage |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MessagePopulatorVerifier()
public MessagePopulatorVerifier(java.lang.Class exception)
exception - the expected exception type when methods are invoked| Method Detail |
public void populate(javax.jms.Message message)
throws java.lang.Exception
populate in interface MessagePopulatormessage - the message to populatejava.lang.Exception - for any error
public void populateMessage(javax.jms.Message message)
throws java.lang.Exception
message - the message to populatejava.lang.Exception - for any errorUnsupportedOperationException - if invoked
public void populateBytesMessage(javax.jms.BytesMessage message)
throws java.lang.Exception
message - the message to populatejava.lang.Exception - for any errorUnsupportedOperationException - if invoked
public void populateMapMessage(javax.jms.MapMessage message)
throws java.lang.Exception
message - the message to populatejava.lang.Exception - for any errorUnsupportedOperationException - if invoked
public void populateObjectMessage(javax.jms.ObjectMessage message)
throws java.lang.Exception
message - the message to populatejava.lang.Exception - for any errorUnsupportedOperationException - if invoked
public void populateStreamMessage(javax.jms.StreamMessage message)
throws java.lang.Exception
message - the message to populatejava.lang.Exception - for any errorUnsupportedOperationException - if invoked
public void populateTextMessage(javax.jms.TextMessage message)
throws java.lang.Exception
message - the message to populatejava.lang.Exception - for any errorUnsupportedOperationException - if invoked
protected byte[] populateByteArray(int length,
int start)
length - the length of the arraystart - the number to start the sequence at
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||