.exists());
assertTrue(getArchiveFileInCache("org1", "mod1.2", "2.0", "mod1.2", "jar", "jar").exists());
}
public void testResolverDirectlyUsingCache() throws Exception {
Ivy ivy = new Ivy();
ivy.configure(ResolveTest.class.getResource("badcacheconf.xml"));
File depIvyFileInCache = getIvyFileInCache(ModuleRevisionId.newInstance("org1", "mod1.1",
"1.0"));
FileUtil.copy(File.createTempFile("test", "xml"), depIvyFileInCache, null); // creates a
// fake
// dependency
// file in cache
ResolveReport report = ivy.resolve(new File(
"test/repositories/1/org2/mod2.4/ivys/ivy-0.3.xml"),
getResolveOptions(new String[] {"*"}));
assertNotNull(report);
ModuleDescriptor md = report.getModuleDescriptor();