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

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

public class EmptyPropertyVerifier
extends java.lang.Object
implements MessageVerifier

A helper class for verifying that a message has no properties

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

Constructor Summary
EmptyPropertyVerifier()
          Construct a new instance.
EmptyPropertyVerifier(boolean provider)
          Construct a new instance
 
Method Summary
 void verify(javax.jms.Message message)
          Verify that a message instance has no properties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyPropertyVerifier

public EmptyPropertyVerifier()
Construct a new instance. An exception will be thrown if the message contains any properties.

EmptyPropertyVerifier

public EmptyPropertyVerifier(boolean provider)
Construct a new instance
Parameters:
provider - if true, the message may contain provider properties i.e those prefixed with JMSX or JMS_
Note that this does not include JMSXGroupID or JMSXGroupSeq properties, which may only be set by the client
Method Detail

verify

public void verify(javax.jms.Message message)
            throws java.lang.Exception
Verify that a message instance has no properties
Specified by:
verify in interface MessageVerifier
Parameters:
message - the message to verify
Throws:
java.lang.Exception - for any error


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