Class MockServerUtils
- java.lang.Object
-
- org.wso2.am.integration.test.utils.MockServerUtils
-
public class MockServerUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static inthttpPortLowerRangestatic inthttpPortUpperRangestatic inthttpsPortLowerRangestatic inthttpsPortUpperRangestatic StringLOCALHOST
-
Constructor Summary
Constructors Constructor Description MockServerUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intgetAvailablePort(String host, boolean isHttps)Find a free port to start backend WebSocket server in given port range
-
-
-
Field Detail
-
LOCALHOST
public static String LOCALHOST
-
httpPortLowerRange
public static final int httpPortLowerRange
- See Also:
- Constant Field Values
-
httpPortUpperRange
public static final int httpPortUpperRange
- See Also:
- Constant Field Values
-
httpsPortLowerRange
public static final int httpsPortLowerRange
- See Also:
- Constant Field Values
-
httpsPortUpperRange
public static final int httpsPortUpperRange
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAvailablePort
public static int getAvailablePort(String host, boolean isHttps)
Find a free port to start backend WebSocket server in given port range- Parameters:
isHttps-- Returns:
- Available Port Number
-
-