@Test(groups = {"functional"}) public void testPackageNameToAbsolute() throws Exception { assertEquals("/foo/toto/bar.txt", packageNameToAbsolute("foo.toto", "./bar.txt")); assertEquals("/foo/toto/titi/bar.txt", packageNameToAbsolute("foo.toto", "./titi/bar.txt")); assertEquals("/bar.txt", packageNameToAbsolute("foo", "../bar.txt")); }
public static String packageNameToAbsolute(final String packageName, final String path) throws InvalidRelativPathException { return toAbsolute(packageNameToDirName(packageName), path); }
PathHelper { public static String packageNameToAbsolute(final String packageName, final String path) throws InvalidRelativPathException { return toAbsolute(packageNameToDirName(packageName), path); } }
PathHelper { public static String packageNameToAbsolute(final String packageName, final String path) throws InvalidRelativPathException { return toAbsolute(packageNameToDirName(packageName), path); } private  PathHelper(); }
PathHelper { public static String packageNameToAbsolute(final String packageName, final String path) throws InvalidRelativPathException { return toAbsolute(packageNameToDirName(packageName), path); } private  PathHelper(); static boolean isValid(final String path); static boolean isRelative(final String path); static String getParent(final String path); static String getFileName(final String path); static String getExtension(final String path); static String removeExtension(final String path); static String replaceExtension(final String path, String extension); static String toAbsolute(String dirName, String path); static String fullyQualifiedNameToDirName(
      final String fullyQualifiedName); static String packageNameToDirName(final String packageName); static String fullyQualifiedNameToAbsolute(
      final String fullyQualifiedName, final String path); static String packageNameToAbsolute(final String packageName,
      final String path); static String fullyQualifiedNameToPath(
      final String fullyQualifiedName, final String extension); static String fullyQualifiedNameToPath(
      final String fullyQualifiedName, final String suffix,
      final String extension); }
PathHelper { public static String packageNameToAbsolute(final String packageName, final String path) throws InvalidRelativPathException { return toAbsolute(packageNameToDirName(packageName), path); } private  PathHelper(); static boolean isValid(final String path); static boolean isRelative(final String path); static String getParent(final String path); static String getFileName(final String path); static String getExtension(final String path); static String removeExtension(final String path); static String replaceExtension(final String path, String extension); static String toAbsolute(String dirName, String path); static String fullyQualifiedNameToDirName(
      final String fullyQualifiedName); static String packageNameToDirName(final String packageName); static String fullyQualifiedNameToAbsolute(
      final String fullyQualifiedName, final String path); static String packageNameToAbsolute(final String packageName,
      final String path); static String fullyQualifiedNameToPath(
      final String fullyQualifiedName, final String extension); static String fullyQualifiedNameToPath(
      final String fullyQualifiedName, final String suffix,
      final String extension); static final String PATH_REGEXP; }