org.exolab.jmscts.test.message.util
Class EmptyMessageVerifier

java.lang.Object
  |
  +--org.exolab.jmscts.core.AbstractMessageVerifier
        |
        +--org.exolab.jmscts.test.message.util.EmptyMessageVerifier
All Implemented Interfaces:
MessageVerifier, java.io.Serializable

public class EmptyMessageVerifier
extends AbstractMessageVerifier

A helper class for verifying that a message has no body

Version:
$Revision: 1.2 $ $Date: 2004/02/03 07:31:04 $
Author:
Tim Anderson
See Also:
AbstractMessageVerifier, Serialized Form

Constructor 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

EmptyMessageVerifier

public EmptyMessageVerifier()
Construct a new instance. No exceptions are expected to be thrown when invoking methods

EmptyMessageVerifier

public EmptyMessageVerifier(java.lang.Class exception)
Construct an instance with the expected exception thrown when methods are invoked
Parameters:
exception - the expected exception type when methods are invoked
Method Detail

verifyMessage

public void verifyMessage(javax.jms.Message message)
                   throws java.lang.Exception
Verify a Message instance has no data. This method is a no-op, as a Message instance has no body
Overrides:
verifyMessage in class AbstractMessageVerifier
Parameters:
message - the message to verify
Throws:
java.lang.Exception - for any error

verifyBytesMessage

public void verifyBytesMessage(javax.jms.BytesMessage message)
                        throws java.lang.Exception
Verify a BytesMessage instance has no data
Overrides:
verifyBytesMessage in class AbstractMessageVerifier
Parameters:
message - the message to verify
Throws:
java.lang.Exception - for any error

verifyMapMessage

public void verifyMapMessage(javax.jms.MapMessage message)
                      throws java.lang.Exception
Verify a MapMessage instance has no data
Overrides:
verifyMapMessage in class AbstractMessageVerifier
Parameters:
message - the message to verify
Throws:
java.lang.Exception - for any error

verifyObjectMessage

public void verifyObjectMessage(javax.jms.ObjectMessage message)
                         throws java.lang.Exception
Verify a MapMessage instance has no data
Overrides:
verifyObjectMessage in class AbstractMessageVerifier
Parameters:
message - the message to verify
Throws:
java.lang.Exception - for any error

verifyStreamMessage

public void verifyStreamMessage(javax.jms.StreamMessage message)
                         throws java.lang.Exception
Verify a StreamMessage has no data
Overrides:
verifyStreamMessage in class AbstractMessageVerifier
Parameters:
message - the message to verify
Throws:
java.lang.Exception - for any error

verifyTextMessage

public void verifyTextMessage(javax.jms.TextMessage message)
                       throws java.lang.Exception
Verify a TextMessage instance has no data
Overrides:
verifyTextMessage in class AbstractMessageVerifier
Parameters:
message - the message to verify
Throws:
java.lang.Exception - for any error


Copyright © 2001-2004 JMS CTS Team. All Rights Reserved.