Browse Source

whitespace

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@793509 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 16 years ago
parent
commit
38bbf18dc4
1 changed files with 18 additions and 18 deletions
  1. +18
    -18
      src/main/org/apache/tools/ant/taskdefs/optional/junit/PlainJUnitResultFormatter.java

+ 18
- 18
src/main/org/apache/tools/ant/taskdefs/optional/junit/PlainJUnitResultFormatter.java View File

@@ -186,18 +186,18 @@ public class PlainJUnitResultFormatter implements JUnitResultFormatter {
}
synchronized (wri) {
try {
wri.write("Testcase: "
+ JUnitVersionHelper.getTestCaseName(test));
Long l = (Long) testStarts.get(test);
double seconds = 0;
// can be null if an error occurred in setUp
if (l != null) {
seconds =
(System.currentTimeMillis() - l.longValue()) / ONE_SECOND;
}
wri.write("Testcase: "
+ JUnitVersionHelper.getTestCaseName(test));
Long l = (Long) testStarts.get(test);
double seconds = 0;
// can be null if an error occurred in setUp
if (l != null) {
seconds =
(System.currentTimeMillis() - l.longValue()) / ONE_SECOND;
}

wri.write(" took " + nf.format(seconds) + " sec");
wri.newLine();
wri.write(" took " + nf.format(seconds) + " sec");
wri.newLine();
} catch (IOException ex) {
throw new BuildException(ex);
}
@@ -245,13 +245,13 @@ public class PlainJUnitResultFormatter implements JUnitResultFormatter {
}

try {
wri.write(type);
wri.newLine();
wri.write(t.getMessage());
wri.newLine();
String strace = JUnitTestRunner.getFilteredTrace(t);
wri.write(strace);
wri.newLine();
wri.write(type);
wri.newLine();
wri.write(t.getMessage());
wri.newLine();
String strace = JUnitTestRunner.getFilteredTrace(t);
wri.write(strace);
wri.newLine();
} catch (IOException ex) {
throw new BuildException(ex);
}


Loading…
Cancel
Save