Added junit test for IVY-921

git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@701224 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Maarten Coene 2008-10-02 19:46:20 +00:00
parent 1330ee1355
commit 2cbea2ac39
2 changed files with 44 additions and 3 deletions

View File

@ -624,10 +624,12 @@ public class PomModuleDescriptorParserTest extends AbstractModuleDescriptorParse
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);
}
}

View File

@ -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>