use of org.apache.maven.plugins.ear.stub.ArtifactTestStub in project maven-plugins by apache.
the class AbstractEarTestBase method createArtifacts.
protected Set<Artifact> createArtifacts(String[] artifactsId, String[] types, String[] groupsId, String[] classifiers) {
Set<Artifact> result = new TreeSet<Artifact>();
if (artifactsId == null || artifactsId.length == 0) {
return result;
}
for (int i = 0; i < artifactsId.length; i++) {
String artifactId = artifactsId[i];
String type = getData(types, i, DEFAULT_TYPE);
String groupId = getData(groupsId, i, DEFAULT_GROUPID);
String classifier = getData(classifiers, i, null);
result.add(new ArtifactTestStub(groupId, artifactId, type, classifier));
}
return result;
}
Aggregations