Browse Source

JUnitReportTest.testStackTraceLineBreaks was failing for me.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1199924 13f79535-47bb-0310-9956-ffa450edef68
master
Jesse N. Glick 13 years ago
parent
commit
b31adfe835
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/JUnitReportTest.java

+ 2
- 2
src/tests/junit/org/apache/tools/ant/taskdefs/optional/junit/JUnitReportTest.java View File

@@ -101,8 +101,8 @@ public class JUnitReportTest extends BuildFileTest {
r = new FileReader(new File(System.getProperty("root"), r = new FileReader(new File(System.getProperty("root"),
"src/etc/testcases/taskdefs/optional/junitreport/test/html/sampleproject/coins/0_CoinTest.html")); "src/etc/testcases/taskdefs/optional/junitreport/test/html/sampleproject/coins/0_CoinTest.html"));
String report = FileUtils.readFully(r); 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); > -1);
} finally { } finally {
FileUtils.close(r); FileUtils.close(r);


Loading…
Cancel
Save