@Test public void getFormattedFileNameWithoutClassifierTest() { artifactCoordinates.setClassifier(StringUtils.EMPTY); artifact = new Artifact(artifactCoordinates, URI.create(RESOURCE_FULL_PATH)); String actual = artifact.getFormattedArtifactFileName(); String expected = ARTIFACT_ID + "-" + VERSION + "." + TYPE; assertThat("Formatted file name is different from the expected", actual, equalTo(expected)); }
public static String getFormattedArtifactFileName(Artifact artifact) { ArtifactCoordinates artifactCoordinates = artifact.getArtifactCoordinates(); String destFileName = buildMainFileName(artifactCoordinates); String extension = artifactCoordinates.getType(); return destFileName + "." + extension; }
Artifact implements Comparable { public static String getFormattedArtifactFileName(Artifact artifact) { ArtifactCoordinates artifactCoordinates = artifact.getArtifactCoordinates(); String destFileName = buildMainFileName(artifactCoordinates); String extension = artifactCoordinates.getType(); return destFileName + "." + extension; } }
Artifact implements Comparable { public static String getFormattedArtifactFileName(Artifact artifact) { ArtifactCoordinates artifactCoordinates = artifact.getArtifactCoordinates(); String destFileName = buildMainFileName(artifactCoordinates); String extension = artifactCoordinates.getType(); return destFileName + "." + extension; } Artifact(ArtifactCoordinates artifactCoordinates, URI uri); }
Artifact implements Comparable { public static String getFormattedArtifactFileName(Artifact artifact) { ArtifactCoordinates artifactCoordinates = artifact.getArtifactCoordinates(); String destFileName = buildMainFileName(artifactCoordinates); String extension = artifactCoordinates.getType(); return destFileName + "." + extension; } Artifact(ArtifactCoordinates artifactCoordinates, URI uri); ArtifactCoordinates getArtifactCoordinates(); URI getUri(); void setUri(URI uri); @Override String toString(); @Override int compareTo(Object that); @Override boolean equals(Object o); @Override int hashCode(); Artifact copyWithParameterizedUri(); static File getFormattedMavenDirectory(File outputDirectory, ArtifactCoordinates artifactCoordinates); static String getFormattedArtifactFileName(Artifact artifact); void setNewArtifactURI(Artifact newArtifact, File newArtifactFile); static String getPomFileName(Artifact artifact); static String buildMainPOMFileName(ArtifactCoordinates artifactCoordinates); String getPomFileName(); boolean isShared(); void setShared(boolean isShared); String getFormattedArtifactFileName(); File getFormattedMavenDirectory(File repositoryFile); @CheckForNull String[] getPackages(); @CheckForNull String[] getResources(); void setPackages(String[] packages); void setResources(String[] resources); }
Artifact implements Comparable { public static String getFormattedArtifactFileName(Artifact artifact) { ArtifactCoordinates artifactCoordinates = artifact.getArtifactCoordinates(); String destFileName = buildMainFileName(artifactCoordinates); String extension = artifactCoordinates.getType(); return destFileName + "." + extension; } Artifact(ArtifactCoordinates artifactCoordinates, URI uri); ArtifactCoordinates getArtifactCoordinates(); URI getUri(); void setUri(URI uri); @Override String toString(); @Override int compareTo(Object that); @Override boolean equals(Object o); @Override int hashCode(); Artifact copyWithParameterizedUri(); static File getFormattedMavenDirectory(File outputDirectory, ArtifactCoordinates artifactCoordinates); static String getFormattedArtifactFileName(Artifact artifact); void setNewArtifactURI(Artifact newArtifact, File newArtifactFile); static String getPomFileName(Artifact artifact); static String buildMainPOMFileName(ArtifactCoordinates artifactCoordinates); String getPomFileName(); boolean isShared(); void setShared(boolean isShared); String getFormattedArtifactFileName(); File getFormattedMavenDirectory(File repositoryFile); @CheckForNull String[] getPackages(); @CheckForNull String[] getResources(); void setPackages(String[] packages); void setResources(String[] resources); static final String MULE_DOMAIN; }