blob: f1422e21528ba398384b84daee514e7260602ed0 [file] [log] [blame]
package org.apache.maven.integrationtests;
import java.io.File;
import org.apache.maven.it.IntegrationTestRunner;
public class MavenIT0018Test
extends AbstractMavenIntegrationTestCase
{
/**
* Ensure that managed dependencies for dependency POMs are calculated
* correctly when resolved. Removes commons-logging-1.0.3 and checks it is
* redownloaded.
*/
public void testit0018()
throws Exception
{
File testDir = extractTestResources( getClass(), "/it0018" );
IntegrationTestRunner itr = new IntegrationTestRunner( testDir.getAbsolutePath() );
itr.deleteArtifact( "commons-logging", "commons-logging", "1.0.3", "jar" );
itr.invoke( "package" );
itr.assertArtifactPresent( "commons-logging", "commons-logging", "1.0.3", "jar" );
itr.verifyErrorFreeLog();
itr.resetStreams();
}
}