Class TestHelper


  • public final class TestHelper
    extends Object
    Helper class for Jersey Test Framework.
    Author:
    Michal Gajdos
    • Method Detail

      • zeroPortToAvailablePort

        public static String zeroPortToAvailablePort​(URI uri)
        Create a human readable string from given URI. This method replaces 0 port (start container at first available port) in given URI with string <AVAILABLE-PORT>.
        Parameters:
        uri - an URI.
        Returns:
        stringified URI.