Browse Source

constructor has changed for filtering

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270100 13f79535-47bb-0310-9956-ffa450edef68
master
Stephane Bailliez 23 years ago
parent
commit
03e7448524
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/testcases/org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunnerTest.java

+ 3
- 3
src/testcases/org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunnerTest.java View File

@@ -112,14 +112,14 @@ public class JUnitTestRunnerTest extends TestCase {
}
protected TestRunner createRunner(Class clazz){
return new TestRunner(new JUnitTest(clazz.getName()), true, true);
return new TestRunner(new JUnitTest(clazz.getName()), true, true, true);
}

// the test runner that wrap the dummy formatter that interests us
private final static class TestRunner extends JUnitTestRunner {
private ResultFormatter formatter = new ResultFormatter();
TestRunner(JUnitTest test, boolean x, boolean y){
super(test, x, y, TestRunner.class.getClassLoader());
TestRunner(JUnitTest test, boolean haltonerror, boolean filtertrace, boolean haltonfailure){
super(test, haltonerror, filtertrace, haltonfailure, TestRunner.class.getClassLoader());
// use the classloader that loaded this class otherwise
// it will not be able to run inner classes if this test
// is ran in non-forked mode.


Loading…
Cancel
Save