public class GreenMailRule extends GreenMailProxy implements MethodRule, TestRule
| Constructor and Description |
|---|
GreenMailRule() |
GreenMailRule(ServerSetup serverSetup)
Initialize with single server setups
|
GreenMailRule(ServerSetup[] serverSetups)
Initialize with multiple server setups
|
| Modifier and Type | Method and Description |
|---|---|
Statement |
apply(Statement base,
Description description) |
Statement |
apply(Statement base,
FrameworkMethod method,
Object target) |
protected GreenMail |
getGreenMail() |
GreenMailRule |
withConfiguration(GreenMailConfiguration config)
Configure GreenMail instance using the given configuration
|
getImap, getImaps, getManagers, getPop3, getPop3s, getReceivedMessages, getReceivedMessagesForDomain, getReceviedMessagesForDomain, getSmtp, getSmtps, purgeEmailFromAllMailboxes, reset, setQuotaSupported, setUser, setUser, setUsers, start, stop, waitForIncomingEmail, waitForIncomingEmaildoConfigurepublic GreenMailRule(ServerSetup[] serverSetups)
serverSetups - All setups to usepublic GreenMailRule(ServerSetup serverSetup)
serverSetup - Setup to usepublic GreenMailRule()
public Statement apply(Statement base, Description description)
public Statement apply(Statement base, FrameworkMethod method, Object target)
apply in interface MethodRulepublic GreenMailRule withConfiguration(GreenMailConfiguration config)
GreenMailOperationswithConfiguration in interface GreenMailOperationswithConfiguration in class ConfiguredGreenMailconfig - Configuration to useprotected GreenMail getGreenMail()
getGreenMail in class GreenMailProxyCopyright © 2006–2017 Icegreen Technologies. All rights reserved.