You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by be...@apache.org on 2009/01/01 19:42:10 UTC

svn commit: r730585 - in /maven/core-integration-testing/trunk/core-it-suite/src/test: java/org/apache/maven/it/MavenITmng2744checksumVerificationTest.java resources/mng-2744/pom.xml

Author: bentmann
Date: Thu Jan  1 10:42:09 2009
New Revision: 730585

URL: http://svn.apache.org/viewvc?rev=730585&view=rev
Log:
o Decoupled from production plugins

Modified:
    maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng2744checksumVerificationTest.java
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2744/pom.xml

Modified: maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng2744checksumVerificationTest.java
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng2744checksumVerificationTest.java?rev=730585&r1=730584&r2=730585&view=diff
==============================================================================
--- maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng2744checksumVerificationTest.java (original)
+++ maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng2744checksumVerificationTest.java Thu Jan  1 10:42:09 2009
@@ -20,14 +20,15 @@
  */
 
 import java.io.File;
-import java.util.ArrayList;
-import java.util.List;
 
 import org.apache.maven.it.Verifier;
 import org.apache.maven.it.util.ResourceExtractor;
 
 /**
- * Tests that artifact checksums are properly verified.
+ * This is a test set for <a href="http://jira.codehaus.org/browse/MNG-2744">MNG-2744</a>.
+ * 
+ * @author Benjamin Bentmann
+ * @version $Id$
  */
 public class MavenITmng2744checksumVerificationTest
     extends AbstractMavenIntegrationTestCase
@@ -39,7 +40,7 @@
     }
 
     /**
-     * Tests that hex digits are compared without regard to case.
+     * Tests that hex digits of checksums are compared without regard to case.
      */
     public void testitMNG2744()
         throws Exception
@@ -47,15 +48,16 @@
         File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-2744" );
 
         Verifier verifier = new Verifier( testDir.getAbsolutePath() );
-
-        verifier.deleteArtifact( "org.apache.maven.its.mng2744", "a", "1", "pom" );
-        verifier.deleteArtifact( "org.apache.maven.its.mng2744", "a", "1", "jar" );
-        verifier.deleteArtifact( "org.apache.maven.its.mng2744", "b", "1", "pom" );
-        verifier.deleteArtifact( "org.apache.maven.its.mng2744", "b", "1", "jar" );
-
-        verifier.executeGoal( "compile" );
+        verifier.setAutoclean( false );
+        verifier.deleteArtifacts( "org.apache.maven.its.mng2744" );
+        verifier.executeGoal( "validate" );
         verifier.verifyErrorFreeLog();
         verifier.resetStreams();
+
+        verifier.assertArtifactPresent( "org.apache.maven.its.mng2744", "a", "1", "jar" );
+        verifier.assertArtifactPresent( "org.apache.maven.its.mng2744", "a", "1", "pom" );
+        verifier.assertArtifactPresent( "org.apache.maven.its.mng2744", "b", "1", "jar" );
+        verifier.assertArtifactPresent( "org.apache.maven.its.mng2744", "b", "1", "pom" );
     }
 
 }

Modified: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2744/pom.xml
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2744/pom.xml?rev=730585&r1=730584&r2=730585&view=diff
==============================================================================
--- maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2744/pom.xml (original)
+++ maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-2744/pom.xml Thu Jan  1 10:42:09 2009
@@ -1,14 +1,36 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<project
-    xmlns="http://maven.apache.org/POM/4.0.0"
-    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<project>
   <modelVersion>4.0.0</modelVersion>
+
   <groupId>org.apache.maven.its.mng2744</groupId>
-  <artifactId>mng2744</artifactId>
+  <artifactId>test</artifactId>
   <packaging>jar</packaging>
   <version>1</version>
-  <name>[MNG-2744] checksum comparison should be case-insensitive</name>
+
+  <name>Maven Integration Test :: MNG-2744</name> 
+  <description>
+    Tests that hex digits of checksums are compared without regard to case.
+  </description>
 
   <dependencies>
     <dependency>
@@ -35,4 +57,23 @@
       </snapshots>
     </repository>
   </repositories>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.its.plugins</groupId>
+        <artifactId>maven-it-plugin-dependency-resolution</artifactId>
+        <version>2.1-SNAPSHOT</version>
+        <executions>
+          <execution>
+            <id>test</id>
+            <phase>validate</phase>
+            <goals>
+              <goal>compile</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
 </project>