@Test public void testNormalize() { assertThat(PathUtils.normalizeSeparator("a/b/c"), equalTo(sep("a/b/c"))); assertThat(PathUtils.normalizeSeparator("a\\b\\c"), equalTo(sep("a/b/c"))); assertThat(PathUtils.normalize("a/b/c"), equalTo(sep("a/b/c"))); assertThat(PathUtils.normalize("./a/b/c"), equalTo(sep("a/b/c"))); String userDir = System.getProperty("user.dir"); String parentDir = new File(userDir).getParent(); assertThat(PathUtils.normalize("../a/b/c"), equalTo(sep(parentDir + "/a/b/c"))); assertThat(PathUtils.normalize("a/b/../c"), equalTo(sep("a/c"))); assertThat(PathUtils.concat("a", "b"), equalTo(sep("a/b"))); assertThat(PathUtils.concat("a/", "b"), equalTo(sep("a/b"))); assertThat(PathUtils.concat("./a", "b"), equalTo(sep("a/b"))); assertThat(PathUtils.concat("a", "../b"), equalTo(sep("b"))); assertThat(PathUtils.concat("../a", "b"), equalTo(sep(parentDir + "/a/b"))); assertThat(PathUtils.concat("../a", "../b"), equalTo(sep(parentDir + "/b"))); }
public static String normalize(String filename) { if (filename == null) return null; return normalizeInternal(normalizeSeparator(filename)); }
PathUtils { public static String normalize(String filename) { if (filename == null) return null; return normalizeInternal(normalizeSeparator(filename)); } }
PathUtils { public static String normalize(String filename) { if (filename == null) return null; return normalizeInternal(normalizeSeparator(filename)); } private  PathUtils(); }
PathUtils { public static String normalize(String filename) { if (filename == null) return null; return normalizeInternal(normalizeSeparator(filename)); } private  PathUtils(); static String normalizeSeparator(String filename); static String normalize(String filename); static String concat(String parent, String child); static String relativize(String from, String to); }
PathUtils { public static String normalize(String filename) { if (filename == null) return null; return normalizeInternal(normalizeSeparator(filename)); } private  PathUtils(); static String normalizeSeparator(String filename); static String normalize(String filename); static String concat(String parent, String child); static String relativize(String from, String to);  }