mirror of https://github.com/apache/maven.git
[MNG-4244] Allow to select project for make-like reactor by artifact id
o Added IT git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@795151 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
04155f8559
commit
7f25ba33bc
|
@ -181,7 +181,7 @@ public class MavenITmng2576MakeLikeReactorTest
|
|||
/**
|
||||
* 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" );
|
||||
|
@ -203,6 +203,34 @@ public class MavenITmng2576MakeLikeReactorTest
|
|||
verifier.assertFileNotPresent( "sub-d/target/touch.txt" );
|
||||
}
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue