1 package org.apache.maven.model.converter.plugins;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import junit.framework.Assert;
23 import org.apache.maven.model.converter.ProjectConverterException;
24
25 import java.io.IOException;
26
27
28
29
30
31 public class PCCChangesTest
32 extends AbstractPCCTest
33 {
34 protected void setUp()
35 throws Exception
36 {
37 super.setUp();
38
39 pluginConfigurationConverter = new PCCChanges();
40 }
41
42 public void testBuildConfiguration()
43 {
44 try
45 {
46 projectProperties.load( getClassLoader().getResourceAsStream( "PCCChangesTest.properties" ) );
47
48 pluginConfigurationConverter.buildConfiguration( configuration, v3Model, projectProperties );
49
50 String value = configuration.getChild( "issueLinkTemplate" ).getValue();
51 Assert.assertEquals( "check link_template value", "%URL%/browse/%ISSUE%", value );
52 }
53 catch ( ProjectConverterException e )
54 {
55 Assert.fail( e.getMessage() );
56 }
57 catch ( IOException e )
58 {
59 Assert.fail( "Unable to find the requested resource." );
60 }
61 }
62 }