public static Artifact mockImportedArtifact ( int id ) { return getArtifactBuilder ( id ) . importDate ( Date . from ( Instant . now ( ) ) ) . originUrl ( "http://central.maven.org/org/jboss/mock/artifactFile" + id + ".jar" ) . build ( ) ; }
Create an artifact with an import date and origin url