typo
This commit is contained in:
parent
2156501c49
commit
6da3499ff2
|
|
@ -37,7 +37,7 @@ import org.junit.runner.notification.RunNotifier;
|
||||||
public class AntUnitSuiteRunnerTest extends TestCase {
|
public class AntUnitSuiteRunnerTest extends TestCase {
|
||||||
|
|
||||||
private boolean mockExecutionOK = false;
|
private boolean mockExecutionOK = false;
|
||||||
private String mockExcutionError = "";
|
private String mockExecutionError = "";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validates the execution sequence.
|
* Validates the execution sequence.
|
||||||
|
|
@ -76,11 +76,11 @@ public class AntUnitSuiteRunnerTest extends TestCase {
|
||||||
|
|
||||||
public void fireTestStarted(Description description) {
|
public void fireTestStarted(Description description) {
|
||||||
if (curTest != null) {
|
if (curTest != null) {
|
||||||
mockExcutionError += "Unexpected fireTestStarted("
|
mockExecutionError += "Unexpected fireTestStarted("
|
||||||
+ description.getDisplayName() + "\n";
|
+ description.getDisplayName() + "\n";
|
||||||
}
|
}
|
||||||
if (!tDescs.contains(description)) {
|
if (!tDescs.contains(description)) {
|
||||||
mockExcutionError += "Unexpected fireTestStarted("
|
mockExecutionError += "Unexpected fireTestStarted("
|
||||||
+ description.getDisplayName() + ")\n";
|
+ description.getDisplayName() + ")\n";
|
||||||
}
|
}
|
||||||
curTest = description;
|
curTest = description;
|
||||||
|
|
@ -88,11 +88,11 @@ public class AntUnitSuiteRunnerTest extends TestCase {
|
||||||
|
|
||||||
public void fireTestFinished(Description description) {
|
public void fireTestFinished(Description description) {
|
||||||
if (curTest == null) {
|
if (curTest == null) {
|
||||||
mockExcutionError += "Unexpected fireTestFinished("
|
mockExecutionError += "Unexpected fireTestFinished("
|
||||||
+ description.getDisplayName() + "\n";
|
+ description.getDisplayName() + "\n";
|
||||||
}
|
}
|
||||||
if (!curTest.equals(description)) {
|
if (!curTest.equals(description)) {
|
||||||
mockExcutionError += "Unexpected fireTestFinished("
|
mockExecutionError += "Unexpected fireTestFinished("
|
||||||
+ description.getDisplayName() + "); expect "
|
+ description.getDisplayName() + "); expect "
|
||||||
+ curTest.getDisplayName() + "\n";
|
+ curTest.getDisplayName() + "\n";
|
||||||
}
|
}
|
||||||
|
|
@ -102,7 +102,7 @@ public class AntUnitSuiteRunnerTest extends TestCase {
|
||||||
};
|
};
|
||||||
|
|
||||||
runner.run(notifierMock);
|
runner.run(notifierMock);
|
||||||
assertTrue(mockExcutionError, mockExcutionError.length() == 0);
|
assertTrue(mockExecutionError, mockExecutionError.length() == 0);
|
||||||
assertTrue(mockExecutionOK);
|
assertTrue(mockExecutionOK);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue