public class

JIRAServerSetup

extends ServerSetup
java.lang.Object
   ↳ com.icegreen.greenmail.util.ServerSetup
     ↳ com.atlassian.jira.webtests.JIRAServerSetup

Class Overview

Extends com.icegreen.greenmail.util.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 com.icegreen.greenmail.util.ServerSetup for default ports

See Also
  • com.icegreen.greenmail.util.ServerSetup

Summary

Constants
String HOST
int PORT_OFFSET
[Expand]
Inherited Constants
From class com.icegreen.greenmail.util.ServerSetup
Fields
public static final JIRAServerSetup[] ALL
public static final JIRAServerSetup IMAP
public static final JIRAServerSetup IMAPS
public static final JIRAServerSetup POP3
public static final JIRAServerSetup POP3S
public static final JIRAServerSetup SMTP
public static final JIRAServerSetup SMTPS
public static final JIRAServerSetup[] SMTPS_IMAPS
public static final JIRAServerSetup[] SMTPS_POP3S
public static final JIRAServerSetup[] SMTPS_POP3S_IMAPS
public static final JIRAServerSetup[] SMTP_IMAP
public static final JIRAServerSetup[] SMTP_POP3
public static final JIRAServerSetup[] SMTP_POP3_IMAP
[Expand]
Inherited Fields
From class com.icegreen.greenmail.util.ServerSetup
Public Constructors
JIRAServerSetup(int port, String bindAddress, String protocol)
Public Methods
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)
[Expand]
Inherited Methods
From class com.icegreen.greenmail.util.ServerSetup
From class java.lang.Object

Constants

public static final String HOST

Constant Value: "localhost"

public static final int PORT_OFFSET

Constant Value: 25000 (0x000061a8)

Fields

public static final JIRAServerSetup[] ALL

public static final JIRAServerSetup IMAP

public static final JIRAServerSetup IMAPS

public static final JIRAServerSetup POP3

public static final JIRAServerSetup POP3S

public static final JIRAServerSetup SMTP

public static final JIRAServerSetup SMTPS

public static final JIRAServerSetup[] SMTPS_IMAPS

public static final JIRAServerSetup[] SMTPS_POP3S

public static final JIRAServerSetup[] SMTPS_POP3S_IMAPS

public static final JIRAServerSetup[] SMTP_IMAP

public static final JIRAServerSetup[] SMTP_POP3

public static final JIRAServerSetup[] SMTP_POP3_IMAP

Public Constructors

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

Public Methods

public int getPort ()

Overriden so that it uses the local port value and not the super's

Returns
  • port

public void incrementPort ()

Increment the port by 1

public void setPort (int port)