mirror of
https://github.com/apache/maven.git
synced 2025-02-21 17:40:48 +00:00
make tests work in an environment that locks down external repositories
git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@589600 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
581d7ff407
commit
84fa78beb6
@ -5,6 +5,8 @@
|
||||
import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.List;
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class MavenIT0092Test
|
||||
extends AbstractMavenIntegrationTestCase
|
||||
@ -23,6 +25,9 @@ public void testit0092()
|
||||
{
|
||||
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/it0092" );
|
||||
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
|
||||
List cliOptions = new ArrayList();
|
||||
cliOptions.add( "--settings settings.xml" );
|
||||
verifier.setCliOptions( cliOptions );
|
||||
verifier.deleteArtifact( "org.apache.maven", "maven-core-it-support", "1.0-SNAPSHOT", "jar" );
|
||||
verifier.executeGoal( "compile" );
|
||||
verifier.assertArtifactPresent( "org.apache.maven", "maven-core-it-support", "1.0-SNAPSHOT", "jar" );
|
||||
|
@ -0,0 +1,2 @@
|
||||
<settings>
|
||||
</settings>
|
@ -0,0 +1,2 @@
|
||||
<settings>
|
||||
</settings>
|
Loading…
x
Reference in New Issue
Block a user