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 import java.util.Properties;
24
25 import org.apache.maven.it.util.ResourceExtractor;
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41 public class MavenITmng3052DepRepoAggregationTest
42 extends AbstractMavenIntegrationTestCase
43 {
44
45 public MavenITmng3052DepRepoAggregationTest()
46 {
47 super( "(2.0.9,)" );
48 }
49
50 public void testitMNG3052 ()
51 throws Exception
52 {
53 File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-3052" ).getCanonicalFile();
54
55 Verifier verifier = newVerifier( testDir.getAbsolutePath() );
56 verifier.setAutoclean( false );
57 verifier.deleteDirectory( "target" );
58 verifier.deleteArtifacts( "org.apache.maven.its.mng3052" );
59 Properties filterProps = verifier.newDefaultFilterProperties();
60 verifier.filterFile( "settings-template.xml", "settings.xml", "UTF-8", filterProps );
61 verifier.filterFile( "repo-d/org/apache/maven/its/mng3052/direct/0.1-SNAPSHOT/template.pom",
62 "repo-d/org/apache/maven/its/mng3052/direct/0.1-SNAPSHOT/direct-0.1-20090517.133956-1.pom", "UTF-8", filterProps );
63 verifier.addCliOption( "--settings" );
64 verifier.addCliOption( "settings.xml" );
65 verifier.executeGoal( "validate" );
66 verifier.verifyErrorFreeLog();
67 verifier.resetStreams();
68
69 verifier.assertArtifactPresent( "org.apache.maven.its.mng3052", "direct", "0.1-SNAPSHOT", "jar" );
70 verifier.assertArtifactPresent( "org.apache.maven.its.mng3052", "trans", "0.1-SNAPSHOT", "jar" );
71 }
72
73 }