logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject cvs commit: jakarta-log4j/tests/src/java/org/apache/log4j/util JunitTestRunnerFilter.java
Date Wed, 17 Sep 2003 16:10:07 GMT
ceki        2003/09/17 09:10:07

  Modified:    tests/src/java/org/apache/log4j/util
                        JunitTestRunnerFilter.java
  Log:
  
  Fixed bug in JUnitTestRunnerFilter
  
  Revision  Changes    Path
  1.2       +12 -7     jakarta-log4j/tests/src/java/org/apache/log4j/util/JunitTestRunnerFilter.java
  
  Index: JunitTestRunnerFilter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-log4j/tests/src/java/org/apache/log4j/util/JunitTestRunnerFilter.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- JunitTestRunnerFilter.java	12 Sep 2003 18:24:26 -0000	1.1
  +++ JunitTestRunnerFilter.java	17 Sep 2003 16:10:07 -0000	1.2
  @@ -59,16 +59,21 @@
      * Filter out stack trace lines coming from the various JUnit TestRunners.
      */
     public String filter(String in) {
  -    if(in == null) 
  -     return null;
  -     
  -    if (util.match("/at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner/", in))
{
  +    if (in == null) {
  +      return null;
  +    }
  +
  +    if (
  +      util.match(
  +          "/at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner/", in)) {
  +      return null;
  +    } else if (
  +      util.match(
  +          "/at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner/",
  +          in)) {
         return null;
  -    } else if (util.match("/at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner/",
in)) {
  -          return in;
       } else {
         return in;
       }
     }
  - 
   }
  
  
  

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


Mime
View raw message