Author: jlboudart
Date: Tue May 6 06:16:30 2014
New Revision: 1592662
URL: http://svn.apache.org/r1592662
Log:
Fix broken unit test, force publication date on testExtraInfosWithNestedElement
as PomParsing can generate a publication date based on file modification date
Modified:
ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorWriterTest.java
Modified:
ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorWriterTest.java
URL:
http://svn.apache.org/viewvc/ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorWriterTest.java?rev=1592662&r1=1592661&r2=1592662&view=diff
==============================================================================
---
ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorWriterTest.java
(original)
+++
ant/ivy/core/trunk/test/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorWriterTest.java
Tue May 6 06:16:30 2014
@@ -150,6 +150,9 @@ public class XmlModuleDescriptorWriterTe
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);