Search in sources :

Example 1 with ArtifactTestStub

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;
}
Also used : ArtifactTestStub(org.apache.maven.plugins.ear.stub.ArtifactTestStub) TreeSet(java.util.TreeSet) Artifact(org.apache.maven.artifact.Artifact)

Aggregations

TreeSet (java.util.TreeSet)1 Artifact (org.apache.maven.artifact.Artifact)1 ArtifactTestStub (org.apache.maven.plugins.ear.stub.ArtifactTestStub)1