Protected Methods |
void
|
assertCorrectNumberEmailsSent(int numOfMessages)
|
void
|
assertEmailBodyContains(MimeMessage email, String bodySubString)
Asserts that the given email's body contains the bodySubString using indexOf.
|
void
|
assertEmailBodyContains(String emailBody, String bodySubString)
Assert that the String emailBody contains bodySubString
|
void
|
assertEmailBodyContainsLine(MimeMessage email, String... linePattern)
Asserts that the given email's body contains a line which matches the given string or pattern.
|
void
|
assertEmailBodyDoesntContain(MimeMessage email, String bodySubString)
Asserts that the given email's body does not contain the bodySubString using indexOf.
|
void
|
assertEmailCcEquals(MimeMessage email, Collection<?> expectedCcAddresses)
|
void
|
assertEmailFromEquals(MimeMessage email, String expectedTo)
|
void
|
assertEmailHasNumberOfParts(MimeMessage email, int expectedNumOfParts)
|
void
|
assertEmailSent(String recipient, String subject, String issueComment)
|
void
|
assertEmailSubjectEquals(MimeMessage email, String subject)
|
void
|
assertEmailToEquals(MimeMessage email, String expectedTo)
Assert that the email was addressed to the expectedTo
|
void
|
assertEmailToEquals(MimeMessage email, Collection<?> expectedToAddresses)
Assert that the email was addressed to each and everyone of the expectedAddresses
|
final
void
|
assertMessageAndType(MimeMessage message, String expectedComment, boolean html)
|
final
void
|
assertNotMessageAndType(MimeMessage message, String expectedComment, boolean html)
|
void
|
assertRecipientsHaveMessages(Collection<String> recipients)
|
void
|
assertSendingMailIsEnabled()
|
void
|
configureAndStartMailServers(String from, String prefix, JIRAServerSetup... jiraServerSetups)
|
void
|
configureAndStartSmtpServer()
Use this method to start a com.icegreen.greenmail.smtp.SmtpServer.
|
void
|
configureAndStartSmtpServer(String from, String prefix)
|
void
|
configureAndStartSmtpServerWithNotify()
|
void
|
flushMailQueue()
|
void
|
flushMailQueueAndWait(int emailCount)
This is useful for writing func tests that test that the correct notifications are being sent.
|
void
|
flushMailQueueAndWait(int emailCount, int waitPeriodMillis)
Does the same as flushMailQueueAndWait(int) but allows the user to specify the wait period in case a lot
of e-mails are being sent.
|
void
|
flushMailQueueAndWaitForRecipients(int waitPeriodMillis, String... recipientAddresses)
Flushes the mail queue and waits for emails to arrive for specified recipients instead of a set number of emails.
|
final
EmailBaseFuncTestCase.MailBox
|
getMailBox(String email)
|
List<MimeMessage>
|
getMessagesForRecipient(String recipient)
|
Collection<String>
|
parseEmailAddresses(String emails)
Given a comma seperated list of email addresses, returns a collection of the email addresses.
|
void
|
setupImapService(String handlerParameters)
|
void
|
setupImapService()
|
void
|
setupPopService(String handlerParameters)
|
void
|
setupPopService()
|
void
|
startMailService(JIRAServerSetup... jiraServerSetups)
|
void
|
waitForMail(int emailCount)
|