[MNG-5151] updated constants to match the modification and added a unit-test

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1172229 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Herve Boutemy 2011-09-18 09:14:58 +00:00
parent a67cc71fbe
commit c7c79e1f1a
2 changed files with 8 additions and 1 deletions

View File

@ -51,7 +51,7 @@ public interface RepositorySystem
final String DEFAULT_REMOTE_REPO_ID = "central";
final String DEFAULT_REMOTE_REPO_URL = "http://repo1.maven.org/maven2";
final String DEFAULT_REMOTE_REPO_URL = "http://repo1.maven.apache.org/maven2";
Artifact createArtifact( String groupId, String artifactId, String version, String packaging );

View File

@ -1248,6 +1248,13 @@ public class PomConstructionTest
assertEquals( "org.apache.maven.its", pom.getValue( "dependencies[1]/exclusions[1]/groupId" ) );
assertEquals( "excluded-dep", pom.getValue( "dependencies[1]/exclusions[1]/artifactId" ) );
assertEquals( 2, ( (List<?>) pom.getValue( "repositories" ) ).size() );
assertEquals( "project-remote-repo", pom.getValue( "repositories[1]/id" ) );
assertEquals( "http://project.url/remote", pom.getValue( "repositories[1]/url" ) );
assertEquals( "repo", pom.getValue( "repositories[1]/name" ) );
assertEquals( RepositorySystem.DEFAULT_REMOTE_REPO_ID, pom.getValue( "repositories[2]/id" ) );
assertEquals( RepositorySystem.DEFAULT_REMOTE_REPO_URL, pom.getValue( "repositories[2]/url" ) );
assertEquals( "test", pom.getValue( "build/defaultGoal" ) );
assertEquals( "coreit", pom.getValue( "build/finalName" ) );