From 2cbea2ac393c852416c9a14c96aaf47920c561a5 Mon Sep 17 00:00:00 2001 From: Maarten Coene Date: Thu, 2 Oct 2008 19:46:20 +0000 Subject: [PATCH] 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 --- .../m2/PomModuleDescriptorParserTest.java | 8 ++-- .../ivy/plugins/parser/m2/test-entity.pom | 39 +++++++++++++++++++ 2 files changed, 44 insertions(+), 3 deletions(-) create mode 100644 test/java/org/apache/ivy/plugins/parser/m2/test-entity.pom diff --git a/test/java/org/apache/ivy/plugins/parser/m2/PomModuleDescriptorParserTest.java b/test/java/org/apache/ivy/plugins/parser/m2/PomModuleDescriptorParserTest.java index 213550c4..b6fae187 100644 --- a/test/java/org/apache/ivy/plugins/parser/m2/PomModuleDescriptorParserTest.java +++ b/test/java/org/apache/ivy/plugins/parser/m2/PomModuleDescriptorParserTest.java @@ -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); + } } diff --git a/test/java/org/apache/ivy/plugins/parser/m2/test-entity.pom b/test/java/org/apache/ivy/plugins/parser/m2/test-entity.pom new file mode 100644 index 00000000..0477ca19 --- /dev/null +++ b/test/java/org/apache/ivy/plugins/parser/m2/test-entity.pom @@ -0,0 +1,39 @@ + + + + 4.0.0 + org.apache + test + Test Module for Ivy M2 parsing + 1.0 + http://ant.apache.org/ivy + + Jayasoft + http://www.jayasoft.org/ + + + + testid + Test User ø + test.user@apache.org + Apache + + +