o Re-enabled IT for 3.x

git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@803268 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-08-11 19:52:59 +00:00
parent d0781415e7
commit d23f37d1b6
1 changed files with 11 additions and 5 deletions

View File

@ -46,9 +46,6 @@ public class MavenITmng0449PluginVersionResolutionTest
public void testitLifecycleInvocation()
throws Exception
{
// automatic version resolution no longer supported in 3.x (see MNG-4173)
requiresMavenVersion( "(,3.0-alpha-1)" );
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-0449" );
testDir = new File( testDir, "lifecycle" );
@ -63,8 +60,17 @@ public class MavenITmng0449PluginVersionResolutionTest
verifier.verifyErrorFreeLog();
verifier.resetStreams();
// Maven 3.x prefers RELEASE over LATEST (see MNG-4206)
if ( matchesVersionRange( "(,3.0-alpha-3)" ) )
{
verifier.assertFileNotPresent( "target/touch-release.txt" );
verifier.assertFilePresent( "target/touch-snapshot.txt" );
}
else
{
verifier.assertFilePresent( "target/touch-release.txt" );
verifier.assertFileNotPresent( "target/touch-snapshot.txt" );
}
verifier.assertFilePresent( "target/package.txt" );
}