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.

smtp25025
smtps25465
pop325110
pop3s25995
imap25143
imaps25993
Use ServerSetup for default ports
See Also:
  • ServerSetup
  • Field Details

  • Constructor Details

    • JIRAServerSetup

      public JIRAServerSetup(int port, String bindAddress, String protocol)
  • Method Details

    • 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