public class OutgoingMailTestRule extends Object implements org.junit.rules.TestRule
MailTest
method annotation. Basicly
it starts dummy smtp server and configures smtp server in jira by using OutgoingMailConfigureSmtpRule
(omitted on onDemand), starts outgoing email listener and clears the queue by using OutgoingMailEventQueueRule
.Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_FROM_ADDRESS |
static String |
DEFAULT_SUBJECT_PREFIX |
Constructor and Description |
---|
OutgoingMailTestRule(java.util.function.Supplier<Backdoor> backdoorSupplier) |
OutgoingMailTestRule(java.util.function.Supplier<Backdoor> backdoorSupplier,
String mailFrom,
String mailSubjectPrefix) |
Modifier and Type | Method and Description |
---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description) |
org.junit.rules.RuleChain |
getInnerChain() |
OutgoingMailEventQueueRule |
getMailEventQueueRule() |
public static final String DEFAULT_FROM_ADDRESS
public static final String DEFAULT_SUBJECT_PREFIX
public OutgoingMailTestRule(java.util.function.Supplier<Backdoor> backdoorSupplier, String mailFrom, String mailSubjectPrefix)
public OutgoingMailTestRule(java.util.function.Supplier<Backdoor> backdoorSupplier)
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
apply
in interface org.junit.rules.TestRule
public OutgoingMailEventQueueRule getMailEventQueueRule()
public org.junit.rules.RuleChain getInnerChain()
Copyright © 2002-2022 Atlassian. All Rights Reserved.