use of io.fabric8.insight.maven.aether.AetherResult in project fabric8 by fabric8io.
the class ArchetypeTest method assertArchetypeCreated.
private void assertArchetypeCreated(String artifactId, String groupId, String version) throws Exception {
AetherResult result = aether.resolve(groupId, artifactId, version);
List<File> files = result.getResolvedFiles();
assertTrue("No files resolved for " + artifactId + " version: " + version, files.size() > 0);
File archetypejar = files.get(0);
assertTrue("archetype jar does not exist", archetypejar.exists());
assertArchetypeCreated(artifactId, groupId, version, archetypejar);
}
Aggregations