ThinArchiveUtils { public static DependencyFile getDependencyFile(final File projectFolder, final Dependency d) { return d.makeDependencyFile(new File(projectFolder, d.getDestination() + File.separator + d.getFileName())); }  static File getStartupDependenciesFile(final File projectFolder); static DependencyFile getDependencyFile(final File projectFolder, final Dependency d); static Set<Dependency> parseStartupDependencies(final String rawJson); static Set<Dependency> parseStartupDependencies(final File f); static void writeStartupDependencies(final File f,
      final Set<Dependency> dependencies); static String convertIvyCoordinateToPath(final Dependency dep); static String replaceLocalPathsWithStoragePaths(final File projectFolder,
      String localJarSpec, final Props jobProps, final Logger log); static void validateDependencyHash(final DependencyFile f); static void validateDependencyHash(final File f, final Dependency d); static Set<Dependency> filterNullFromDeps(Set<Dependency> dependencies); static final String DEPENDENCY_STORAGE_ROOT_PATH_PROP; }
@Test public void testGetDependencyFile() throws Exception { File someFolder = TEMP_DIR.newFolder("someproject"); DependencyFile dependencyFile = ThinArchiveUtils.getDependencyFile(someFolder, ThinArchiveTestUtils.getDepA()); DependencyFile expectedDependencyFile = ThinArchiveTestUtils.getDepA().makeDependencyFile( new File(someFolder, ThinArchiveTestUtils.getDepA().getDestination() + File.separator + ThinArchiveTestUtils.getDepA().getFileName())); assertEquals(expectedDependencyFile, dependencyFile); }