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:
Benjamin Bentmann 2009-03-23 20:42:31 +00:00
parent f4d71c3b48
commit 1123131b32
1 changed files with 22 additions and 22 deletions

View File

@ -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