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

Quick Search    Search Deep

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

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

public class MockMapMessage
extends MockMessage
implements javax.jms.MapMessage

MockMapMessage

Version:
$Revision: 1.1 $

Field Summary
private  com.mockobjects.ExpectationSet myObjectProperties
           
 
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
MockMapMessage()
           
 
Method Summary
 boolean getBoolean(java.lang.String aKey)
           
 byte getByte(java.lang.String aKey)
           
 byte[] getBytes(java.lang.String aKey)
           
 char getChar(java.lang.String aKey)
           
 double getDouble(java.lang.String aKey)
           
 float getFloat(java.lang.String aKey)
           
 int getInt(java.lang.String aKey)
           
 long getLong(java.lang.String aKey)
           
 java.util.Enumeration getMapNames()
           
 java.lang.Object getObject(java.lang.String aKey)
           
 short getShort(java.lang.String aKey)
           
 java.lang.String getString(java.lang.String aKey)
           
 boolean itemExists(java.lang.String aKey)
           
 void setBoolean(java.lang.String aKey, boolean p)
           
 void setByte(java.lang.String aKey, byte p)
           
 void setBytes(java.lang.String aKey, byte[] p)
           
 void setBytes(java.lang.String aKey, byte[] p, int n, int n1)
           
 void setChar(java.lang.String aKey, char p)
           
 void setDouble(java.lang.String aKey, double p)
           
 void setExpectedObjectProperty(java.lang.String aKey, java.lang.Object anObject)
           
 void setFloat(java.lang.String aKey, float p)
           
 void setInt(java.lang.String aKey, int p)
           
 void setLong(java.lang.String aKey, long p)
           
 void setObject(java.lang.String aKey, java.lang.Object p)
           
 void setObjectProperty(java.lang.String aKey, java.lang.Object anObject)
           
 void setShort(java.lang.String aKey, short p)
           
 void setString(java.lang.String aKey, java.lang.String aKey1)
           
 
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, 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, setShortProperty, setStringProperty
 

Field Detail

myObjectProperties

private com.mockobjects.ExpectationSet myObjectProperties
Constructor Detail

MockMapMessage

public MockMapMessage()
Method Detail

getBoolean

public boolean getBoolean(java.lang.String aKey)
                   throws javax.jms.JMSException
Specified by:
getBoolean in interface javax.jms.MapMessage

getByte

public byte getByte(java.lang.String aKey)
             throws javax.jms.JMSException
Specified by:
getByte in interface javax.jms.MapMessage

getBytes

public byte[] getBytes(java.lang.String aKey)
                throws javax.jms.JMSException
Specified by:
getBytes in interface javax.jms.MapMessage

getChar

public char getChar(java.lang.String aKey)
             throws javax.jms.JMSException
Specified by:
getChar in interface javax.jms.MapMessage

getDouble

public double getDouble(java.lang.String aKey)
                 throws javax.jms.JMSException
Specified by:
getDouble in interface javax.jms.MapMessage

getFloat

public float getFloat(java.lang.String aKey)
               throws javax.jms.JMSException
Specified by:
getFloat in interface javax.jms.MapMessage

getInt

public int getInt(java.lang.String aKey)
           throws javax.jms.JMSException
Specified by:
getInt in interface javax.jms.MapMessage

getLong

public long getLong(java.lang.String aKey)
             throws javax.jms.JMSException
Specified by:
getLong in interface javax.jms.MapMessage

getMapNames

public java.util.Enumeration getMapNames()
                                  throws javax.jms.JMSException
Specified by:
getMapNames in interface javax.jms.MapMessage

getObject

public java.lang.Object getObject(java.lang.String aKey)
                           throws javax.jms.JMSException
Specified by:
getObject in interface javax.jms.MapMessage

getShort

public short getShort(java.lang.String aKey)
               throws javax.jms.JMSException
Specified by:
getShort in interface javax.jms.MapMessage

getString

public java.lang.String getString(java.lang.String aKey)
                           throws javax.jms.JMSException
Specified by:
getString in interface javax.jms.MapMessage

itemExists

public boolean itemExists(java.lang.String aKey)
                   throws javax.jms.JMSException
Specified by:
itemExists in interface javax.jms.MapMessage

setBoolean

public void setBoolean(java.lang.String aKey,
                       boolean p)
                throws javax.jms.JMSException
Specified by:
setBoolean in interface javax.jms.MapMessage

setByte

public void setByte(java.lang.String aKey,
                    byte p)
             throws javax.jms.JMSException
Specified by:
setByte in interface javax.jms.MapMessage

setBytes

public void setBytes(java.lang.String aKey,
                     byte[] p)
              throws javax.jms.JMSException
Specified by:
setBytes in interface javax.jms.MapMessage

setBytes

public void setBytes(java.lang.String aKey,
                     byte[] p,
                     int n,
                     int n1)
              throws javax.jms.JMSException
Specified by:
setBytes in interface javax.jms.MapMessage

setChar

public void setChar(java.lang.String aKey,
                    char p)
             throws javax.jms.JMSException
Specified by:
setChar in interface javax.jms.MapMessage

setDouble

public void setDouble(java.lang.String aKey,
                      double p)
               throws javax.jms.JMSException
Specified by:
setDouble in interface javax.jms.MapMessage

setFloat

public void setFloat(java.lang.String aKey,
                     float p)
              throws javax.jms.JMSException
Specified by:
setFloat in interface javax.jms.MapMessage

setInt

public void setInt(java.lang.String aKey,
                   int p)
            throws javax.jms.JMSException
Specified by:
setInt in interface javax.jms.MapMessage

setLong

public void setLong(java.lang.String aKey,
                    long p)
             throws javax.jms.JMSException
Specified by:
setLong in interface javax.jms.MapMessage

setObject

public void setObject(java.lang.String aKey,
                      java.lang.Object p)
               throws javax.jms.JMSException
Specified by:
setObject in interface javax.jms.MapMessage

setObjectProperty

public void setObjectProperty(java.lang.String aKey,
                              java.lang.Object anObject)
Specified by:
setObjectProperty in interface javax.jms.Message
Overrides:
setObjectProperty in class MockMessage

setShort

public void setShort(java.lang.String aKey,
                     short p)
              throws javax.jms.JMSException
Specified by:
setShort in interface javax.jms.MapMessage

setString

public void setString(java.lang.String aKey,
                      java.lang.String aKey1)
               throws javax.jms.JMSException
Specified by:
setString in interface javax.jms.MapMessage

setExpectedObjectProperty

public void setExpectedObjectProperty(java.lang.String aKey,
                                      java.lang.Object anObject)