|
||||||||||
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.EmptyMessageVerifier
A helper class for verifying that a message has no body
AbstractMessageVerifier
, Serialized FormConstructor Summary | |
EmptyMessageVerifier()
Construct a new instance. |
|
EmptyMessageVerifier(java.lang.Class exception)
Construct an instance with the expected exception thrown when methods are invoked |
Method Summary | |
void |
verifyBytesMessage(javax.jms.BytesMessage message)
Verify a BytesMessage instance has no data |
void |
verifyMapMessage(javax.jms.MapMessage message)
Verify a MapMessage instance has no data |
void |
verifyMessage(javax.jms.Message message)
Verify a Message instance has no data. |
void |
verifyObjectMessage(javax.jms.ObjectMessage message)
Verify a MapMessage instance has no data |
void |
verifyStreamMessage(javax.jms.StreamMessage message)
Verify a StreamMessage has no data |
void |
verifyTextMessage(javax.jms.TextMessage message)
Verify a TextMessage instance has no data |
Methods inherited from class org.exolab.jmscts.core.AbstractMessageVerifier |
equal, expect, expect, expect, getExpectedException, getMethods, invoke, invoke, invoke, verify |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EmptyMessageVerifier()
public EmptyMessageVerifier(java.lang.Class exception)
exception
- the expected exception type when methods are invokedMethod Detail |
public void verifyMessage(javax.jms.Message message) throws java.lang.Exception
verifyMessage
in class AbstractMessageVerifier
message
- the message to verifyjava.lang.Exception
- for any errorpublic void verifyBytesMessage(javax.jms.BytesMessage message) throws java.lang.Exception
verifyBytesMessage
in class AbstractMessageVerifier
message
- the message to verifyjava.lang.Exception
- for any errorpublic void verifyMapMessage(javax.jms.MapMessage message) throws java.lang.Exception
verifyMapMessage
in class AbstractMessageVerifier
message
- the message to verifyjava.lang.Exception
- for any errorpublic void verifyObjectMessage(javax.jms.ObjectMessage message) throws java.lang.Exception
verifyObjectMessage
in class AbstractMessageVerifier
message
- the message to verifyjava.lang.Exception
- for any errorpublic void verifyStreamMessage(javax.jms.StreamMessage message) throws java.lang.Exception
verifyStreamMessage
in class AbstractMessageVerifier
message
- the message to verifyjava.lang.Exception
- for any errorpublic void verifyTextMessage(javax.jms.TextMessage message) throws java.lang.Exception
verifyTextMessage
in class AbstractMessageVerifier
message
- the message to verifyjava.lang.Exception
- for any error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |