Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.mockobjects.jms
Class MockTextMessage  view MockTextMessage download MockTextMessage.java

java.lang.Object
  extended bycom.mockobjects.MockObject
      extended bycom.mockobjects.jms.MockMessage
          extended bycom.mockobjects.jms.MockTextMessage
All Implemented Interfaces:
javax.jms.Message, javax.jms.TextMessage, com.mockobjects.Verifiable

public class MockTextMessage
extends MockMessage
implements javax.jms.TextMessage


Field Summary
private  com.mockobjects.ExpectationValue myExpectedText
           
private  com.mockobjects.ReturnValue myText
           
 
Fields inherited from class com.mockobjects.jms.MockMessage
myAcknowledgeCount, myJMSReplyTo, mySetJMSCorrelationIDCalls
 
Fields inherited from interface javax.jms.Message
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE
 
Constructor Summary
MockTextMessage()
           
 
Method Summary
 java.lang.String getText()
           
 void setExpectedText(java.lang.String text)
           
 void setText(java.lang.String text)
           
 void setupGetText(java.lang.String text)
           
 
Methods inherited from class com.mockobjects.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, setExpectedAcknowledgeCalls, setExpectedJMSReplyTo, setExpectedSetJMSCorrelationIDCalls, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setShortProperty, setStringProperty, setupJMSMessageID, setupThrowException, throwExceptionIfAny
 
Methods inherited from class com.mockobjects.MockObject
assertEquals, assertEquals, assertTrue, fail, notImplemented, notYetImplemented, notYetImplemented, verify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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

myExpectedText

private final com.mockobjects.ExpectationValue myExpectedText

myText

private final com.mockobjects.ReturnValue myText
Constructor Detail

MockTextMessage

public MockTextMessage()
Method Detail

setText

public void setText(java.lang.String text)
Specified by:
setText in interface javax.jms.TextMessage

getText

public java.lang.String getText()
Specified by:
getText in interface javax.jms.TextMessage

setupGetText

public void setupGetText(java.lang.String text)

setExpectedText

public void setExpectedText(java.lang.String text)