Package com.mockobjects.mail.internet
Class MockMimeMessage
java.lang.Object
com.mockobjects.MockObject
com.mockobjects.mail.MockMessage
com.mockobjects.mail.internet.MockMimeMessage
- All Implemented Interfaces:
MimeMessage,Message,Verifiable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddRecipient(javax.mail.Message.RecipientType aType, Address anAddress) voidaddRecipients(javax.mail.Message.RecipientType type, String s) Address[]getBody()String[]FoldergetMatchingHeaderLines(String[] strings) intgetNonMatchingHeaderLines(String[] strings) Address[]booleanbooleanisSet(Flags.Flag flag) booleanmatch(SearchTerm term) voidvoidvoidsetContentLanguage(String[] strings) voidvoidsetDescription(String s, String s1) voidsetExpectedAddRecipient(javax.mail.Message.RecipientType aType, Address anAddress) voidsetFlag(Flags.Flag flag, boolean b) voidsetRecipient(javax.mail.Message.RecipientType type, Address address) voidsetRecipients(javax.mail.Message.RecipientType type, String s) voidsetReplyTo(Address[] addresses) voidsetSubject(String s, String s1) voidvoidwriteTo(OutputStream stream, String[] strings) Methods inherited from class com.mockobjects.mail.MockMessage
addFrom, addHeader, addRecipients, getAllHeaders, getContent, getContentType, getDataHandler, getDescription, getDisposition, getFileName, getFlags, getFrom, getHeader, getInputStream, getLineCount, getMatchingHeaders, getNonMatchingHeaders, getRealMessage, getReceivedDate, getRecipients, getSentDate, getSize, getSubject, isMimeType, removeHeader, reply, saveChanges, setContent, setContent, setDataHandler, setDescription, setDisposition, setExpectedContent, setExpectedFrom, setExpectedRecipients, setExpectedSentDate, setExpectedSubject, setExpectedText, setFileName, setFlags, setFrom, setFrom, setHeader, setRecipients, setSentDate, setSubject, setText, writeToMethods inherited from class com.mockobjects.MockObject
notImplemented, notYetImplemented, verifyMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface alt.javax.mail.Message
addFrom, addHeader, addRecipients, getAllHeaders, getContent, getContentType, getDataHandler, getDescription, getDisposition, getFileName, getFlags, getFrom, getHeader, getInputStream, getLineCount, getMatchingHeaders, getNonMatchingHeaders, getRealMessage, getReceivedDate, getRecipients, getSentDate, getSize, getSubject, isMimeType, removeHeader, reply, saveChanges, setContent, setContent, setDataHandler, setDescription, setDisposition, setFileName, setFlags, setFrom, setFrom, setHeader, setRecipients, setSentDate, setSubject, setText, writeTo
-
Constructor Details
-
MockMimeMessage
public MockMimeMessage()
-
-
Method Details
-
setRecipient
public void setRecipient(javax.mail.Message.RecipientType type, Address address) throws MessagingException - Specified by:
setRecipientin interfaceMimeMessage- Throws:
MessagingException
-
setExpectedAddRecipient
public void setExpectedAddRecipient(javax.mail.Message.RecipientType aType, Address anAddress) -
addRecipient
public void addRecipient(javax.mail.Message.RecipientType aType, Address anAddress) throws MessagingException - Specified by:
addRecipientin interfaceMimeMessage- Throws:
MessagingException
-
setFlag
public void setFlag(Flags.Flag flag, boolean b) throws MessagingException - Specified by:
setFlagin interfaceMimeMessage- Throws:
MessagingException
-
getMessageNumber
public int getMessageNumber()- Specified by:
getMessageNumberin interfaceMimeMessage
-
getBody
-
getFolder
public Folder getFolder()- Specified by:
getFolderin interfaceMimeMessage
-
setBody
-
isExpunged
public boolean isExpunged()- Specified by:
isExpungedin interfaceMimeMessage
-
match
public boolean match(SearchTerm term) throws MessagingException - Specified by:
matchin interfaceMimeMessage- Throws:
MessagingException
-
getAllRecipients
public Address[] getAllRecipients() throws MessagingException- Specified by:
getAllRecipientsin interfaceMimeMessage- Throws:
MessagingException
-
setRecipients
public void setRecipients(javax.mail.Message.RecipientType type, String s) throws MessagingException - Specified by:
setRecipientsin interfaceMimeMessage- Throws:
MessagingException
-
addRecipients
public void addRecipients(javax.mail.Message.RecipientType type, String s) throws MessagingException - Specified by:
addRecipientsin interfaceMimeMessage- Throws:
MessagingException
-
getReplyTo
public Address[] getReplyTo() throws MessagingException- Specified by:
getReplyToin interfaceMimeMessage- Throws:
MessagingException
-
setReplyTo
public void setReplyTo(Address[] addresses) throws MessagingException - Specified by:
setReplyToin interfaceMimeMessage- Throws:
MessagingException
-
setSubject
- Specified by:
setSubjectin interfaceMimeMessage- Throws:
MessagingException
-
getEncoding
- Specified by:
getEncodingin interfaceMimeMessage- Throws:
MessagingException
-
getContentID
- Specified by:
getContentIDin interfaceMimeMessage- Throws:
MessagingException
-
setContentID
- Specified by:
setContentIDin interfaceMimeMessage- Throws:
MessagingException
-
getContentMD5
- Specified by:
getContentMD5in interfaceMimeMessage- Throws:
MessagingException
-
setContentMD5
- Specified by:
setContentMD5in interfaceMimeMessage- Throws:
MessagingException
-
setDescription
- Specified by:
setDescriptionin interfaceMimeMessage- Throws:
MessagingException
-
getContentLanguage
- Specified by:
getContentLanguagein interfaceMimeMessage- Throws:
MessagingException
-
setContentLanguage
- Specified by:
setContentLanguagein interfaceMimeMessage- Throws:
MessagingException
-
getMessageID
- Specified by:
getMessageIDin interfaceMimeMessage- Throws:
MessagingException
-
getRawInputStream
- Specified by:
getRawInputStreamin interfaceMimeMessage- Throws:
MessagingException
-
setText
- Specified by:
setTextin interfaceMimeMessage- Throws:
MessagingException
-
writeTo
- Specified by:
writeToin interfaceMimeMessage- Throws:
IOExceptionMessagingException
-
getHeader
- Specified by:
getHeaderin interfaceMimeMessage- Throws:
MessagingException
-
addHeaderLine
- Specified by:
addHeaderLinein interfaceMimeMessage- Throws:
MessagingException
-
getAllHeaderLines
- Specified by:
getAllHeaderLinesin interfaceMimeMessage- Throws:
MessagingException
-
getMatchingHeaderLines
- Specified by:
getMatchingHeaderLinesin interfaceMimeMessage- Throws:
MessagingException
-
getNonMatchingHeaderLines
- Specified by:
getNonMatchingHeaderLinesin interfaceMimeMessage- Throws:
MessagingException
-
isSet
public boolean isSet(Flags.Flag flag) throws MessagingException - Specified by:
isSetin interfaceMimeMessage- Throws:
MessagingException
-