|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.exolab.jmscts.core.AbstractMessageComparer
A helper class for comparing messages. This class provides no comparison functionality, other than to verify that the supplied messages are of the same type and not the same instance. Comparison is left to subclasses.
Constructor Summary | |
AbstractMessageComparer()
|
Method Summary | |
boolean |
compare(javax.jms.Message message1,
javax.jms.Message message2)
Compare two messages. |
boolean |
compareBytesMessages(javax.jms.BytesMessage message1,
javax.jms.BytesMessage message2)
Compare two BytesMessage instances. |
boolean |
compareMapMessages(javax.jms.MapMessage message1,
javax.jms.MapMessage message2)
Compare two MapMessage instances. |
boolean |
compareMessages(javax.jms.Message message1,
javax.jms.Message message2)
Compare two Message instances. |
boolean |
compareObjectMessages(javax.jms.ObjectMessage message1,
javax.jms.ObjectMessage message2)
Compare two ObjectMessage instances. |
boolean |
compareStreamMessages(javax.jms.StreamMessage message1,
javax.jms.StreamMessage message2)
Compare two StreamMessage instances. |
boolean |
compareTextMessages(javax.jms.TextMessage message1,
javax.jms.TextMessage message2)
Compare two TextMessage instances. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractMessageComparer()
Method Detail |
public boolean compare(javax.jms.Message message1, javax.jms.Message message2) throws java.lang.Exception
compare
in interface MessageComparer
message1
- one message to be tested for equalitymessage2
- the other message to be tested for equalitytrue
if message1 and message2 are equaljava.lang.Exception
- for any errorpublic boolean compareMessages(javax.jms.Message message1, javax.jms.Message message2) throws java.lang.Exception
message1
- one message to be tested for equalitymessage2
- the other message to be tested for equalityfalse
if invokedjava.lang.Exception
- for any errorpublic boolean compareBytesMessages(javax.jms.BytesMessage message1, javax.jms.BytesMessage message2) throws java.lang.Exception
message1
- one message to be tested for equalitymessage2
- the other message to be tested for equalityfalse
if invokedjava.lang.Exception
- for any errorpublic boolean compareMapMessages(javax.jms.MapMessage message1, javax.jms.MapMessage message2) throws java.lang.Exception
message1
- one message to be tested for equalitymessage2
- the other message to be tested for equalityfalse
if invokedjava.lang.Exception
- for any errorpublic boolean compareObjectMessages(javax.jms.ObjectMessage message1, javax.jms.ObjectMessage message2) throws java.lang.Exception
message1
- one message to be tested for equalitymessage2
- the other message to be tested for equalityfalse
if invokedjava.lang.Exception
- for any errorpublic boolean compareStreamMessages(javax.jms.StreamMessage message1, javax.jms.StreamMessage message2) throws java.lang.Exception
message1
- one message to be tested for equalitymessage2
- the other message to be tested for equalityfalse
if invokedjava.lang.Exception
- for any errorpublic boolean compareTextMessages(javax.jms.TextMessage message1, javax.jms.TextMessage message2) throws java.lang.Exception
message1
- one message to be tested for equalitymessage2
- the other message to be tested for equalityfalse
if invokedjava.lang.Exception
- for any error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |