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
The following commit(s) were added to refs/heads/MSHARED-695 by this push:
new a9df80b [MSHARED-695] - WIP - Move checksum generation from install
to deploy o Continued.
a9df80b is described below
commit a9df80ba9c148794181a4d581ab82e24c6af8f47
Author: Karl Heinz Marbaise <[email protected]>
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() );
+ }
+
+
}