ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sbaill...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/junit JUnitTask.java
Date Sat, 26 Jan 2002 20:45:21 GMT
sbailliez    02/01/26 12:45:21

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional/junit
                        JUnitTask.java
  Log:
  Fix audit violations
  
  Revision  Changes    Path
  1.32      +5 -5      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java
  
  Index: JUnitTask.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- JUnitTask.java	14 Jan 2002 00:59:41 -0000	1.31
  +++ JUnitTask.java	26 Jan 2002 20:45:21 -0000	1.32
  @@ -155,7 +155,6 @@
       private Integer timeout = null;
       private boolean summary = false;
       private String summaryValue = "";
  -    private boolean filtertrace = true;
       private JUnitTestRunner runner = null;
   
       /**
  @@ -432,8 +431,8 @@
           boolean errorOccurredHere = exitValue == JUnitTestRunner.ERRORS;
           boolean failureOccurredHere = exitValue != JUnitTestRunner.SUCCESS;
           if (errorOccurredHere || failureOccurredHere) {
  -            if (errorOccurredHere && test.getHaltonerror()
  -                || failureOccurredHere && test.getHaltonfailure()) {
  +            if ((errorOccurredHere && test.getHaltonerror())
  +                || (failureOccurredHere && test.getHaltonfailure())) {
                   throw new BuildException("Test "+test.getName()+" failed"
                                            +(wasKilled ? " (timeout)" : ""),
                                            location);
  @@ -631,8 +630,9 @@
        * and return an enumeration over all <tt>JUnitTest</tt>.
        */
       protected Enumeration getIndividualTests(){
  -        Enumeration[] enums = new Enumeration[ batchTests.size() + 1];
  -        for (int i = 0; i < batchTests.size(); i++) {
  +        final int count = batchTests.size();
  +        final Enumeration[] enums = new Enumeration[ count + 1];
  +        for (int i = 0; i < count; i++) {
               BatchTest batchtest = (BatchTest)batchTests.elementAt(i);
               enums[i] = batchtest.elements();
           }
  
  
  

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


Mime
View raw message