mirror of https://github.com/apache/maven.git
MSHARED-410 updated to Verifier 1.6
Signed-off-by: Igor Fedorenko <ifedorenko@apache.org>
This commit is contained in:
parent
b772ffd490
commit
bbfaf89229
|
@ -75,7 +75,7 @@ public class MavenITmng2276ProfileActivationBySettingsPropertyTest
|
||||||
verifier.deleteDirectory( "target" );
|
verifier.deleteDirectory( "target" );
|
||||||
verifier.addCliOption( "--settings" );
|
verifier.addCliOption( "--settings" );
|
||||||
verifier.addCliOption( "settings.xml" );
|
verifier.addCliOption( "settings.xml" );
|
||||||
verifier.setSystemProperty( "settingsProperty", "cli" );
|
verifier.addCliOption( "-DsettingsProperty=cli" );
|
||||||
verifier.setLogFileName( "log-2.txt" );
|
verifier.setLogFileName( "log-2.txt" );
|
||||||
verifier.executeGoal( "validate" );
|
verifier.executeGoal( "validate" );
|
||||||
verifier.verifyErrorFreeLog();
|
verifier.verifyErrorFreeLog();
|
||||||
|
|
|
@ -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
|
* 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.
|
* 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 ) ) )
|
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
|
// NOTE: We can only test the local repo if it resides on the same drive as the test
|
||||||
|
|
|
@ -62,7 +62,7 @@ public class MavenITmng3955EffectiveSettingsTest
|
||||||
Properties props = verifier.loadProperties( "target/settings.properties" );
|
Properties props = verifier.loadProperties( "target/settings.properties" );
|
||||||
assertEquals( "true", props.getProperty( "settings.offline" ) );
|
assertEquals( "true", props.getProperty( "settings.offline" ) );
|
||||||
assertEquals( "false", props.getProperty( "settings.interactiveMode" ) );
|
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() );
|
new File( props.getProperty( "settings.localRepository" ) ).getAbsoluteFile() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -58,7 +58,8 @@ public class MavenITmng4305LocalRepoBasedirTest
|
||||||
Properties props = verifier.loadProperties( "target/basedir.properties" );
|
Properties props = verifier.loadProperties( "target/basedir.properties" );
|
||||||
|
|
||||||
// NOTE: This deliberately compares the paths on the String level, not via File.equals()
|
// 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" ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -74,7 +74,7 @@ under the License.
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.maven.shared</groupId>
|
<groupId>org.apache.maven.shared</groupId>
|
||||||
<artifactId>maven-verifier</artifactId>
|
<artifactId>maven-verifier</artifactId>
|
||||||
<version>1.5</version>
|
<version>1.6-SNAPSHOT</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</dependencyManagement>
|
</dependencyManagement>
|
||||||
|
|
Loading…
Reference in New Issue