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