git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273493 13f79535-47bb-0310-9956-ffa450edef68master
@@ -949,13 +949,13 @@ public class JUnitTask extends Task { | |||||
Test t = new Test() { | Test t = new Test() { | ||||
public int countTestCases() { return 0; } | public int countTestCases() { return 0; } | ||||
public void run(TestResult r) { | public void run(TestResult r) { | ||||
throw new AssertionFailedError("Timeout occured"); | |||||
throw new AssertionFailedError("Timeout occurred"); | |||||
} | } | ||||
}; | }; | ||||
formatter.startTest(t); | formatter.startTest(t); | ||||
formatter | formatter | ||||
.addError(t, | .addError(t, | ||||
new AssertionFailedError("Timeout occured")); | |||||
new AssertionFailedError("Timeout occurred")); | |||||
formatter.endTestSuite(test); | formatter.endTestSuite(test); | ||||
} catch (IOException e) {} | } catch (IOException e) {} | ||||
@@ -113,7 +113,7 @@ public class JUnitTestRunner implements TestListener { | |||||
public static final int FAILURES = 1; | public static final int FAILURES = 1; | ||||
/** | /** | ||||
* An error occured. | |||||
* An error occurred. | |||||
*/ | */ | ||||
public static final int ERRORS = 2; | public static final int ERRORS = 2; | ||||
@@ -396,7 +396,7 @@ public class JUnitTestRunner implements TestListener { | |||||
/** | /** | ||||
* Interface TestListener. | * Interface TestListener. | ||||
* | * | ||||
* <p>An error occured while running the test. | |||||
* <p>An error occurred while running the test. | |||||
*/ | */ | ||||
public void addError(Test test, Throwable t) { | public void addError(Test test, Throwable t) { | ||||
if (haltOnError) { | if (haltOnError) { | ||||