Browse Source

Remove redundant output, PR 20194

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

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

@@ -1,7 +1,7 @@
/* /*
* The Apache Software License, Version 1.1 * The Apache Software License, Version 1.1
* *
* Copyright (c) 2000-2002 The Apache Software Foundation. All rights
* Copyright (c) 2000-2003 The Apache Software Foundation. All rights
* reserved. * reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
@@ -198,12 +198,12 @@ public class PlainJUnitResultFormatter implements JUnitResultFormatter {
* <p>A Test is finished. * <p>A Test is finished.
*/ */
public void endTest(Test test) { public void endTest(Test test) {
if (Boolean.TRUE.equals(failed.get(test))) {
return;
}
synchronized (wri) { synchronized (wri) {
wri.print("Testcase: " wri.print("Testcase: "
+ JUnitVersionHelper.getTestCaseName(test)); + JUnitVersionHelper.getTestCaseName(test));
if (Boolean.TRUE.equals(failed.get(test))) {
return;
}
Long l = (Long) testStarts.get(test); Long l = (Long) testStarts.get(test);
double seconds = 0; double seconds = 0;
// can be null if an error occured in setUp // can be null if an error occured in setUp


Loading…
Cancel
Save