You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ev...@apache.org on 2005/06/27 15:50:07 UTC

svn commit: r201990 - /maven/components/trunk/maven-project/src/test/java/org/apache/maven/project/MavenProjectTest.java

Author: evenisse
Date: Mon Jun 27 06:50:07 2005
New Revision: 201990

URL: http://svn.apache.org/viewcvs?rev=201990&view=rev
Log:
[MNG-520]. copy artifactId when we clone a model.

Added:
    maven/components/trunk/maven-project/src/test/java/org/apache/maven/project/MavenProjectTest.java   (with props)

Added: maven/components/trunk/maven-project/src/test/java/org/apache/maven/project/MavenProjectTest.java
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-project/src/test/java/org/apache/maven/project/MavenProjectTest.java?rev=201990&view=auto
==============================================================================
--- maven/components/trunk/maven-project/src/test/java/org/apache/maven/project/MavenProjectTest.java (added)
+++ maven/components/trunk/maven-project/src/test/java/org/apache/maven/project/MavenProjectTest.java Mon Jun 27 06:50:07 2005
@@ -0,0 +1,32 @@
+package org.apache.maven.project;
+
+/*
+ * Copyright 2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import java.io.File;
+
+public class MavenProjectTest
+    extends MavenProjectTestCase
+{
+    public void testCopyConstructor() throws Exception
+    {
+        File f = getFileForClasspathResource( "canonical-pom.xml" );
+        MavenProject projectToClone = getProject(f);
+
+        MavenProject clonedProject = new MavenProject(projectToClone);
+        assertEquals("maven-core", clonedProject.getArtifactId());
+    }
+}

Propchange: maven/components/trunk/maven-project/src/test/java/org/apache/maven/project/MavenProjectTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/components/trunk/maven-project/src/test/java/org/apache/maven/project/MavenProjectTest.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org