package org.apache.maven.integrationtests; | |
import java.io.File; | |
import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; | |
import org.apache.maven.it.IntegrationTestRunner; | |
public class MavenITmng2861RelocationsAndRanges | |
extends AbstractMavenIntegrationTestCase | |
{ | |
public MavenITmng2861RelocationsAndRanges() | |
throws InvalidVersionSpecificationException | |
{ | |
super( "(2.0.8,)" ); | |
} | |
public void testitMNG2861 () | |
throws Exception | |
{ | |
// The testdir is computed from the location of this | |
// file. | |
File testDir = extractTestResources( getClass(), "/mng-2861relocationsAndRanges" ); | |
IntegrationTestRunner itr; | |
/* | |
* We must first make sure that any artifact created | |
* by this test has been removed from the local | |
* repository. Failing to do this could cause | |
* unstable test results. Fortunately, the itr | |
* makes it easy to do this. | |
*/ | |
itr = new IntegrationTestRunner( new File(testDir,"MNG-2861").getAbsolutePath() ); | |
itr.deleteArtifact( "org.apache.maven.its.mng2861", "MNG-2861", "1.0-SNAPSHOT", "pom" ); | |
itr.deleteArtifact( "org.apache.maven.its.mng2861", "A", "1.0-SNAPSHOT", "jar" ); | |
itr.deleteArtifact( "org.apache.maven.its.mng2861", "B", "1.0-SNAPSHOT", "jar" ); | |
itr.deleteArtifact( "org.apache.maven.its.mng2861", "C", "1.0-SNAPSHOT", "jar" ); | |
itr.invoke( "install" ); | |
itr.verifyErrorFreeLog(); | |
} | |
} |