com.atlassian.jira.webtests
Class JIRAServerSetup

java.lang.Object
  extended by com.icegreen.greenmail.util.ServerSetup
      extended by 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.

smtp25025
smtps25465
pop325110
pop3s25995
imap25143
imaps25993
Use ServerSetup for default ports

See Also:
ServerSetup

Field Summary
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
           
 
Fields inherited from class com.icegreen.greenmail.util.ServerSetup
PROTOCOL_IMAP, PROTOCOL_IMAPS, PROTOCOL_POP3, PROTOCOL_POP3S, PROTOCOL_SMTP, PROTOCOL_SMTPS
 
Constructor Summary
JIRAServerSetup(int port, String bindAddress, String protocol)
           
 
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
 

Field Detail

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
Constructor Detail

JIRAServerSetup

public JIRAServerSetup(int port,
                       String bindAddress,
                       String protocol)
Method Detail

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.