public class NotificationsTestUtils extends Object
Constructor and Description |
---|
NotificationsTestUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
cleanInbox(com.icegreen.greenmail.util.GreenMail greenMailServer,
List<String> users) |
static String |
localLoopbackAddress() |
static int |
nextFreePort() |
static int |
nextFreePort(int startingPort) |
static void |
setUpBambooMailServer(Backdoor backdoor,
com.icegreen.greenmail.util.GreenMail greenMailServer,
String smtpUsername,
String smtpPassword) |
static com.icegreen.greenmail.util.GreenMail |
setUpGreenMail(String email,
String login,
String password) |
static void |
tearDownGreenMail(com.icegreen.greenmail.util.GreenMail greenMailServer) |
static List<javax.mail.internet.MimeMessage> |
waitForIncomingEmail(com.icegreen.greenmail.util.GreenMail greenMailServer,
long maxWaitTimeMillis,
int expectedEmailCount) |
@NotNull public static com.icegreen.greenmail.util.GreenMail setUpGreenMail(@NotNull String email, @NotNull String login, @NotNull String password)
public static void setUpBambooMailServer(@NotNull Backdoor backdoor, @NotNull com.icegreen.greenmail.util.GreenMail greenMailServer, @NotNull String smtpUsername, @NotNull String smtpPassword) throws Exception
Exception
public static void tearDownGreenMail(@Nullable com.icegreen.greenmail.util.GreenMail greenMailServer)
public static int nextFreePort()
public static int nextFreePort(int startingPort)
public static void cleanInbox(@NotNull com.icegreen.greenmail.util.GreenMail greenMailServer, @NotNull List<String> users)
@NotNull public static String localLoopbackAddress()
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.