maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bentm...@apache.org
Subject svn commit: r795151 - /maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng2576MakeLikeReactorTest.java
Date Fri, 17 Jul 2009 17:18:03 GMT
Author: bentmann
Date: Fri Jul 17 17:18:03 2009
New Revision: 795151

URL: http://svn.apache.org/viewvc?rev=795151&view=rev
Log:
[MNG-4244] Allow to select project for make-like reactor by artifact id

o Added IT

Modified:
    maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng2576MakeLikeReactorTest.java

Modified: maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng2576MakeLikeReactorTest.java
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng2576MakeLikeReactorTest.java?rev=795151&r1=795150&r2=795151&view=diff
==============================================================================
--- maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng2576MakeLikeReactorTest.java
(original)
+++ maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng2576MakeLikeReactorTest.java
Fri Jul 17 17:18:03 2009
@@ -181,7 +181,7 @@
     /**
      * Verify that the project list can also specify project ids.
      */
-    public void testitMakeById()
+    public void testitMatchesById()
         throws Exception
     {
         File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-2576"
);
@@ -204,6 +204,34 @@
     }
 
     /**
+     * Verify that the project list can also specify aritfact ids.
+     */
+    public void testitMatchesByArtifactId()
+        throws Exception
+    {
+        // as per MNG-4244
+        requiresMavenVersion( "[3.0-alpha-3,)" );
+
+        File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-2576"
);
+
+        Verifier verifier = new Verifier( testDir.getAbsolutePath() );
+        verifier.setAutoclean( false );
+        clean( verifier );
+        verifier.getCliOptions().add( "-pl" );
+        verifier.getCliOptions().add( ":sub-b" );
+        verifier.setLogFileName( "log-artifact-id.txt" );
+        verifier.executeGoal( "validate" );
+        verifier.verifyErrorFreeLog();
+        verifier.resetStreams();
+
+        verifier.assertFileNotPresent( "target/touch.txt" );
+        verifier.assertFileNotPresent( "sub-a/target/touch.txt" );
+        verifier.assertFilePresent( "sub-b/target/touch.txt" );
+        verifier.assertFileNotPresent( "sub-c/target/touch.txt" );
+        verifier.assertFileNotPresent( "sub-d/target/touch.txt" );
+    }
+
+    /**
      * Verify that reactor is resumed from specified project.
      */
     public void testitResumeFrom()



Mime
View raw message