com.github.smokestack.jms
Class MockTextMessage

java.lang.Object
  extended by com.github.smokestack.jms.MockMessage
      extended by com.github.smokestack.jms.MockTextMessage
All Implemented Interfaces:
Message, TextMessage

public class MockTextMessage
extends MockMessage
implements TextMessage

Author:
gliptak

Field Summary
protected  String text
           
 
Fields inherited from class com.github.smokestack.jms.MockMessage
headers, JMSCorrelationID, JMSDeliveryMode, jmsDestination, JMSDestination, JMSExpiration, JMSMessageID, JMSPriority, JMSRedelivered, jmsReplyTo, JMSReplyTo, JMSTimestamp, JMSType, properties
 
Fields inherited from interface javax.jms.Message
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE
 
Constructor Summary
MockTextMessage()
           
MockTextMessage(String text)
           
 
Method Summary
 String _getText()
           
 void _setText(String text)
           
 String getText()
           
 void setText(String text)
           
 String toString()
           
 
Methods inherited from class com.github.smokestack.jms.MockMessage
_acknowledge, _clearBody, _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, acknowledge, clearBody, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.jms.Message
acknowledge, clearBody, 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
 

Field Detail

text

protected String text
Constructor Detail

MockTextMessage

public MockTextMessage(String text)

MockTextMessage

public MockTextMessage()
Method Detail

getText

public String getText()
               throws JMSException
Specified by:
getText in interface TextMessage
Throws:
JMSException

_getText

public String _getText()
                throws JMSException
Throws:
JMSException

setText

public void setText(String text)
             throws JMSException
Specified by:
setText in interface TextMessage
Throws:
JMSException

_setText

public void _setText(String text)
              throws JMSException
Throws:
JMSException

toString

public String toString()
Overrides:
toString in class MockMessage


Copyright © 2009-2010 Smokestack. All Rights Reserved.