Class MockMailer
- java.lang.Object
-
- com.yahoo.vespa.hosted.controller.api.integration.stubs.MockMailer
-
-
Constructor Summary
Constructors Constructor Description MockMailer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringdomain()Returns the domain this is configured to use.java.util.List<Mail>inbox(java.lang.String recipient)Returns the list of mails sent to the given recipient.voidsend(Mail mail)Sends the given mail as the configured user@domain.java.lang.Stringuser()Returns the user this is configured to use.
-
-
-
Field Detail
-
mails
public final java.util.Map<java.lang.String,java.util.List<Mail>> mails
-
-
Method Detail
-
send
public void send(Mail mail)
Description copied from interface:MailerSends the given mail as the configured user@domain.
-
user
public java.lang.String user()
Description copied from interface:MailerReturns the user this is configured to use.
-
domain
public java.lang.String domain()
Description copied from interface:MailerReturns the domain this is configured to use.
-
inbox
public java.util.List<Mail> inbox(java.lang.String recipient)
Returns the list of mails sent to the given recipient. Modifications affect the set of mails stored in this.
-
-