@Test public void testAsArtifact() throws Exception { Artifact artifact = new MavenCoordinate(FOO, BAR, QUX, JAR).asArtifact(); assertThat(artifact.getGroupId(), is(FOO)); assertThat(artifact.getArtifactId(), is(BAR)); assertThat(artifact.getVersion(), is(QUX)); assertThat(artifact.getExtension(), is(JAR)); }
public Artifact asArtifact() { return new DefaultArtifact(groupId, artifactId, packaging, version); }
MavenCoordinate { public Artifact asArtifact() { return new DefaultArtifact(groupId, artifactId, packaging, version); } }
MavenCoordinate { public Artifact asArtifact() { return new DefaultArtifact(groupId, artifactId, packaging, version); } protected  MavenCoordinate(String groupId, String artifactId, String version, String packaging); }
MavenCoordinate { public Artifact asArtifact() { return new DefaultArtifact(groupId, artifactId, packaging, version); } protected  MavenCoordinate(String groupId, String artifactId, String version, String packaging); Artifact asArtifact(); @Override boolean equals(Object object); @Override int hashCode(); @Override String toString(); }
MavenCoordinate { public Artifact asArtifact() { return new DefaultArtifact(groupId, artifactId, packaging, version); } protected  MavenCoordinate(String groupId, String artifactId, String version, String packaging); Artifact asArtifact(); @Override boolean equals(Object object); @Override int hashCode(); @Override String toString();  }