assertTrue(new File(cache, "apache/module2/task2/1976/module2-linux.jar").exists());
}
public void testExtraAttributes3() throws Exception {
// test case for IVY-745
MockMessageLogger mockLogger = new MockMessageLogger();
Ivy ivy = new Ivy();
ivy.getLoggerEngine().setDefaultLogger(mockLogger);
ivy.configure(new File("test/repositories/extra-attributes/ivysettings.xml"));
ivy.getSettings().setDefaultCache(cache);
ivy.getSettings().validate();
ResolveReport report = ivy.resolve(ResolveTest.class.getResource("ivy-extra-att3.xml"),
getResolveOptions(ivy.getSettings(), new String[] {"*"}).setValidate(false));
assertTrue(report.hasError());
// should report error about missing extra attribute in dependency module descriptor
mockLogger.assertLogContains("expected='task2' found='null'");
}