You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by jv...@apache.org on 2007/02/28 02:08:08 UTC

svn commit: r512537 - /maven/core-integration-testing/trunk/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0031Test.java

Author: jvanzyl
Date: Tue Feb 27 17:08:07 2007
New Revision: 512537

URL: http://svn.apache.org/viewvc?view=rev&rev=512537
Log:
o using the --settings option instead of system properties to set alternate settings

Modified:
    maven/core-integration-testing/trunk/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0031Test.java

Modified: maven/core-integration-testing/trunk/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0031Test.java
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0031Test.java?view=diff&rev=512537&r1=512536&r2=512537
==============================================================================
--- maven/core-integration-testing/trunk/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0031Test.java (original)
+++ maven/core-integration-testing/trunk/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0031Test.java Tue Feb 27 17:08:07 2007
@@ -6,16 +6,12 @@
 
 import java.io.File;
 import java.util.Properties;
+import java.util.List;
+import java.util.ArrayList;
 
 public class MavenIT0031Test
     extends AbstractMavenIntegrationTestCase
 {
-    public MavenIT0031Test()
-        throws InvalidVersionSpecificationException
-    {
-        super( "[,2.1-SNAPSHOT)" );
-    }
-
     /**
      * Test usage of plugins.xml mapping file on the repository to resolve plugin artifactId from it's prefix using the
      * pluginGroups in the provided settings.xml.
@@ -25,8 +21,10 @@
     {
         File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/it0031" );
         Verifier verifier = new Verifier( testDir.getAbsolutePath() );
+        List cliOptions = new ArrayList();
+        cliOptions.add( "--settings settings.xml" );
+        verifier.setCliOptions( cliOptions );
         Properties systemProperties = new Properties();
-        systemProperties.put( "org.apache.maven.user-settings", "settings.xml" );
         systemProperties.put( "model", "src/main/mdo/test.mdo" );
         systemProperties.put( "version", "1.0.0" );
         verifier.setSystemProperties( systemProperties );