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 MavenITmng3575HexadecimalOctalPluginParameterConfigTest
31 extends AbstractMavenIntegrationTestCase
32 {
33
34 public MavenITmng3575HexadecimalOctalPluginParameterConfigTest()
35 {
36 super( "[3.0.3,)" );
37 }
38
39
40
41
42
43
44 public void testit()
45 throws Exception
46 {
47 File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-3575" );
48
49 Verifier verifier = newVerifier( testDir.getAbsolutePath() );
50 verifier.setAutoclean( false );
51 verifier.deleteDirectory( "target" );
52 verifier.executeGoal( "validate" );
53 verifier.verifyErrorFreeLog();
54 verifier.resetStreams();
55
56 Properties props = verifier.loadProperties( "target/config.properties" );
57 assertEquals( "64", props.getProperty( "byteParam" ) );
58 assertEquals( "1024", props.getProperty( "shortParam" ) );
59 assertEquals( "65536", props.getProperty( "integerParam" ) );
60 assertEquals( "68719476735", props.getProperty( "longParam" ) );
61 }
62
63 }