Package com.atlassian.jira.webtests
Class JIRAServerSetup
java.lang.Object
com.icegreen.greenmail.util.ServerSetup
com.atlassian.jira.webtests.JIRAServerSetup
public class JIRAServerSetup
extends com.icegreen.greenmail.util.ServerSetup
Extends
Use
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 ports- See Also:
-
ServerSetup
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JIRAServerSetup[]
static final String
static final JIRAServerSetup
static final JIRAServerSetup
static final JIRAServerSetup
static final JIRAServerSetup
static final int
static final JIRAServerSetup
static final JIRAServerSetup[]
static final JIRAServerSetup[]
static final JIRAServerSetup[]
static final JIRAServerSetup
static final JIRAServerSetup[]
static final JIRAServerSetup[]
static final JIRAServerSetup[]
Fields inherited from class com.icegreen.greenmail.util.ServerSetup
CONNECTION_TIMEOUT, PORT_IMAP, PORT_IMAPS, PORT_POP3, PORT_POP3S, PORT_SMTP, PORT_SMTPS, PROTOCOL_IMAP, PROTOCOL_IMAPS, PROTOCOL_POP3, PROTOCOL_POP3S, PROTOCOL_SMTP, PROTOCOL_SMTPS, PROTOCOLS, READ_TIMEOUT, SERVER_STARTUP_TIMEOUT
-
Constructor Summary
-
Method Summary
Methods inherited from class com.icegreen.greenmail.util.ServerSetup
configureJavaMailSessionProperties, createCopy, createCopy, createCopy, createCopy, dynamicPort, dynamicPort, equals, getBindAddress, getConnectionTimeout, getDefaultBindAddress, getLocalHostAddress, getProtocol, getReadTimeout, getServerStartupTimeout, getWriteTimeout, hashCode, isDynamicPort, isSecure, isVerbose, mailSessionProperty, mailSessionProperty, port, setConnectionTimeout, setReadTimeout, setServerStartupTimeout, setVerbose, setWriteTimeout, toString, verbose, verbose, withPort
-
Field Details
-
HOST
- See Also:
-
PORT_OFFSET
public static final int PORT_OFFSET- See Also:
-
SMTP
-
SMTPS
-
POP3
-
POP3S
-
IMAP
-
IMAPS
-
SMTP_POP3
-
SMTP_IMAP
-
SMTP_POP3_IMAP
-
SMTPS_POP3S
-
SMTPS_POP3S_IMAPS
-
SMTPS_IMAPS
-
ALL
-
-
Constructor Details
-
JIRAServerSetup
-
-
Method Details
-
getPort
public int getPort()Overriden so that it uses the local port value and not the super's- Overrides:
getPort
in classcom.icegreen.greenmail.util.ServerSetup
- Returns:
- port
-
setPort
public void setPort(int port) -
incrementPort
public void incrementPort()Increment the port by 1
-