org.exolab.jmscts.test.message.util
Class MessagePropertyVerifier
java.lang.Object
|
+--org.exolab.jmscts.core.AbstractMessageVerifier
|
+--org.exolab.jmscts.test.message.util.MessagePopulatorVerifier
|
+--org.exolab.jmscts.test.message.util.MessagePropertyVerifier
- All Implemented Interfaces:
- MessagePopulator, MessageVerifier, PropertyValues, java.io.Serializable
- public class MessagePropertyVerifier
- extends MessagePopulatorVerifier
- implements PropertyValues
A helper class for exercising the interfaces of messages
- Version:
- $Revision: 1.2 $ $Date: 2004/02/03 07:31:04 $
- Author:
- Tim Anderson
- See Also:
MessagePopulatorVerifier
,
PropertyValues
, Serialized Form
Methods inherited from class org.exolab.jmscts.core.AbstractMessageVerifier |
equal, expect, expect, expect, getExpectedException, invoke, invoke, invoke, verifyBytesMessage, verifyMapMessage, verifyMessage, verifyObjectMessage, verifyStreamMessage, verifyTextMessage |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessagePropertyVerifier
public MessagePropertyVerifier()
- Construct a new instance. No exceptions are expected to be thrown
when invoking methods
MessagePropertyVerifier
public MessagePropertyVerifier(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
populate
public void populate(javax.jms.Message message)
throws java.lang.Exception
- Populate a message's user properties
- Overrides:
populate
in class MessagePopulatorVerifier
- Parameters:
message
- the message to verify- Throws:
java.lang.Exception
- for any error
verify
public void verify(javax.jms.Message message)
throws java.lang.Exception
- Verify a message's user properties, populated by the
populate(javax.jms.Message)
- Overrides:
verify
in class AbstractMessageVerifier
- Parameters:
message
- the message to verify- Throws:
java.lang.Exception
- for any error
getMethods
protected MethodCache getMethods()
- Returns a cache of the
Message
methods
- Overrides:
getMethods
in class AbstractMessageVerifier
- Returns:
- a cache of the
Message
methods
Copyright © 2001-2004 JMS CTS Team. All Rights Reserved.