Interface MockMailbox

All Known Implementing Classes:
MockMailboxImpl

public interface MockMailbox
Mock mail collector, will be populated if mocking emails.
  • Method Details

    • getMessagesSentTo

      @Deprecated(forRemoval=true, since="3.0") List<Mail> getMessagesSentTo(String address)
      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

      List<Mail> getMailsSentTo(String address)
      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

      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.
      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.