mirror of https://github.com/apache/maven.git
o Decoupled IT from assumption that reporting config => build config
git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@785729 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d0f6936bbc
commit
c6ba6e5741
|
@ -55,11 +55,13 @@ public class MavenITmng3811ReportingPluginConfigurationInheritanceTest
|
|||
verifier.verifyErrorFreeLog();
|
||||
verifier.resetStreams();
|
||||
|
||||
Properties props = verifier.loadProperties( "target/pom.properties" );
|
||||
assertEquals( "2", props.getProperty( "stringParams" ) );
|
||||
assertEquals( "parentParam", props.getProperty( "stringParams.0" ) );
|
||||
assertEquals( "childParam", props.getProperty( "stringParams.1" ) );
|
||||
assertEquals( "true", props.getProperty( "booleanParam" ) );
|
||||
Properties props = verifier.loadProperties( "target/config.properties" );
|
||||
String p = "project.reporting.plugins.0.configuration.children.";
|
||||
|
||||
assertEquals( "2", props.getProperty( p + "stringParams.0.children" ) );
|
||||
assertEquals( "parentParam", props.getProperty( p + "stringParams.0.children.stringParam.0.value" ) );
|
||||
assertEquals( "childParam", props.getProperty( p + "stringParams.0.children.stringParam.1.value" ) );
|
||||
assertEquals( "true", props.getProperty( p + "booleanParam.0.value" ) );
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -33,22 +33,27 @@
|
|||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-configuration</artifactId>
|
||||
<artifactId>maven-it-plugin-expression</artifactId>
|
||||
<version>2.1-SNAPSHOT</version>
|
||||
<configuration>
|
||||
<propertiesFile>target/pom.properties</propertiesFile>
|
||||
<outputFile>target/config.properties</outputFile>
|
||||
<expressions>
|
||||
<expression>project/reporting/plugins/0/configuration</expression>
|
||||
</expressions>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>test</id>
|
||||
<phase>validate</phase>
|
||||
<goals>
|
||||
<goal>config</goal>
|
||||
<goal>eval</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
<reporting>
|
||||
<plugins>
|
||||
<plugin>
|
||||
|
@ -64,4 +69,3 @@
|
|||
</plugins>
|
||||
</reporting>
|
||||
</project>
|
||||
|
||||
|
|
Loading…
Reference in New Issue