Go to the documentation of this file.
20 package net.sf.gridarta.utils;
22 import org.junit.Assert;
23 import org.junit.Test;
36 Assert.assertEquals(
"Expecting trailing slash from directories being removed.",
"/foo",
PathManagerUtils.
path(
"/foo/"));
37 Assert.assertEquals(
"Expecting file: URIs being converted to URIs without scheme.",
"/foo",
PathManagerUtils.
path(
"file:/foo/"));
38 Assert.assertEquals(
"Expecting multiple // characters to be collapsed.",
"/foo/bar",
PathManagerUtils.
path(
"//foo///bar"));
static String absoluteToRelative(@NotNull final String reference, @NotNull final String absolute)
static String path(@NotNull final CharSequence str)
void testRelativeToAbsolute()
void testAbsoluteToRelative()
static boolean isAbsolute(@NotNull final String path)
static boolean isRelative(@NotNull final String path)
static String relativeToAbsolute(@NotNull final String reference, @NotNull final String relative)