o Compensated for the unfortunate fact that the Verifier treats CLI options as CLI lines rather than individual args (which would be subject to proper quoting)

git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@742112 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-02-08 14:51:16 +00:00
parent b21221220d
commit ecc8c9111f
7 changed files with 11 additions and 11 deletions

View File

@ -42,7 +42,7 @@ public class MavenIT0007Test
verifier.filterFile( "settings.xml", "settings.xml", "UTF-8", verifier.newDefaultFilterProperties() ); verifier.filterFile( "settings.xml", "settings.xml", "UTF-8", verifier.newDefaultFilterProperties() );
verifier.deleteArtifacts( "org.apache.maven.its.it0007" ); verifier.deleteArtifacts( "org.apache.maven.its.it0007" );
verifier.getCliOptions().add( "-s" ); verifier.getCliOptions().add( "-s" );
verifier.getCliOptions().add( new File( testDir, "settings.xml" ).getAbsolutePath() ); verifier.getCliOptions().add( "settings.xml" );
verifier.executeGoal( "validate" ); verifier.executeGoal( "validate" );
verifier.verifyErrorFreeLog(); verifier.verifyErrorFreeLog();
verifier.resetStreams(); verifier.resetStreams();

View File

@ -51,11 +51,11 @@ public class MavenITmng0294MergeGlobalAndUserSettingsTest
verifier.setAutoclean( false ); verifier.setAutoclean( false );
verifier.deleteDirectory( "target" ); verifier.deleteDirectory( "target" );
verifier.getCliOptions().add( "--settings" ); verifier.getCliOptions().add( "--settings" );
verifier.getCliOptions().add( new File( testDir, "user-settings.xml" ).getAbsolutePath() ); verifier.getCliOptions().add( "user-settings.xml" );
if ( matchesVersionRange( "[3.0-alpha-1,)" ) ) if ( matchesVersionRange( "[3.0-alpha-1,)" ) )
{ {
verifier.getCliOptions().add( "--global-settings" ); verifier.getCliOptions().add( "--global-settings" );
verifier.getCliOptions().add( new File( testDir, "global-settings.xml" ).getAbsolutePath() ); verifier.getCliOptions().add( "global-settings.xml" );
} }
else else
{ {

View File

@ -68,7 +68,7 @@ public class MavenITmng2883LegacyRepoOfflineTest
// used to inject the remote repository // used to inject the remote repository
cliOptions.add( "-s" ); cliOptions.add( "-s" );
cliOptions.add( settings.getAbsolutePath() ); cliOptions.add( settings.getName() );
verifier.setCliOptions( cliOptions ); verifier.setCliOptions( cliOptions );
@ -167,7 +167,7 @@ public class MavenITmng2883LegacyRepoOfflineTest
// used to inject the remote repository // used to inject the remote repository
cliOptions.add( "-s" ); cliOptions.add( "-s" );
cliOptions.add( settings.getAbsolutePath() ); cliOptions.add( settings.getName() );
verifier.setCliOptions( cliOptions ); verifier.setCliOptions( cliOptions );
@ -269,7 +269,7 @@ public class MavenITmng2883LegacyRepoOfflineTest
// used to inject the remote repository // used to inject the remote repository
cliOptions.add( "-s" ); cliOptions.add( "-s" );
cliOptions.add( settings.getAbsolutePath() ); cliOptions.add( settings.getName() );
verifier.setCliOptions( cliOptions ); verifier.setCliOptions( cliOptions );

View File

@ -103,7 +103,7 @@ public class MavenITmng3415JunkRepositoryMetadataTest
List cliOptions = new ArrayList(); List cliOptions = new ArrayList();
cliOptions.add( "-X" ); cliOptions.add( "-X" );
cliOptions.add( "-s" ); cliOptions.add( "-s" );
cliOptions.add( settings.getPath() ); cliOptions.add( settings.getName() );
verifier.setCliOptions( cliOptions ); verifier.setCliOptions( cliOptions );
verifier.setLogFileName( "log-" + methodName + "-firstBuild.txt" ); verifier.setLogFileName( "log-" + methodName + "-firstBuild.txt" );
@ -176,7 +176,7 @@ public class MavenITmng3415JunkRepositoryMetadataTest
List cliOptions = new ArrayList(); List cliOptions = new ArrayList();
cliOptions.add( "-X" ); cliOptions.add( "-X" );
cliOptions.add( "-s" ); cliOptions.add( "-s" );
cliOptions.add( settings.getPath() ); cliOptions.add( settings.getName() );
verifier.setCliOptions( cliOptions ); verifier.setCliOptions( cliOptions );

View File

@ -51,7 +51,7 @@ public class MavenITmng3944BasedirInterpolationTest
verifier.setAutoclean( false ); verifier.setAutoclean( false );
verifier.deleteDirectory( "target" ); verifier.deleteDirectory( "target" );
verifier.getCliOptions().add( "-f" ); verifier.getCliOptions().add( "-f" );
verifier.getCliOptions().add( new File( testDir, "pom-with-unusual-name.xml" ).getAbsolutePath() ); verifier.getCliOptions().add( "pom-with-unusual-name.xml" );
verifier.executeGoal( "validate" ); verifier.executeGoal( "validate" );
verifier.verifyErrorFreeLog(); verifier.verifyErrorFreeLog();
verifier.resetStreams(); verifier.resetStreams();

View File

@ -152,7 +152,7 @@ public class MavenITmng3953AuthenticatedDeploymentTest
Verifier verifier = new Verifier( testDir.getAbsolutePath() ); Verifier verifier = new Verifier( testDir.getAbsolutePath() );
verifier.setAutoclean( false ); verifier.setAutoclean( false );
verifier.getCliOptions().add( "--settings" ); verifier.getCliOptions().add( "--settings" );
verifier.getCliOptions().add( new File( testDir, "settings.xml" ).getAbsolutePath() ); verifier.getCliOptions().add( "settings.xml" );
verifier.getCliOptions().add( "-DdeploymentPort=" + port ); verifier.getCliOptions().add( "-DdeploymentPort=" + port );
verifier.executeGoal( "validate" ); verifier.executeGoal( "validate" );
verifier.verifyErrorFreeLog(); verifier.verifyErrorFreeLog();

View File

@ -52,7 +52,7 @@ public class MavenITmng3955EffectiveSettingsTest
Verifier verifier = new Verifier( testDir.getAbsolutePath() ); Verifier verifier = new Verifier( testDir.getAbsolutePath() );
verifier.setAutoclean( false ); verifier.setAutoclean( false );
verifier.getCliOptions().add( "--settings" ); verifier.getCliOptions().add( "--settings" );
verifier.getCliOptions().add( new File( testDir, "settings.xml" ).getAbsolutePath() ); verifier.getCliOptions().add( "settings.xml" );
verifier.getCliOptions().add( "--offline" ); verifier.getCliOptions().add( "--offline" );
verifier.getCliOptions().add( "--batch-mode" ); verifier.getCliOptions().add( "--batch-mode" );
verifier.executeGoal( "validate" ); verifier.executeGoal( "validate" );