Browse Source

Fix formatter interface

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270946 13f79535-47bb-0310-9956-ffa450edef68
master
Stephane Bailliez 23 years ago
parent
commit
3ad89c7ef7
2 changed files with 6 additions and 15 deletions
  1. +3
    -7
      proposal/sandbox/junit/src/testcases/org/apache/tools/ant/taskdefs/optional/junit/formatter/FilterStackFormatterTest.java
  2. +3
    -8
      proposal/sandbox/junit/src/testcases/org/apache/tools/ant/taskdefs/optional/junit/formatter/FormatterRecorder.java

+ 3
- 7
proposal/sandbox/junit/src/testcases/org/apache/tools/ant/taskdefs/optional/junit/formatter/FilterStackFormatterTest.java View File

@@ -60,6 +60,8 @@ import java.util.Properties;


import junit.framework.TestCase; import junit.framework.TestCase;


import org.apache.tools.ant.BuildException;

/** /**
* Not exactly rocket science test.. dooh ! * Not exactly rocket science test.. dooh !
* *
@@ -117,19 +119,13 @@ public class FilterStackFormatterTest extends TestCase
// --- formatter implementation // --- formatter implementation
protected String filteredTrace; protected String filteredTrace;


public void setOutput(OutputStream out) {
}

public void onTestStarted(String testname) { public void onTestStarted(String testname) {
} }


public void setSystemOutput(String out) {
}

public void onTestEnded(String testname) { 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) { public void onTestFailed(int status, String testname, String trace) {


+ 3
- 8
proposal/sandbox/junit/src/testcases/org/apache/tools/ant/taskdefs/optional/junit/formatter/FormatterRecorder.java View File

@@ -54,8 +54,10 @@
package org.apache.tools.ant.taskdefs.optional.junit.formatter; package org.apache.tools.ant.taskdefs.optional.junit.formatter;


import java.io.OutputStream; import java.io.OutputStream;
import java.util.Properties;


import org.apache.tools.ant.taskdefs.optional.junit.TestRunRecorder; import org.apache.tools.ant.taskdefs.optional.junit.TestRunRecorder;
import org.apache.tools.ant.BuildException;


/** /**
* A formatter recorder that serves the same purpose as * A formatter recorder that serves the same purpose as
@@ -67,13 +69,6 @@ import org.apache.tools.ant.taskdefs.optional.junit.TestRunRecorder;
*/ */
public class FormatterRecorder extends TestRunRecorder public class FormatterRecorder extends TestRunRecorder
implements Formatter { implements Formatter {

public void setOutput(OutputStream out) {
}

public void setSystemOutput(String out) {
}

public void setSystemError(String err) {
public void init(Properties props) throws BuildException {
} }
} }

Loading…
Cancel
Save