Fix grab test

This commit is contained in:
Dave Syer 2014-01-06 09:52:00 +00:00
parent df476bed1f
commit e48ddaeb99
2 changed files with 2 additions and 1 deletions

View File

@ -268,7 +268,7 @@ public class AetherGrapeEngine implements GrapeEngine {
builder.setProxy(this.proxySelector.getProxy(repository));
repository = builder.build();
}
this.repositories.add(repository);
this.repositories.add(0, repository);
}
@Override

View File

@ -56,6 +56,7 @@ public class GrabCommandIntegrationTests {
String output = this.cli.grab("grab.groovy", "--autoconfigure=false");
assertTrue(new File("target/repository/net/sf/jopt-simple/jopt-simple")
.isDirectory());
// Should be resolved from local repository cache
assertTrue(output.contains("Downloading: file:"));
}
}