junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/UrlUtils.java
public static String ensureAbsolutePath(String path) {
		if (path == null || path.isEmpty()) {
			return String.valueOf(PATH_SEPARATOR);
		}

		return path.charAt(0) == PATH_SEPARATOR ? path : PATH_SEPARATOR + path;
	}
public static String ensureAbsolutePath(String path) {
		if (path == null || path.isEmpty()) {
			return String.valueOf(PATH_SEPARATOR);
		}

		return path.charAt(0) == PATH_SEPARATOR ? path : PATH_SEPARATOR + path;
	}
public static String ensureAbsolutePath ( String path ) { if ( path == null || path . isEmpty ( ) ) { return String . valueOf ( PATH_SEPARATOR ) ; } return path . charAt ( 0 ) == PATH_SEPARATOR ? path : PATH_SEPARATOR + path ; }
Ensure that given path is an absolute path (i.e starts with {@code '/'}.

@param path The path.
@return Absolute path.
Ensure that given path is an absolute path ( i . e starts with { @code / } .