maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1481291 - /maven/plugins/trunk/maven-dependency-plugin/src/it/copy-dependencies/verify.bsh
Date Sat, 11 May 2013 11:13:35 GMT
Author: hboutemy
Date: Sat May 11 11:13:34 2013
New Revision: 1481291

URL: http://svn.apache.org/r1481291
Log:
[MDEP-411] added IT checking for unexpected pom in root of repository in addition to expected
content in the repo

Modified:
    maven/plugins/trunk/maven-dependency-plugin/src/it/copy-dependencies/verify.bsh

Modified: maven/plugins/trunk/maven-dependency-plugin/src/it/copy-dependencies/verify.bsh
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/copy-dependencies/verify.bsh?rev=1481291&r1=1481290&r2=1481291&view=diff
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/copy-dependencies/verify.bsh (original)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/copy-dependencies/verify.bsh Sat May
11 11:13:34 2013
@@ -38,7 +38,7 @@ String[] expectedFiles = {
     "plexus-utils-1.4.1.jar",
     "plexus-utils-1.4.1.pom",
     "maven-model-2.0.6-sources.jar",
-    "maven-model-2.0.6-javadoc.jar",
+    "maven-model-2.0.6-javadoc.jar"
 };
 
 checkExpected( new File( baseOutput, "copy-dep-test-1" ), expectedFiles );
@@ -47,14 +47,14 @@ checkExpected( new File( baseOutput, "co
 // test-2
 String [] expectedFiles2 = {
     "maven-model-2.0.6.jar",
-    "plexus-utils-1.4.1.jar",
+    "plexus-utils-1.4.1.jar"
 };
 
 String [] unexpectedFiles2 = {
     "plexus-utils-1.4.1.pom",
     "maven-model-2.0.6.pom",
     "maven-model-2.0.6-sources.jar",
-    "maven-model-2.0.6-javadoc.jar",
+    "maven-model-2.0.6-javadoc.jar"
 };
 
 checkExpected( new File( baseOutput, "copy-dep-test-2" ), expectedFiles2, unexpectedFiles2
);
@@ -63,7 +63,7 @@ checkExpected( new File( baseOutput, "co
 
 // test-3
 String [] expectedFiles3 = {
-    "maven-model-2.0.6-sources.jar",
+    "maven-model-2.0.6-sources.jar"
 };
 
 String [] unexpectedFiles3 = {
@@ -71,10 +71,29 @@ String [] unexpectedFiles3 = {
     "maven-model-2.0.6.pom",
     "maven-model-2.0.6-javadoc.jar",
     "maven-model-2.0.6.jar",
-    "plexus-utils-1.4.1.jar",
+    "plexus-utils-1.4.1.jar"
 };
 
 checkExpected( new File( baseOutput, "copy-dep-test-3" ), expectedFiles3, unexpectedFiles3
);
 
 
+// repositoryLayout
+String [] expectedFiles4 = {
+    "org/apache/maven/maven-model/maven-metadata-local.xml",
+    "org/apache/maven/maven-model/2.0.6/maven-model-2.0.6.jar",
+    "org/apache/maven/maven-model/2.0.6/maven-model-2.0.6.pom",
+    "org/apache/maven/maven-model/2.0.6/maven-model-2.0.6-sources.jar",
+    "org/apache/maven/maven-model/2.0.6/maven-model-2.0.6-javadoc.jar",
+    "org/codehaus/plexus/plexus-utils/maven-metadata-local.xml",
+    "org/codehaus/plexus/plexus-utils/1.4.1/plexus-utils-1.4.1.jar",
+    "org/codehaus/plexus/plexus-utils/1.4.1/plexus-utils-1.4.1.pom"
+};
+
+String [] unexpectedFiles4 = {
+    "plexus-utils-1.4.1.pom",
+    "maven-model-2.0.6.pom"
+};
+
+checkExpected( new File( baseOutput, "repositoryLayout" ), expectedFiles4, unexpectedFiles4
);
+
 return true;



Mime
View raw message