You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by kh...@apache.org on 2018/06/24 21:44:40 UTC
[maven-artifact-transfer] 12/12: [MSHARED-695] - WIP - Move
checksum generation from install to deploy o Continued.
This is an automated email from the ASF dual-hosted git repository.
khmarbaise pushed a commit to branch MSHARED-695
in repository https://gitbox.apache.org/repos/asf/maven-artifact-transfer.git
commit cf55484f08ae39c92582dbb2a09c0162108dd345
Author: Karl Heinz Marbaise <kh...@apache.org>
AuthorDate: Sun Jun 24 23:04:11 2018 +0200
[MSHARED-695] - WIP - Move checksum generation from install to deploy
o Continued.
---
.../plugin/project/install/ProjectInstallerTest.java | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/src/it/maven-project-installer-plugin/src/test/java/org/apache/maven/plugin/project/install/ProjectInstallerTest.java b/src/it/maven-project-installer-plugin/src/test/java/org/apache/maven/plugin/project/install/ProjectInstallerTest.java
index cb47067..316b26e 100644
--- a/src/it/maven-project-installer-plugin/src/test/java/org/apache/maven/plugin/project/install/ProjectInstallerTest.java
+++ b/src/it/maven-project-installer-plugin/src/test/java/org/apache/maven/plugin/project/install/ProjectInstallerTest.java
@@ -141,8 +141,8 @@ public class ProjectInstallerTest
"PROJECT-INSTALLER-GROUPID-701-" + mvnVersion + "maven-project-installer-project-701/2.0.701/" );
checkForPomFile( baseDirectoy, "maven-project-installer-project-701", "2.0.701" );
-
- checkForJarFile( baseDirectoy, "maven-project-installer-project-701", "2.0.701" );
+
+ checkForNonExistingJarFile( baseDirectoy, "maven-project-installer-project-701", "2.0.701" );
checkForJarClassifierFile( baseDirectoy, "maven-project-installer-project-701", "2.0.701" );
@@ -167,9 +167,19 @@ public class ProjectInstallerTest
private void checkForPomFile( File baseDirectoy, String baseArtifact, String version )
{
- File pomFile = new File( baseDirectoy, "maven-project-installer-plugin-it-1.0.0-A.pom" );
+ File pomFile = new File( baseDirectoy, baseArtifact + "-" + version + ".pom" );
assertTrue( "pomFile '" + pomFile.getAbsolutePath() + "'", pomFile.exists() );
assertFalse( "pom md5 not found.", new File( pomFile.getAbsolutePath() + ".md5" ).exists() );
assertFalse( "pom sha1 not found.", new File( pomFile.getAbsolutePath() + ".sha1" ).exists() );
}
+
+ private void checkForNonExistingJarFile( File baseDirectoy, String baseArtifact, String version )
+ {
+ File jarFile = new File( baseDirectoy, baseArtifact + "-" + version + ".jar" );
+ assertFalse( "jarFile '" + jarFile.getAbsolutePath() + "'", jarFile.exists() );
+ assertFalse( "jar md5 not found.", new File( jarFile.getAbsolutePath() + ".md5" ).exists() );
+ assertFalse( "jar sha1 not found.", new File( jarFile.getAbsolutePath() + ".sha1" ).exists() );
+ }
+
+
}