public class JIRAServerSetup
extends com.icegreen.greenmail.util.ServerSetup
ServerSetup
so that the port can be incremented/changed.
This is so that, if the port is already in use a different port can be used with the same instance
and not having to create a whole new one.
Defines a series of non-default ports for JIRA test purposes.
The ports for the various protocols are the default ones plus an offset of PORT_OFFSET
.
i.e.
smtp | 25025 |
smtps | 25465 |
pop3 | 25110 |
pop3s | 25995 |
imap | 25143 |
imaps | 25993 |
ServerSetup
for default portsServerSetup
Modifier and Type | Field and Description |
---|---|
static JIRAServerSetup[] |
ALL |
static String |
HOST |
static JIRAServerSetup |
IMAP |
static JIRAServerSetup |
IMAPS |
static JIRAServerSetup |
POP3 |
static JIRAServerSetup |
POP3S |
static int |
PORT_OFFSET |
static JIRAServerSetup |
SMTP |
static JIRAServerSetup[] |
SMTP_IMAP |
static JIRAServerSetup[] |
SMTP_POP3 |
static JIRAServerSetup[] |
SMTP_POP3_IMAP |
static JIRAServerSetup |
SMTPS |
static JIRAServerSetup[] |
SMTPS_IMAPS |
static JIRAServerSetup[] |
SMTPS_POP3S |
static JIRAServerSetup[] |
SMTPS_POP3S_IMAPS |
Constructor and Description |
---|
JIRAServerSetup(int port,
String bindAddress,
String protocol) |
Modifier and Type | Method and Description |
---|---|
int |
getPort()
Overriden so that it uses the local port value and not the super's
|
void |
incrementPort()
Increment the port by 1
|
void |
setPort(int port) |
public static final String HOST
public static final int PORT_OFFSET
public static final JIRAServerSetup SMTP
public static final JIRAServerSetup SMTPS
public static final JIRAServerSetup POP3
public static final JIRAServerSetup POP3S
public static final JIRAServerSetup IMAP
public static final JIRAServerSetup IMAPS
public static final JIRAServerSetup[] SMTP_POP3
public static final JIRAServerSetup[] SMTP_IMAP
public static final JIRAServerSetup[] SMTP_POP3_IMAP
public static final JIRAServerSetup[] SMTPS_POP3S
public static final JIRAServerSetup[] SMTPS_POP3S_IMAPS
public static final JIRAServerSetup[] SMTPS_IMAPS
public static final JIRAServerSetup[] ALL
Copyright © 2002-2021 Atlassian. All Rights Reserved.