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 org.apache.maven.it.util.ResourceExtractor;
23
24 import java.io.File;
25 import java.util.Properties;
26
27
28
29
30 public class MavenITmng2124PomInterpolationWithParentValuesTest
31 extends AbstractMavenIntegrationTestCase
32 {
33 public MavenITmng2124PomInterpolationWithParentValuesTest()
34 {
35 super( ALL_MAVEN_VERSIONS );
36 }
37
38
39
40
41
42
43 public void testitMNG2124()
44 throws Exception
45 {
46 File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-2124" );
47 File child = new File( testDir, "parent/child" );
48
49 Verifier verifier = newVerifier( child.getAbsolutePath() );
50 verifier.setAutoclean( false );
51 verifier.deleteDirectory( "target" );
52 verifier.executeGoal( "initialize" );
53 verifier.verifyErrorFreeLog();
54 verifier.resetStreams();
55
56 Properties props = verifier.loadProperties( "target/parent.properties" );
57 assertEquals( "parent, child, parent, child", props.getProperty( "project.description" ) );
58 }
59
60 }