test.mock.mail
Class MockMessage
java.lang.Object
javax.mail.Message
test.mock.mail.MockMessage
- All Implemented Interfaces:
- javax.mail.Part
- public class MockMessage
- extends javax.mail.Message
A dummy Message implementation for testing.
| Nested classes inherited from class javax.mail.Message |
javax.mail.Message.RecipientType |
| Fields inherited from class javax.mail.Message |
expunged, folder, msgnum, session |
| Fields inherited from interface javax.mail.Part |
ATTACHMENT, INLINE |
| Methods inherited from class javax.mail.Message |
addRecipient, getAllRecipients, getFolder, getMessageNumber, getReplyTo, isExpunged, isSet, match, setExpunged, setFlag, setMessageNumber, setRecipient, setReplyTo |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockMessage
public MockMessage()
addFrom
public void addFrom(javax.mail.Address[] addresses)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
addHeader
public void addHeader(java.lang.String string,
java.lang.String string1)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
addRecipients
public void addRecipients(javax.mail.Message.RecipientType recipientType,
javax.mail.Address[] addresses)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
getAllHeaders
public java.util.Enumeration getAllHeaders()
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
getContent
public java.lang.Object getContent()
throws java.io.IOException,
javax.mail.MessagingException
- Throws:
java.io.IOException
javax.mail.MessagingException
getContentType
public java.lang.String getContentType()
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
getDataHandler
public javax.activation.DataHandler getDataHandler()
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
getDescription
public java.lang.String getDescription()
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
getDisposition
public java.lang.String getDisposition()
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
getFileName
public java.lang.String getFileName()
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
getFlags
public javax.mail.Flags getFlags()
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
getFrom
public javax.mail.Address[] getFrom()
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
getHeader
public java.lang.String[] getHeader(java.lang.String string)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
getInputStream
public java.io.InputStream getInputStream()
throws java.io.IOException,
javax.mail.MessagingException
- Throws:
java.io.IOException
javax.mail.MessagingException
getLineCount
public int getLineCount()
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
getMatchingHeaders
public java.util.Enumeration getMatchingHeaders(java.lang.String[] strings)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
getNonMatchingHeaders
public java.util.Enumeration getNonMatchingHeaders(java.lang.String[] strings)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
getReceivedDate
public java.util.Date getReceivedDate()
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
getRecipients
public javax.mail.Address[] getRecipients(javax.mail.Message.RecipientType recipientType)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
getSentDate
public java.util.Date getSentDate()
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
getSize
public int getSize()
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
getSubject
public java.lang.String getSubject()
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
isMimeType
public boolean isMimeType(java.lang.String string)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
removeHeader
public void removeHeader(java.lang.String string)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
reply
public javax.mail.Message reply(boolean b)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
saveChanges
public void saveChanges()
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
setContent
public void setContent(javax.mail.Multipart multipart)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
setContent
public void setContent(java.lang.Object object,
java.lang.String string)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
setDataHandler
public void setDataHandler(javax.activation.DataHandler dataHandler)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
setDescription
public void setDescription(java.lang.String string)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
setDisposition
public void setDisposition(java.lang.String string)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
setFileName
public void setFileName(java.lang.String string)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
setFlags
public void setFlags(javax.mail.Flags flags,
boolean b)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
setFrom
public void setFrom()
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
setFrom
public void setFrom(javax.mail.Address address)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
setHeader
public void setHeader(java.lang.String string,
java.lang.String string1)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
setRecipients
public void setRecipients(javax.mail.Message.RecipientType recipientType,
javax.mail.Address[] addresses)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
setSentDate
public void setSentDate(java.util.Date date)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
setSubject
public void setSubject(java.lang.String string)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
setText
public void setText(java.lang.String string)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
writeTo
public void writeTo(java.io.OutputStream outputStream)
throws java.io.IOException,
javax.mail.MessagingException
- Throws:
java.io.IOException
javax.mail.MessagingException
Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.