You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by pg...@apache.org on 2008/05/15 23:18:21 UTC
svn commit: r656843 -
/maven/core-integration-testing/trunk/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3545ProfileDeactivation.java
Author: pgier
Date: Thu May 15 14:18:20 2008
New Revision: 656843
URL: http://svn.apache.org/viewvc?rev=656843&view=rev
Log:
[MNG-3571] small change to this test to cover behaviour from related issue MNG-3571
Modified:
maven/core-integration-testing/trunk/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3545ProfileDeactivation.java
Modified: maven/core-integration-testing/trunk/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3545ProfileDeactivation.java
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3545ProfileDeactivation.java?rev=656843&r1=656842&r2=656843&view=diff
==============================================================================
--- maven/core-integration-testing/trunk/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3545ProfileDeactivation.java (original)
+++ maven/core-integration-testing/trunk/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenITmng3545ProfileDeactivation.java Thu May 15 14:18:20 2008
@@ -55,7 +55,7 @@
* Test command line deactivation of active by default profiles.
*
*/
- public void testDeactivateDefaultProfiles()
+ public void testDeactivateDefaultProfilesDash()
throws Exception
{
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-3545-ProfileDeactivation" );
@@ -80,6 +80,31 @@
}
+ public void testDeactivateDefaultProfilesExclamation()
+ throws Exception
+ {
+ File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-3545-ProfileDeactivation" );
+
+ Verifier verifier;
+
+ verifier = new Verifier( testDir.getAbsolutePath() );
+
+ List cliOptions = new ArrayList();
+
+ // Deactivate active by default profiles
+ cliOptions.add( "-P!profile1" );
+ cliOptions.add( "-P !profile2" );
+
+ verifier.setCliOptions( cliOptions );
+ verifier.executeGoal( "package" );
+
+ verifier.verifyErrorFreeLog();
+ verifier.assertFileNotPresent( "target/profile1/touch.txt" );
+ verifier.assertFileNotPresent( "target/profile2/touch.txt" );
+ verifier.resetStreams();
+
+ }
+
/**
* Test command line deactivation of a profile that was activated
* by a property