bodewig 2003/09/23 08:32:18 Modified: src/main/org/apache/tools/ant/taskdefs/optional/junit Tag: ANT_16_BRANCH PlainJUnitResultFormatter.java Log: Remove redundant output, PR 20194 Revision Changes Path No revision No revision 1.19.2.1 +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.19.2.1 diff -u -r1.19 -r1.19.2.1 --- PlainJUnitResultFormatter.java 19 Jul 2003 08:11:05 -0000 1.19 +++ PlainJUnitResultFormatter.java 23 Sep 2003 15:32:18 -0000 1.19.2.1 @@ -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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]