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/proposal/sandbox/junit/src/testcases/org/apache/tools/ant/taskdefs/optional/junit/formatter FormatterRecorder.java FilterStackFormatterTest.java
Date Sun, 27 Jan 2002 11:08:27 GMT
sbailliez    02/01/27 03:08:27

  Modified:    proposal/sandbox/junit/src/testcases/org/apache/tools/ant/taskdefs/optional/junit/formatter
                        FormatterRecorder.java
                        FilterStackFormatterTest.java
  Log:
  Fix formatter interface
  
  Revision  Changes    Path
  1.2       +3 -8      jakarta-ant/proposal/sandbox/junit/src/testcases/org/apache/tools/ant/taskdefs/optional/junit/formatter/FormatterRecorder.java
  
  Index: FormatterRecorder.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/sandbox/junit/src/testcases/org/apache/tools/ant/taskdefs/optional/junit/formatter/FormatterRecorder.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FormatterRecorder.java	5 Jan 2002 23:26:34 -0000	1.1
  +++ FormatterRecorder.java	27 Jan 2002 11:08:27 -0000	1.2
  @@ -54,8 +54,10 @@
   package org.apache.tools.ant.taskdefs.optional.junit.formatter;
   
   import java.io.OutputStream;
  +import java.util.Properties;
   
   import org.apache.tools.ant.taskdefs.optional.junit.TestRunRecorder;
  +import org.apache.tools.ant.BuildException;
   
   /**
    * A formatter recorder that serves the same purpose as
  @@ -67,13 +69,6 @@
    */
   public class FormatterRecorder extends TestRunRecorder
           implements Formatter {
  -
  -    public void setOutput(OutputStream out) {
  -    }
  -
  -    public void setSystemOutput(String out) {
  -    }
  -
  -    public void setSystemError(String err) {
  +    public void init(Properties props) throws BuildException {
       }
   }
  
  
  
  1.4       +3 -7      jakarta-ant/proposal/sandbox/junit/src/testcases/org/apache/tools/ant/taskdefs/optional/junit/formatter/FilterStackFormatterTest.java
  
  Index: FilterStackFormatterTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/sandbox/junit/src/testcases/org/apache/tools/ant/taskdefs/optional/junit/formatter/FilterStackFormatterTest.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- FilterStackFormatterTest.java	5 Jan 2002 23:26:34 -0000	1.3
  +++ FilterStackFormatterTest.java	27 Jan 2002 11:08:27 -0000	1.4
  @@ -60,6 +60,8 @@
   
   import junit.framework.TestCase;
   
  +import org.apache.tools.ant.BuildException;
  +
   /**
    * Not exactly rocket science test.. dooh !
    *
  @@ -117,19 +119,13 @@
   // --- formatter implementation
       protected String filteredTrace;
   
  -    public void setOutput(OutputStream out) {
  -    }
  -
       public void onTestStarted(String testname) {
       }
   
  -    public void setSystemOutput(String out) {
  -    }
  -
       public void onTestEnded(String testname) {
       }
   
  -    public void setSystemError(String err) {
  +    public void init(Properties props) throws BuildException {
       }
   
       public void onTestFailed(int status, String testname, String trace) {
  
  
  

--
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