java.lang.Object
com.yahoo.vespa.hosted.controller.api.integration.stubs.MockMailer
All Implemented Interfaces:
Mailer

public class MockMailer extends Object implements Mailer
  • Field Details

    • mails

      public final Map<String,List<Mail>> mails
    • blackhole

      public final boolean blackhole
  • Constructor Details

    • MockMailer

      public MockMailer()
  • Method Details

    • blackhole

      public static MockMailer blackhole()
    • send

      public void send(Mail mail)
      Description copied from interface: Mailer
      Sends the given mail as the configured user@domain.
      Specified by:
      send in interface Mailer
    • user

      public String user()
      Description copied from interface: Mailer
      Returns the user this is configured to use.
      Specified by:
      user in interface Mailer
    • domain

      public String domain()
      Description copied from interface: Mailer
      Returns the domain this is configured to use.
      Specified by:
      domain in interface Mailer
    • sendVerificationMail

      public void sendVerificationMail(PendingMailVerification pendingMailVerification)
      Specified by:
      sendVerificationMail in interface Mailer
    • inbox

      public List<Mail> inbox(String recipient)
      Returns the list of mails sent to the given recipient. Modifications affect the set of mails stored in this.
    • reset

      public void reset()