com.hammingweight.hammock.mocks.wireless.messaging
Class MockMultipartMessage

java.lang.Object
  extended by com.hammingweight.hammock.AMockObject
      extended by com.hammingweight.hammock.mocks.wireless.messaging.MockMultipartMessage
All Implemented Interfaces:
IHammockExceptionErrors, IMockObject, javax.wireless.messaging.Message, javax.wireless.messaging.MultipartMessage

public class MockMultipartMessage
extends AMockObject
implements javax.wireless.messaging.MultipartMessage


Field Summary
static MockMethod MTHD_ADD_ADDRESS_$_STRING_STRING
           
static MockMethod MTHD_ADD_MESSAGE_PART_$_MESSAGEPART
           
static MockMethod MTHD_GET_ADDRESS
           
static MockMethod MTHD_GET_ADDRESSES_$_STRING
           
static MockMethod MTHD_GET_HEADER_$_STRING
           
static MockMethod MTHD_GET_MESSAGE_PART_$_STRING
           
static MockMethod MTHD_GET_MESSAGE_PARTS
           
static MockMethod MTHD_GET_START_CONTENT_ID
           
static MockMethod MTHD_GET_SUBJECT
           
static MockMethod MTHD_GET_TIMESTAMP
           
static MockMethod MTHD_REMOVE_ADDRESS_$_STRING_STRING
           
static MockMethod MTHD_REMOVE_ADDRESSES
           
static MockMethod MTHD_REMOVE_ADDRESSES_$_STRING
           
static MockMethod MTHD_REMOVE_MESSAGE_PART_$_MESSAGEPART
           
static MockMethod MTHD_REMOVE_MESSAGE_PART_ID_$_STRING
           
static MockMethod MTHD_REMOVE_MESSAGE_PART_LOCATION_$_STRING
           
static MockMethod MTHD_SET_ADDRESS_$_STRING
           
static MockMethod MTHD_SET_HEADER_$_STRING_STRING
           
static MockMethod MTHD_SET_START_CONTENT_ID_$_STRING
           
static MockMethod MTHD_SET_SUBJECT_$_STRING
           
 
Fields inherited from interface com.hammingweight.hammock.IHammockExceptionErrors
ARGUMENT_MATCHER_ALREADY_SET, CANT_SET_VOID_RETURN_VALUE, CLASS_IS_NOT_THROWABLE, DOES_NOT_SUBCLASS_MOCK_OBJECT, HANDLER_NOT_SET, INCORRECT_MOCK_OBJECT, INCORRECT_RETURN_CLASS, INCORRECT_THROWABLE_CLASS, METHOD_CANNOT_BE_EVALUATED, METHOD_INVOKED_OUT_OF_SEQUENCE, METHOD_INVOKED_TOO_MANY_TIMES, METHOD_INVOKED_UNEXPECTED_NUMBER_OF_TIMES, NO_RETURN_VALUE, NO_RETURN_VALUE_SET, NUM_INVOCATIONS_ALREADY_SET, RETURN_VALUE_ALREADY_SET, WRONG_ARGUMENT_CLASS, WRONG_NUMBER_OF_ARGS
 
Constructor Summary
MockMultipartMessage()
           
MockMultipartMessage(IInvocationHandler handler)
           
 
Method Summary
 boolean addAddress(java.lang.String arg0, java.lang.String arg1)
           
 void addMessagePart(javax.wireless.messaging.MessagePart arg0)
           
 java.lang.String getAddress()
           
 java.lang.String[] getAddresses(java.lang.String arg0)
           
 java.lang.String getHeader(java.lang.String arg0)
           
 javax.wireless.messaging.MessagePart getMessagePart(java.lang.String arg0)
           
 javax.wireless.messaging.MessagePart[] getMessageParts()
           
 java.lang.String getStartContentId()
           
 java.lang.String getSubject()
           
 java.util.Date getTimestamp()
           
 boolean removeAddress(java.lang.String arg0, java.lang.String arg1)
           
 void removeAddresses()
           
 void removeAddresses(java.lang.String arg0)
           
 boolean removeMessagePart(javax.wireless.messaging.MessagePart arg0)
           
 boolean removeMessagePartId(java.lang.String arg0)
           
 boolean removeMessagePartLocation(java.lang.String arg0)
           
 void setAddress(java.lang.String arg0)
           
 void setHeader(java.lang.String arg0, java.lang.String arg1)
           
 void setStartContentId(java.lang.String arg0)
           
 void setSubject(java.lang.String arg0)
           
 
Methods inherited from class com.hammingweight.hammock.AMockObject
assertReturnNotNull, getInvocationHandler, setInvocationHandler
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MTHD_ADD_ADDRESS_$_STRING_STRING

public static final MockMethod MTHD_ADD_ADDRESS_$_STRING_STRING

MTHD_ADD_MESSAGE_PART_$_MESSAGEPART

public static final MockMethod MTHD_ADD_MESSAGE_PART_$_MESSAGEPART

MTHD_GET_ADDRESS

public static final MockMethod MTHD_GET_ADDRESS

MTHD_GET_ADDRESSES_$_STRING

public static final MockMethod MTHD_GET_ADDRESSES_$_STRING

MTHD_GET_HEADER_$_STRING

public static final MockMethod MTHD_GET_HEADER_$_STRING

MTHD_GET_MESSAGE_PARTS

public static final MockMethod MTHD_GET_MESSAGE_PARTS

MTHD_GET_MESSAGE_PART_$_STRING

public static final MockMethod MTHD_GET_MESSAGE_PART_$_STRING

MTHD_GET_START_CONTENT_ID

public static final MockMethod MTHD_GET_START_CONTENT_ID

MTHD_GET_SUBJECT

public static final MockMethod MTHD_GET_SUBJECT

MTHD_GET_TIMESTAMP

public static final MockMethod MTHD_GET_TIMESTAMP

MTHD_REMOVE_ADDRESSES

public static final MockMethod MTHD_REMOVE_ADDRESSES

MTHD_REMOVE_ADDRESSES_$_STRING

public static final MockMethod MTHD_REMOVE_ADDRESSES_$_STRING

MTHD_REMOVE_ADDRESS_$_STRING_STRING

public static final MockMethod MTHD_REMOVE_ADDRESS_$_STRING_STRING

MTHD_REMOVE_MESSAGE_PART_$_MESSAGEPART

public static final MockMethod MTHD_REMOVE_MESSAGE_PART_$_MESSAGEPART

MTHD_REMOVE_MESSAGE_PART_ID_$_STRING

public static final MockMethod MTHD_REMOVE_MESSAGE_PART_ID_$_STRING

MTHD_REMOVE_MESSAGE_PART_LOCATION_$_STRING

public static final MockMethod MTHD_REMOVE_MESSAGE_PART_LOCATION_$_STRING

MTHD_SET_ADDRESS_$_STRING

public static final MockMethod MTHD_SET_ADDRESS_$_STRING

MTHD_SET_HEADER_$_STRING_STRING

public static final MockMethod MTHD_SET_HEADER_$_STRING_STRING

MTHD_SET_START_CONTENT_ID_$_STRING

public static final MockMethod MTHD_SET_START_CONTENT_ID_$_STRING

MTHD_SET_SUBJECT_$_STRING

public static final MockMethod MTHD_SET_SUBJECT_$_STRING
Constructor Detail

MockMultipartMessage

public MockMultipartMessage()

MockMultipartMessage

public MockMultipartMessage(IInvocationHandler handler)
Method Detail

addAddress

public boolean addAddress(java.lang.String arg0,
                          java.lang.String arg1)
Specified by:
addAddress in interface javax.wireless.messaging.MultipartMessage

addMessagePart

public void addMessagePart(javax.wireless.messaging.MessagePart arg0)
                    throws javax.wireless.messaging.SizeExceededException
Specified by:
addMessagePart in interface javax.wireless.messaging.MultipartMessage
Throws:
javax.wireless.messaging.SizeExceededException

getAddress

public java.lang.String getAddress()
Specified by:
getAddress in interface javax.wireless.messaging.Message
Specified by:
getAddress in interface javax.wireless.messaging.MultipartMessage

getAddresses

public java.lang.String[] getAddresses(java.lang.String arg0)
Specified by:
getAddresses in interface javax.wireless.messaging.MultipartMessage

getHeader

public java.lang.String getHeader(java.lang.String arg0)
Specified by:
getHeader in interface javax.wireless.messaging.MultipartMessage

getMessageParts

public javax.wireless.messaging.MessagePart[] getMessageParts()
Specified by:
getMessageParts in interface javax.wireless.messaging.MultipartMessage

getMessagePart

public javax.wireless.messaging.MessagePart getMessagePart(java.lang.String arg0)
Specified by:
getMessagePart in interface javax.wireless.messaging.MultipartMessage

getStartContentId

public java.lang.String getStartContentId()
Specified by:
getStartContentId in interface javax.wireless.messaging.MultipartMessage

getSubject

public java.lang.String getSubject()
Specified by:
getSubject in interface javax.wireless.messaging.MultipartMessage

getTimestamp

public java.util.Date getTimestamp()
Specified by:
getTimestamp in interface javax.wireless.messaging.Message

removeAddresses

public void removeAddresses()
Specified by:
removeAddresses in interface javax.wireless.messaging.MultipartMessage

removeAddresses

public void removeAddresses(java.lang.String arg0)
Specified by:
removeAddresses in interface javax.wireless.messaging.MultipartMessage

removeAddress

public boolean removeAddress(java.lang.String arg0,
                             java.lang.String arg1)
Specified by:
removeAddress in interface javax.wireless.messaging.MultipartMessage

removeMessagePart

public boolean removeMessagePart(javax.wireless.messaging.MessagePart arg0)
Specified by:
removeMessagePart in interface javax.wireless.messaging.MultipartMessage

removeMessagePartId

public boolean removeMessagePartId(java.lang.String arg0)
Specified by:
removeMessagePartId in interface javax.wireless.messaging.MultipartMessage

removeMessagePartLocation

public boolean removeMessagePartLocation(java.lang.String arg0)
Specified by:
removeMessagePartLocation in interface javax.wireless.messaging.MultipartMessage

setAddress

public void setAddress(java.lang.String arg0)
Specified by:
setAddress in interface javax.wireless.messaging.Message
Specified by:
setAddress in interface javax.wireless.messaging.MultipartMessage

setHeader

public void setHeader(java.lang.String arg0,
                      java.lang.String arg1)
Specified by:
setHeader in interface javax.wireless.messaging.MultipartMessage

setStartContentId

public void setStartContentId(java.lang.String arg0)
Specified by:
setStartContentId in interface javax.wireless.messaging.MultipartMessage

setSubject

public void setSubject(java.lang.String arg0)
Specified by:
setSubject in interface javax.wireless.messaging.MultipartMessage