com.hammingweight.hammock.mocks.wireless.messaging
Class MockMultipartMessage
java.lang.Object
com.hammingweight.hammock.AMockObject
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
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 |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
MockMultipartMessage
public MockMultipartMessage()
MockMultipartMessage
public MockMultipartMessage(IInvocationHandler handler)
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