blob: aa39f64c97404eefa40bc426663694360b99fe5d [file] [log] [blame]
package org.apache.maven.integrationtests;
import java.io.File;
import org.apache.maven.it.IntegrationTestRunner;
public class MavenIT0030Test
extends AbstractMavenIntegrationTestCase
{
/**
* Test for injection of dependencyManagement through parents of
* dependency poms.
*/
public void testit0030()
throws Exception
{
File testDir = extractTestResources( getClass(), "/it0030" );
IntegrationTestRunner itr = new IntegrationTestRunner( testDir.getAbsolutePath() );
itr.deleteArtifact( "org.apache.maven.it", "maven-it-it0030", "1.0-SNAPSHOT", "jar" );
itr.deleteArtifact( "org.apache.maven.it", "maven-it-it0030-child-hierarchy", "1.0-SNAPSHOT", "jar" );
itr.deleteArtifact( "org.apache.maven.it", "maven-it-it0030-child-project1", "1.0-SNAPSHOT", "jar" );
itr.deleteArtifact( "org.apache.maven.it", "maven-it-it0030-child-project2", "1.0-SNAPSHOT", "jar" );
itr.invoke( "install" );
itr.assertFilePresent( "child-hierarchy/project2/target/classes/org/apache/maven/it0001/Person.class" );
itr.verifyErrorFreeLog();
itr.resetStreams();
}
}