1 package org.apache.maven.it;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import java.io.File;
23
24 import org.apache.maven.it.util.ResourceExtractor;
25
26
27
28
29
30
31
32
33
34
35
36 public class MavenITmng2068ReactorRelativeParentsTest
37 extends AbstractMavenIntegrationTestCase
38 {
39
40 public MavenITmng2068ReactorRelativeParentsTest()
41 {
42 super( "(2.0.6,)" );
43 }
44
45
46
47
48
49
50 public void testitInheritedIdFields()
51 throws Exception
52 {
53 File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-2068/test-1" );
54 File projectDir = new File( testDir, "parent" );
55
56 Verifier verifier = newVerifier( projectDir.getAbsolutePath() );
57 verifier.setAutoclean( false );
58 verifier.deleteArtifacts( "org.apache.maven.its.mng2068" );
59 verifier.executeGoal( "validate" );
60 verifier.verifyErrorFreeLog();
61 verifier.resetStreams();
62 }
63
64
65
66
67
68
69 public void testitExplicitIdFields()
70 throws Exception
71 {
72 File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-2068/test-2" );
73 File projectDir = new File( testDir, "parent" );
74
75 Verifier verifier = newVerifier( projectDir.getAbsolutePath() );
76 verifier.setAutoclean( false );
77 verifier.deleteArtifacts( "org.apache.maven.its.mng2068" );
78 verifier.executeGoal( "validate" );
79 verifier.verifyErrorFreeLog();
80 verifier.resetStreams();
81 }
82
83
84
85
86
87
88 public void testitComplex()
89 throws Exception
90 {
91 File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-2068/test-3" );
92 File projectDir = testDir;
93
94 Verifier verifier = newVerifier( projectDir.getAbsolutePath() );
95 verifier.setAutoclean( false );
96 verifier.deleteArtifacts( "org.apache.maven.its.mng2068" );
97 verifier.executeGoal( "validate" );
98 verifier.verifyErrorFreeLog();
99 verifier.resetStreams();
100 }
101
102 }