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 java.io.File;
23 import java.util.Properties;
24
25 import org.apache.maven.it.util.ResourceExtractor;
26
27
28
29
30
31
32
33 public class MavenITmng4116UndecodedUrlsTest
34 extends AbstractMavenIntegrationTestCase
35 {
36
37 public MavenITmng4116UndecodedUrlsTest()
38 {
39 super( ALL_MAVEN_VERSIONS );
40 }
41
42
43
44
45
46
47 public void testitMNG4116()
48 throws Exception
49 {
50 File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-4116" );
51
52 Verifier verifier = newVerifier( testDir.getAbsolutePath() );
53 verifier.setAutoclean( false );
54 verifier.executeGoal( "validate" );
55 verifier.verifyErrorFreeLog();
56 verifier.resetStreams();
57
58 Properties props = verifier.loadProperties( "target/pom.properties" );
59
60 assertEquals( "http://maven.apache.org/spacy%20path",
61 props.getProperty( "project.url" ) );
62
63 assertEquals( "http://svn.apache.org/viewvc/spacy%20path",
64 props.getProperty( "project.scm.url" ) );
65 assertEquals( "scm:svn:svn+ssh://svn.apache.org/spacy%20path",
66 props.getProperty( "project.scm.connection" ) );
67 assertEquals( "scm:svn:svn+ssh://svn.apache.org/spacy%20path",
68 props.getProperty( "project.scm.developerConnection" ) );
69
70 assertEquals( "http://ci.apache.org/spacy%20path",
71 props.getProperty( "project.ciManagement.url" ) );
72
73 assertEquals( "http://issues.apache.org/spacy%20path",
74 props.getProperty( "project.issueManagement.url" ) );
75
76 assertEquals( "scm:svn:svn+ssh://dist.apache.org/spacy%20path",
77 props.getProperty( "project.distributionManagement.repository.url" ) );
78 assertEquals( "scm:svn:svn+ssh://snap.apache.org/spacy%20path",
79 props.getProperty( "project.distributionManagement.snapshotRepository.url" ) );
80 assertEquals( "scm:svn:svn+ssh://site.apache.org/spacy%20path",
81 props.getProperty( "project.distributionManagement.site.url" ) );
82 }
83
84 }