public class MailSink extends DisposableMailSupport<MailSink>
mail
sink module. Allows retrieval of emails sent to the configured server.ADMIN_PASSWORD, ADMIN_USER, greenMail
label
Constructor and Description |
---|
MailSink() |
Modifier and Type | Method and Description |
---|---|
MailSink |
from(java.lang.String expression) |
protected com.icegreen.greenmail.util.ServerSetup |
setupReceiveServer()
Provide configuration options for the "receive" part of the fixture.
|
protected com.icegreen.greenmail.util.ServerSetup |
setupSendServer()
Provide configuration options for the "send" part of the fixture.
|
MailSink |
subject(java.lang.String expression) |
MailSink |
to(java.lang.String expression) |
protected java.lang.String |
toDSL()
Returns a representation of the module suitable for inclusion in a stream definition, e.g.
file --dir=xxxx --name=yyyy |
javax.mail.internet.MimeMessage |
waitForEmail() |
cleanup, ensureNotStarted, ensureStarted
label, toString
protected com.icegreen.greenmail.util.ServerSetup setupSendServer()
DisposableMailSupport
setupSendServer
in class DisposableMailSupport<MailSink>
protected com.icegreen.greenmail.util.ServerSetup setupReceiveServer()
DisposableMailSupport
setupReceiveServer
in class DisposableMailSupport<MailSink>
protected java.lang.String toDSL()
AbstractModuleFixture
file --dir=xxxx --name=yyyy
toDSL
in class AbstractModuleFixture<MailSink>
public MailSink to(java.lang.String expression)
public MailSink subject(java.lang.String expression)
public MailSink from(java.lang.String expression)
public javax.mail.internet.MimeMessage waitForEmail()