View Javadoc
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 MavenITmng5840RelativePathReactorMatching
8       extends AbstractMavenIntegrationTestCase
9   {
10      public MavenITmng5840RelativePathReactorMatching()
11      {
12          super( ALL_MAVEN_VERSIONS );
13      }
14  
15      public void testRelativePathPointsToWrongVersion()
16          throws Exception
17      {
18          File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-5840-relative-path-reactor-matching" );
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  }