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 MavenITmng5013ConfigureParamBeanFromScalarValueTest
31 extends AbstractMavenIntegrationTestCase
32 {
33
34 public MavenITmng5013ConfigureParamBeanFromScalarValueTest()
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-5013" );
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( "PASSED", props.getProperty( "beanParam.fieldParam" ) );
58 assertEquals( "true", props.getProperty( "beanParam.setterCalled" ) );
59 }
60
61 }