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 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 |
Use ServerSetup
for default ports
- See Also:
ServerSetup
Fields inherited from class com.icegreen.greenmail.util.ServerSetup |
PROTOCOL_IMAP, PROTOCOL_IMAPS, PROTOCOL_POP3, PROTOCOL_POP3S, PROTOCOL_SMTP, PROTOCOL_SMTPS |
Method Summary |
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)
|
Methods inherited from class com.icegreen.greenmail.util.ServerSetup |
getBindAddress, getProtocol, isSecure |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HOST
public static final String HOST
- See Also:
- Constant Field Values
PORT_OFFSET
public static final int PORT_OFFSET
- See Also:
- Constant Field Values
SMTP
public static final JIRAServerSetup SMTP
SMTPS
public static final JIRAServerSetup SMTPS
POP3
public static final JIRAServerSetup POP3
POP3S
public static final JIRAServerSetup POP3S
IMAP
public static final JIRAServerSetup IMAP
IMAPS
public static final JIRAServerSetup IMAPS
SMTP_POP3
public static final JIRAServerSetup[] SMTP_POP3
SMTP_IMAP
public static final JIRAServerSetup[] SMTP_IMAP
SMTP_POP3_IMAP
public static final JIRAServerSetup[] SMTP_POP3_IMAP
SMTPS_POP3S
public static final JIRAServerSetup[] SMTPS_POP3S
SMTPS_POP3S_IMAPS
public static final JIRAServerSetup[] SMTPS_POP3S_IMAPS
SMTPS_IMAPS
public static final JIRAServerSetup[] SMTPS_IMAPS
ALL
public static final JIRAServerSetup[] ALL
JIRAServerSetup
public JIRAServerSetup(int port,
String bindAddress,
String protocol)
getPort
public int getPort()
- Overriden so that it uses the local port value and not the super's
- Overrides:
getPort
in class com.icegreen.greenmail.util.ServerSetup
- Returns:
- port
setPort
public void setPort(int port)
incrementPort
public void incrementPort()
- Increment the port by 1
Copyright © 2002-2013 Atlassian. All Rights Reserved.