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
26
27
28
29
30
31
32
33
34
35 public class MavenITmng5895CIFriendlyUsageWithPropertyTest
36 extends AbstractMavenIntegrationTestCase
37 {
38
39 public MavenITmng5895CIFriendlyUsageWithPropertyTest()
40 {
41
42
43 super( "[3.5.0-alpha-2,)" );
44 }
45
46
47
48
49
50
51
52
53 public void testitShouldResolveTheDependenciesWithoutBuildConsumer()
54 throws Exception
55 {
56 File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-5895-ci-friendly-usage-with-property" );
57
58 Verifier verifier = newVerifier( testDir.getAbsolutePath(), false );
59 verifier.setMavenDebug( false );
60 verifier.setAutoclean( false );
61
62
63 verifier.addCliOption( "-Drevision=1.2" );
64 verifier.addCliOption( "-Dmaven.experimental.buildconsumer=false" );
65 verifier.executeGoal( "clean" );
66 verifier.executeGoal( "package" );
67 verifier.verifyErrorFreeLog();
68 verifier.resetStreams();
69
70 }
71
72 public void testitShouldResolveTheDependenciesWithBuildConsumer()
73 throws Exception
74 {
75 File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-5895-ci-friendly-usage-with-property" );
76
77 Verifier verifier = newVerifier( testDir.getAbsolutePath(), false );
78 verifier.setMavenDebug( false );
79 verifier.setAutoclean( false );
80
81 verifier.setLogFileName( "log-bc.txt" );
82 verifier.addCliOption( "-Drevision=1.2" );
83 verifier.addCliOption( "-Dmaven.experimental.buildconsumer=true" );
84 verifier.executeGoal( "clean" );
85 verifier.executeGoal( "package" );
86 verifier.verifyErrorFreeLog();
87 verifier.resetStreams();
88
89 }
90
91 }