protected void assertArchetypeCreated(String artifactId, String groupId) throws Exception {
assertArchetypeCreated(artifactId, groupId, camelVersion);
}
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);