public class FakeSmtpRule
extends org.junit.rules.ExternalResource
| Constructor and Description |
|---|
FakeSmtpRule(ServerConfiguration serverConfiguration)
Instantiates a new fake smtp rule.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
after() |
protected void |
before() |
ServerConfiguration |
getServerConfiguration()
Gets the server configuration.
|
boolean |
isRunning()
Checks if the server is running.
|
java.util.List<EmailModel> |
mailBox()
Returns the list of mails from the server.
|
java.util.List<EmailModel> |
rejectedMails()
Returns the list of rejected mails.
|
java.util.List<java.lang.String> |
relayDomains()
Returns the list of domains to relay.
|
public FakeSmtpRule(ServerConfiguration serverConfiguration)
serverConfiguration - the server configurationprotected void after()
after in class org.junit.rules.ExternalResourceprotected void before()
throws java.lang.Throwable
before in class org.junit.rules.ExternalResourcejava.lang.Throwablepublic ServerConfiguration getServerConfiguration()
public boolean isRunning()
public java.util.List<EmailModel> mailBox()
public java.util.List<EmailModel> rejectedMails()
public java.util.List<java.lang.String> relayDomains()