Browse Source

Fixed spelling. ie occured -> occurred

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273493 13f79535-47bb-0310-9956-ffa450edef68
master
Stephane Bailliez 22 years ago
parent
commit
bd48fb28be
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java
  2. +2
    -2
      src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner.java

+ 2
- 2
src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java View File

@@ -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) {}


+ 2
- 2
src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner.java View File

@@ -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) {


Loading…
Cancel
Save