ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject Problem with LineContainsTest
Date Mon, 10 Feb 2003 11:15:49 GMT
I have downloaded the Ant CVS-Head with cvsgrab (of sourceforge). 
The test failed with

	Testcase:
testLineContains(org.apache.tools.ant.filters.LineContainsTest):      FAILED
	null

After a while of searching I have found that the generated file (on windows)
contains another 
line separator than the expected file.

Is this an error in the used FileUtils.newFileUtils().contentEquals()
method? Or should there
be a FileUtils.newFileUtils().contentEqualsIgnoreLineBreaks() or so? Another
possibility is
to make a <fixcrlf> with the test files.


BTW the assert-instruction doesn´t contain a hint. I suggest the change from
        assertTrue(FileUtils.newFileUtils().contentEquals(expected,
result));
to
        assertTrue("result not like expected",
FileUtils.newFileUtils().contentEquals(expected, result));

After changing the line break to windows it works.


Jan Matèrne

Mime
  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message