Interface MockMailbox

  • All Known Implementing Classes:
    MockMailboxImpl

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

      • getMessagesSentTo

        List<Mail> getMessagesSentTo​(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 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.