@Deprecated public class GreenMailRule extends GreenMailProxy implements MethodRule, TestRule
The rule ensures that each test method starts with a clean GreenMail instance without relics from previous tests of current suite.
| Constructor and Description |
|---|
GreenMailRule()
Deprecated.
|
GreenMailRule(ServerSetup serverSetup)
Deprecated.
Initialize with single server setups
|
GreenMailRule(ServerSetup[] serverSetups)
Deprecated.
Initialize with multiple server setups
|
| Modifier and Type | Method and Description |
|---|---|
Statement |
apply(Statement base,
Description description)
Deprecated.
|
Statement |
apply(Statement base,
FrameworkMethod method,
Object target)
Deprecated.
|
protected GreenMail |
getGreenMail()
Deprecated.
|
boolean |
isRunning()
Deprecated.
Checks if GreenMail is up and running.
|
GreenMailRule |
withConfiguration(GreenMailConfiguration config)
Deprecated.
Configure GreenMail instance using the given configuration
|
getImap, getImaps, getManagers, getPop3, getPop3s, getReceivedMessages, getReceivedMessagesForDomain, getSmtp, getSmtps, getUserManager, 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 usepublic boolean isRunning()
GreenMailOperationsisRunning in interface GreenMailOperationsprotected GreenMail getGreenMail()
getGreenMail in class GreenMailProxyCopyright © 2006–2022 Icegreen Technologies. All rights reserved.