You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by hi...@apache.org on 2014/10/28 22:37:12 UTC

[09/35] git commit: Fix broken unit test, force publication date on testExtraInfosWithNestedElement as PomParsing can generate a publication date based on file modification date

Fix broken unit test, force publication date on testExtraInfosWithNestedElement as PomParsing can generate a publication date based on file modification date

git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@1592662 13f79535-47bb-0310-9956-ffa450edef68


Project: http://git-wip-us.apache.org/repos/asf/ant-ivy/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant-ivy/commit/2902a9a3
Tree: http://git-wip-us.apache.org/repos/asf/ant-ivy/tree/2902a9a3
Diff: http://git-wip-us.apache.org/repos/asf/ant-ivy/diff/2902a9a3

Branch: refs/heads/2.4.x
Commit: 2902a9a3c07e881dd7aeae0a55189facfab1966c
Parents: e484646
Author: Jean-Louis Boudart <jl...@apache.org>
Authored: Tue May 6 06:16:30 2014 +0000
Committer: Jean-Louis Boudart <jl...@apache.org>
Committed: Tue May 6 06:16:30 2014 +0000

----------------------------------------------------------------------
 .../ivy/plugins/parser/xml/XmlModuleDescriptorWriterTest.java     | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ant-ivy/blob/2902a9a3/test/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorWriterTest.java
----------------------------------------------------------------------
diff --git a/test/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorWriterTest.java b/test/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorWriterTest.java
index 86d8407..b2e56ae 100644
--- a/test/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorWriterTest.java
+++ b/test/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorWriterTest.java
@@ -150,6 +150,9 @@ public class XmlModuleDescriptorWriterTest extends TestCase {
         assertTrue(dest.exists());
         String wrote = FileUtil.readEntirely(new BufferedReader(new FileReader(dest)))
                 .replaceAll("\r\n", "\n").replace('\r', '\n');
+        wrote = wrote.replaceFirst("publication=\"([0-9])*\"", "publication=\"20140429153143\"");
+        System.out.println(wrote);
+
         String expected = readEntirely("test-write-extrainfo-from-maven.xml").replaceAll("\r\n",
             "\n").replace('\r', '\n');
         assertEquals(expected, wrote);