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 public class MavenIT0009GoalConfigurationTest
27 extends AbstractMavenIntegrationTestCase
28 {
29
30 public MavenIT0009GoalConfigurationTest()
31 {
32 super( ALL_MAVEN_VERSIONS );
33 }
34
35
36
37
38
39
40
41 public void testit0009()
42 throws Exception
43 {
44
45 boolean supportSpaceInXml = matchesVersionRange( "[3.1.0,)");
46
47 File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/it0009" );
48 Verifier verifier = newVerifier( testDir.getAbsolutePath() );
49 verifier.setAutoclean( false );
50 verifier.deleteDirectory( "target" );
51 verifier.executeGoal( "validate" );
52 verifier.assertFilePresent( supportSpaceInXml ? "target/ pluginItem " : "target/pluginItem");
53 verifier.assertFilePresent( "target/goalItem" );
54 verifier.assertFileNotPresent( "target/bad-item" );
55 verifier.verifyErrorFreeLog();
56 verifier.resetStreams();
57 }
58
59 }