improved IT to success if settings defines additional properties

This commit is contained in:
Hervé Boutemy 2014-06-01 00:20:13 +02:00
parent 8988fc794e
commit 68979ecc30
2 changed files with 24 additions and 7 deletions

View File

@ -52,7 +52,6 @@ public class MavenITmng5608ProfileActivationWarningTest
// check expected profiles activated, just for sanity
Properties props = verifier.loadProperties( "target/project.properties" );
assertEquals( "expected 2 active profiles", 2, props.size() );
assertEquals( "expected profile exists-basedir", "expected active profile",
props.getProperty( "exists-basedir" ) );
assertEquals( "expected profile mng-5608-missing-project.basedir", "expected active profile",

View File

@ -56,9 +56,18 @@ under the License.
<exists>${project.basedir}/pom.xml</exists>
</file>
</activation>
<properties>
<mng-5608-exists-project.basedir>unexpected active profile</mng-5608-exists-project.basedir>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-touch</artifactId>
<version>2.1-SNAPSHOT</version>
<configuration>
<fail>true</fail><!-- this profile should not be activated -->
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>mng-5608-missing-project.basedir</id>
@ -91,9 +100,18 @@ under the License.
<missing>${basedir}/pom.xml</missing>
</file>
</activation>
<properties>
<missing-basedir>unexpected active profile</missing-basedir>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.its.plugins</groupId>
<artifactId>maven-it-plugin-touch</artifactId>
<version>2.1-SNAPSHOT</version>
<configuration>
<fail>true</fail><!-- this profile should not be activated -->
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>