MSHARED-410 updated to Verifier 1.6

Signed-off-by: Igor Fedorenko <ifedorenko@apache.org>
This commit is contained in:
Igor Fedorenko 2015-02-26 10:44:37 -05:00
parent b772ffd490
commit bbfaf89229
5 changed files with 6 additions and 5 deletions

View File

@ -75,7 +75,7 @@ public class MavenITmng2276ProfileActivationBySettingsPropertyTest
verifier.deleteDirectory( "target" );
verifier.addCliOption( "--settings" );
verifier.addCliOption( "settings.xml" );
verifier.setSystemProperty( "settingsProperty", "cli" );
verifier.addCliOption( "-DsettingsProperty=cli" );
verifier.setLogFileName( "log-2.txt" );
verifier.executeGoal( "validate" );
verifier.verifyErrorFreeLog();

View File

@ -54,7 +54,7 @@ public class MavenITmng3951AbsolutePathsTest
* Cut off anything before the first file separator from the local repo path. This is harmless on a Unix-like
* filesystem but will make the path drive-relative on Windows so we can check how Maven handles it.
*/
String repoDir = new File( verifier.localRepo ).getAbsolutePath();
String repoDir = new File( verifier.getLocalRepository() ).getAbsolutePath();
if ( getRoot( new File( repoDir ) ).equals( getRoot( testDir ) ) )
{
// NOTE: We can only test the local repo if it resides on the same drive as the test

View File

@ -62,7 +62,7 @@ public class MavenITmng3955EffectiveSettingsTest
Properties props = verifier.loadProperties( "target/settings.properties" );
assertEquals( "true", props.getProperty( "settings.offline" ) );
assertEquals( "false", props.getProperty( "settings.interactiveMode" ) );
assertEquals( new File( verifier.localRepo ).getAbsoluteFile(),
assertEquals( new File( verifier.getLocalRepository() ).getAbsoluteFile(),
new File( props.getProperty( "settings.localRepository" ) ).getAbsoluteFile() );
}

View File

@ -58,7 +58,8 @@ public class MavenITmng4305LocalRepoBasedirTest
Properties props = verifier.loadProperties( "target/basedir.properties" );
// NOTE: This deliberately compares the paths on the String level, not via File.equals()
assertEquals( new File( verifier.localRepo ).getAbsolutePath(), props.getProperty( "localRepository.basedir" ) );
assertEquals( new File( verifier.getLocalRepository() ).getAbsolutePath(),
props.getProperty( "localRepository.basedir" ) );
}
}

View File

@ -74,7 +74,7 @@ under the License.
<dependency>
<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-verifier</artifactId>
<version>1.5</version>
<version>1.6-SNAPSHOT</version>
</dependency>
</dependencies>
</dependencyManagement>