ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/taskdefs/optional/junit PlainJUnitResultFormatter.java
Date Tue, 23 Sep 2003 15:31:49 GMT
bodewig     2003/09/23 08:31:49

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional/junit
                        PlainJUnitResultFormatter.java
  Log:
  Remove redundant output, PR 20194
  
  Revision  Changes    Path
  1.20      +4 -4      ant/src/main/org/apache/tools/ant/taskdefs/optional/junit/PlainJUnitResultFormatter.java
  
  Index: PlainJUnitResultFormatter.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/optional/junit/PlainJUnitResultFormatter.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- PlainJUnitResultFormatter.java	19 Jul 2003 08:11:05 -0000	1.19
  +++ PlainJUnitResultFormatter.java	23 Sep 2003 15:31:48 -0000	1.20
  @@ -1,7 +1,7 @@
   /*
    * 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.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -198,12 +198,12 @@
        * <p>A Test is finished.
        */
       public void endTest(Test test) {
  +        if (Boolean.TRUE.equals(failed.get(test))) {
  +            return;
  +        }
           synchronized (wri) {
               wri.print("Testcase: "
                         + JUnitVersionHelper.getTestCaseName(test));
  -            if (Boolean.TRUE.equals(failed.get(test))) {
  -                return;
  -            }
               Long l = (Long) testStarts.get(test);
               double seconds = 0;
               // can be null if an error occured in setUp
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message