| package org.apache.maven.integrationtests; |
| |
| import org.apache.maven.it.Verifier; |
| import org.apache.maven.it.util.ResourceExtractor; |
| |
| import java.io.File; |
| import java.util.Properties; |
| |
| public class MavenIT0022Test |
| extends AbstractMavenIntegrationTestCase |
| { |
| |
| /** |
| * Test profile inclusion from profiles.xml (this one is activated by system |
| * property). |
| */ |
| public void testit0022() |
| throws Exception |
| { |
| File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/it0022" ); |
| Verifier verifier = new Verifier( testDir.getAbsolutePath() ); |
| Properties systemProperties = new Properties(); |
| systemProperties.put( "includeProfile", "true" ); |
| verifier.setSystemProperties( systemProperties ); |
| verifier.executeGoal( "org.apache.maven.its.plugins:maven-it-plugin-touch:touch" ); |
| verifier.assertFilePresent( "target/test.txt" ); |
| verifier.verifyErrorFreeLog(); |
| verifier.resetStreams(); |
| |
| } |
| } |
| |