1 package org.apache.maven.it; 2 3 import org.apache.maven.it.util.ResourceExtractor; 4 5 import java.io.File; 6 7 public class MavenITmng5840ParentVersionRanges 8 extends AbstractMavenIntegrationTestCase 9 { 10 public MavenITmng5840ParentVersionRanges() 11 { 12 super( "[3.3,)" ); 13 } 14 15 public void testParentRangeRelativePathPointsToWrongVersion() 16 throws Exception 17 { 18 File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-5840-relative-path-range-negative" ); 19 20 Verifier verifier = newVerifier( new File( testDir, "parent-1" ).getAbsolutePath(), "remote" ); 21 verifier.executeGoal( "install" ); 22 verifier.verifyErrorFreeLog(); 23 verifier.resetStreams(); 24 25 verifier = newVerifier( new File( testDir, "child" ).getAbsolutePath(), "remote" ); 26 verifier.executeGoal( "validate" ); 27 verifier.verifyErrorFreeLog(); 28 verifier.resetStreams(); 29 } 30 31 public void testParentRangeRelativePathPointsToCorrectVersion() 32 throws Exception 33 { 34 File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-5840-relative-path-range-positive" ); 35 36 Verifier verifier = newVerifier( new File( testDir, "parent-1" ).getAbsolutePath(), "remote" ); 37 verifier.executeGoal( "install" ); 38 verifier.verifyErrorFreeLog(); 39 verifier.resetStreams(); 40 41 verifier = newVerifier( new File( testDir, "child" ).getAbsolutePath(), "remote" ); 42 verifier.executeGoal( "validate" ); 43 verifier.verifyErrorFreeLog(); 44 verifier.resetStreams(); 45 } 46 47 }