Class AbstractIntegrationTest.DynamicPort

java.lang.Object
org.codice.ddf.itests.common.AbstractIntegrationTest.DynamicPort
Enclosing class:
AbstractIntegrationTest

public static class AbstractIntegrationTest.DynamicPort extends Object
An enum that returns a port number based on the class variable AbstractIntegrationTest.basePort. Used to allow parallel itests and dynamic allocation of ports to prevent conflicts on hard coded port numbers. AbstractIntegrationTest.basePort needs to be set in the {@link @BeforeExam} method of every test class that uses DynamicPort or AbstractIntegrationTest.DynamicUrl. E.g. 'basePort = AbstractIntegrationTest.getBasePort()`
  • Constructor Details

    • DynamicPort

      public DynamicPort(Integer ordinal)
    • DynamicPort

      public DynamicPort(String systemProperty, Integer ordinal)
  • Method Details