Package io.quarkus.mailer
Interface MockMailbox
- All Known Implementing Classes:
MockMailboxImpl
public interface MockMailbox
Mock mail collector, will be populated if mocking emails.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Removes every sent message.List<io.vertx.ext.mail.MailMessage>
getMailMessagesSentTo
(String address) Returns a list of mail messages sent to the given address, whether it was via To, Cc or Bcc.getMailsSentTo
(String address) Returns a list of mails sent to the given address, whether it was via To, Cc or Bcc.getMessagesSentTo
(String address) Deprecated, for removal: This API element is subject to removal in a future version.int
Gets the total number of messages sent.
-
Method Details
-
getMessagesSentTo
Deprecated, for removal: This API element is subject to removal in a future version.Returns a list of mails sent to the given address, whether it was via To, Cc or Bcc.- Parameters:
address
- the email address we want to retrieve mail from- Returns:
- a list of messages sent to the given address, possibly empty.
-
getMailsSentTo
Returns a list of mails sent to the given address, whether it was via To, Cc or Bcc.- Parameters:
address
- the email address we want to retrieve mail from- Returns:
- a list of mails sent to the given address, possibly empty.
-
getMailMessagesSentTo
Returns a list of mail messages sent to the given address, whether it was via To, Cc or Bcc.- Parameters:
address
- the email address we want to retrieve mail from- Returns:
- a list of mail messages sent to the given address, possibly empty.
-
clear
void clear()Removes every sent message. -
getTotalMessagesSent
int getTotalMessagesSent()Gets the total number of messages sent. This counts every message sent to every recipient.- Returns:
- the total number of messages sent.
-
getMailMessagesSentTo(String)