ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maart...@apache.org
Subject svn commit: r701224 - in /ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/parser/m2: PomModuleDescriptorParserTest.java test-entity.pom
Date Thu, 02 Oct 2008 19:46:21 GMT
Author: maartenc
Date: Thu Oct  2 12:46:20 2008
New Revision: 701224

URL: http://svn.apache.org/viewvc?rev=701224&view=rev
Log:
Added junit test for IVY-921

Added:
    ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/parser/m2/test-entity.pom
Modified:
    ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/parser/m2/PomModuleDescriptorParserTest.java

Modified: ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/parser/m2/PomModuleDescriptorParserTest.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/parser/m2/PomModuleDescriptorParserTest.java?rev=701224&r1=701223&r2=701224&view=diff
==============================================================================
--- ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/parser/m2/PomModuleDescriptorParserTest.java
(original)
+++ ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/parser/m2/PomModuleDescriptorParserTest.java
Thu Oct  2 12:46:20 2008
@@ -624,10 +624,12 @@
         
         assertEquals(ModuleRevisionId.newInstance("org.apache", "test-version-other", "5.76"),
dds[0]
                 .getDependencyRevisionId());//present in the pom using a property defined
in the parent
-
-        
     }
     
-
+    public void testPomWithEntity() throws Exception {
+        ModuleDescriptor md = PomModuleDescriptorParser.getInstance().parseDescriptor(
+            settings, getClass().getResource("test-entity.pom"), true);
+        assertNotNull(md);        
+    }
 
 }

Added: ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/parser/m2/test-entity.pom
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/parser/m2/test-entity.pom?rev=701224&view=auto
==============================================================================
--- ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/parser/m2/test-entity.pom (added)
+++ ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/parser/m2/test-entity.pom Thu Oct
 2 12:46:20 2008
@@ -0,0 +1,39 @@
+<?xml version="1.0"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you 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.    
+-->
+<project>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache</groupId>
+  <artifactId>test</artifactId>
+  <name>Test Module for Ivy M2 parsing</name>
+  <version>1.0</version>
+  <url>http://ant.apache.org/ivy</url>
+  <organization>
+    <name>Jayasoft</name>
+    <url>http://www.jayasoft.org/</url>
+  </organization>
+  <developers>
+    <developer>
+      <id>testid</id>
+      <name>Test User &oslash;</name>
+      <email>test.user@apache.org</email>
+      <organization>Apache</organization>
+    </developer>
+  </developers>
+</project>



Mime
View raw message