mirror of https://github.com/apache/maven.git
o Fixed typos in expression
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@757540 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f4d71c3b48
commit
1123131b32
|
@ -499,36 +499,36 @@ public class PomConstructionTest
|
|||
PomTestWrapper pom = buildPom( "merged-plugin-class-path-order/wo-plugin-mngt/sub" );
|
||||
System.out.println(pom.getDomainModel().asString());
|
||||
assertEquals( 5, ( (List<?>) pom.getValue( "build/plugins[1]/dependencies" ) ).size() );
|
||||
assertNotNull( pom.getValue( "build/plugins[1]/dependency[1]" ));
|
||||
assertEquals( "c", pom.getValue( "build/plugins[1]/dependency[1]/artifactId" ) );
|
||||
assertEquals( "1", pom.getValue( "build/plugins[1]/dependency[1]/version" ) );
|
||||
assertEquals( "a", pom.getValue( "build/plugins[1]/dependency[2]/artifactId" ) );
|
||||
assertEquals( "2", pom.getValue( "build/plugins[1]/dependency[2]/version" ) );
|
||||
assertEquals( "b", pom.getValue( "build/plugins[1]/dependency[3]/artifactId" ) );
|
||||
assertEquals( "1", pom.getValue( "build/plugins[1]/dependency[3]/version" ) );
|
||||
assertEquals( "e", pom.getValue( "build/plugins[1]/dependency[4]/artifactId" ) );
|
||||
assertEquals( "1", pom.getValue( "build/plugins[1]/dependency[4]/version" ) );
|
||||
assertEquals( "d", pom.getValue( "build/plugins[1]/dependency[5]/artifactId" ) );
|
||||
assertEquals( "1", pom.getValue( "build/plugins[1]/dependency[5]/version" ) );
|
||||
assertNotNull( pom.getValue( "build/plugins[1]/dependencies[1]" ));
|
||||
assertEquals( "c", pom.getValue( "build/plugins[1]/dependencies[1]/artifactId" ) );
|
||||
assertEquals( "1", pom.getValue( "build/plugins[1]/dependencies[1]/version" ) );
|
||||
assertEquals( "a", pom.getValue( "build/plugins[1]/dependencies[2]/artifactId" ) );
|
||||
assertEquals( "2", pom.getValue( "build/plugins[1]/dependencies[2]/version" ) );
|
||||
assertEquals( "b", pom.getValue( "build/plugins[1]/dependencies[3]/artifactId" ) );
|
||||
assertEquals( "1", pom.getValue( "build/plugins[1]/dependencies[3]/version" ) );
|
||||
assertEquals( "e", pom.getValue( "build/plugins[1]/dependencies[4]/artifactId" ) );
|
||||
assertEquals( "1", pom.getValue( "build/plugins[1]/dependencies[4]/version" ) );
|
||||
assertEquals( "d", pom.getValue( "build/plugins[1]/dependencies[5]/artifactId" ) );
|
||||
assertEquals( "1", pom.getValue( "build/plugins[1]/dependencies[5]/version" ) );
|
||||
}
|
||||
//*/
|
||||
|
||||
public void testOrderOfMergedPluginDependenciesWithPluginManagement()
|
||||
throws Exception
|
||||
{
|
||||
PomTestWrapper pom = buildPom( "merged-plugin-class-path-order/w-plugin-mngt/sub" );
|
||||
assertEquals( 5, ( (List<?>) pom.getValue( "build/plugins[1]/dependencies" ) ).size() );
|
||||
assertEquals( "c", pom.getValue( "build/plugins[1]/dependency[1]/artifactId" ) );
|
||||
assertEquals( "1", pom.getValue( "build/plugins[1]/dependency[1]/version" ) );
|
||||
assertEquals( "a", pom.getValue( "build/plugins[1]/dependency[2]/artifactId" ) );
|
||||
assertEquals( "2", pom.getValue( "build/plugins[1]/dependency[2]/version" ) );
|
||||
assertEquals( "b", pom.getValue( "build/plugins[1]/dependency[3]/artifactId" ) );
|
||||
assertEquals( "1", pom.getValue( "build/plugins[1]/dependency[3]/version" ) );
|
||||
assertEquals( "e", pom.getValue( "build/plugins[1]/dependency[4]/artifactId" ) );
|
||||
assertEquals( "1", pom.getValue( "build/plugins[1]/dependency[4]/version" ) );
|
||||
assertEquals( "d", pom.getValue( "build/plugins[1]/dependency[5]/artifactId" ) );
|
||||
assertEquals( "1", pom.getValue( "build/plugins[1]/dependency[5]/version" ) );
|
||||
assertEquals( "c", pom.getValue( "build/plugins[1]/dependencies[1]/artifactId" ) );
|
||||
assertEquals( "1", pom.getValue( "build/plugins[1]/dependencies[1]/version" ) );
|
||||
assertEquals( "a", pom.getValue( "build/plugins[1]/dependencies[2]/artifactId" ) );
|
||||
assertEquals( "2", pom.getValue( "build/plugins[1]/dependencies[2]/version" ) );
|
||||
assertEquals( "b", pom.getValue( "build/plugins[1]/dependencies[3]/artifactId" ) );
|
||||
assertEquals( "1", pom.getValue( "build/plugins[1]/dependencies[3]/version" ) );
|
||||
assertEquals( "e", pom.getValue( "build/plugins[1]/dependencies[4]/artifactId" ) );
|
||||
assertEquals( "1", pom.getValue( "build/plugins[1]/dependencies[4]/version" ) );
|
||||
assertEquals( "d", pom.getValue( "build/plugins[1]/dependencies[5]/artifactId" ) );
|
||||
assertEquals( "1", pom.getValue( "build/plugins[1]/dependencies[5]/version" ) );
|
||||
}
|
||||
//*/
|
||||
|
||||
public void testInterpolationOfNestedBuildDirectories()
|
||||
throws Exception
|
||||
|
|
Loading…
Reference in New Issue