com.mockrunner.mock.jms
Class MockObjectMessage

java.lang.Object
  extended by com.mockrunner.mock.jms.MockMessage
      extended by com.mockrunner.mock.jms.MockObjectMessage
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, javax.jms.Message, javax.jms.ObjectMessage

public class MockObjectMessage
extends MockMessage
implements javax.jms.ObjectMessage

Mock implementation of JMS ObjectMessage.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface javax.jms.Message
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE
 
Constructor Summary
MockObjectMessage()
           
MockObjectMessage(java.io.Serializable object)
           
 
Method Summary
 void clearBody()
           
 java.lang.Object clone()
           
 boolean equals(java.lang.Object otherObject)
          Calls the equals method of the underlying object.
 java.io.Serializable getObject()
           
 int hashCode()
           
 void setObject(java.io.Serializable object)
           
 java.lang.String toString()
           
 
Methods inherited from class com.mockrunner.mock.jms.MockMessage
acknowledge, clearProperties, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, isAcknowledged, isInWriteMode, propertyExists, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setReadOnly, setReadOnlyProperties, setShortProperty, setStringProperty
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.jms.Message
acknowledge, clearProperties, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, propertyExists, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setShortProperty, setStringProperty
 

Constructor Detail

MockObjectMessage

public MockObjectMessage()

MockObjectMessage

public MockObjectMessage(java.io.Serializable object)
Method Detail

setObject

public void setObject(java.io.Serializable object)
               throws javax.jms.JMSException
Specified by:
setObject in interface javax.jms.ObjectMessage
Throws:
javax.jms.JMSException

getObject

public java.io.Serializable getObject()
                               throws javax.jms.JMSException
Specified by:
getObject in interface javax.jms.ObjectMessage
Throws:
javax.jms.JMSException

clearBody

public void clearBody()
               throws javax.jms.JMSException
Specified by:
clearBody in interface javax.jms.Message
Overrides:
clearBody in class MockMessage
Throws:
javax.jms.JMSException

equals

public boolean equals(java.lang.Object otherObject)
Calls the equals method of the underlying object. If both objects are null, this method returns true.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

clone

public java.lang.Object clone()
Overrides:
clone in class MockMessage

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object