ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgl...@apache.org
Subject svn commit: r1199924 - /ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/JUnitReportTest.java
Date Wed, 09 Nov 2011 19:24:45 GMT
Author: jglick
Date: Wed Nov  9 19:24:45 2011
New Revision: 1199924

URL: http://svn.apache.org/viewvc?rev=1199924&view=rev
Log:
JUnitReportTest.testStackTraceLineBreaks was failing for me.

Modified:
    ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/JUnitReportTest.java

Modified: ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/JUnitReportTest.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/JUnitReportTest.java?rev=1199924&r1=1199923&r2=1199924&view=diff
==============================================================================
--- ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/JUnitReportTest.java
(original)
+++ ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/JUnitReportTest.java
Wed Nov  9 19:24:45 2011
@@ -101,8 +101,8 @@ public class JUnitReportTest extends Bui
             r = new FileReader(new File(System.getProperty("root"),
                                         "src/etc/testcases/taskdefs/optional/junitreport/test/html/sampleproject/coins/0_CoinTest.html"));
             String report = FileUtils.readFully(r);
-            assertTrue("output must contain <br>",
-                       report.indexOf("junit.framework.AssertionFailedError: DOEG<br/>")
+            assertTrue("output must contain <br>:\n" + report,
+                       report.indexOf("junit.framework.AssertionFailedError: DOEG<br>")
                    > -1);
         } finally {
             FileUtils.close(r);



Mime
View raw message