mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-16 04:35:45 +02:00
cleanup: unnecessary cast fixed
This commit is contained in:
parent
fb9dff069c
commit
54f917f440
2 changed files with 2 additions and 2 deletions
|
@ -51,7 +51,7 @@ public class FailingTest extends TestCase {
|
||||||
TestResult r = new TestResult();
|
TestResult r = new TestResult();
|
||||||
test.run( r );
|
test.run( r );
|
||||||
if (r.failureCount() == 1) {
|
if (r.failureCount() == 1) {
|
||||||
TestFailure failure= (TestFailure) r.failures().nextElement();
|
TestFailure failure= r.failures().nextElement();
|
||||||
String msg= failure.exceptionMessage();
|
String msg= failure.exceptionMessage();
|
||||||
if (msg != null && msg.startsWith("Method \"" + test.getName() + "\"")) {
|
if (msg != null && msg.startsWith("Method \"" + test.getName() + "\"")) {
|
||||||
result.addFailure(this, new AssertionFailedError(msg));
|
result.addFailure(this, new AssertionFailedError(msg));
|
||||||
|
|
|
@ -197,7 +197,7 @@ public class BaseTestCase extends TestCase {
|
||||||
TestResult r = new TestResult();
|
TestResult r = new TestResult();
|
||||||
super.run(r);
|
super.run(r);
|
||||||
if (r.failureCount() == 1) {
|
if (r.failureCount() == 1) {
|
||||||
TestFailure failure= (TestFailure) r.failures().nextElement();
|
TestFailure failure= r.failures().nextElement();
|
||||||
String msg= failure.exceptionMessage();
|
String msg= failure.exceptionMessage();
|
||||||
if (msg != null && msg.startsWith("Method \"" + getName() + "\"")) {
|
if (msg != null && msg.startsWith("Method \"" + getName() + "\"")) {
|
||||||
result.addFailure(this, new AssertionFailedError(msg));
|
result.addFailure(this, new AssertionFailedError(msg));
|
||||||
|
|
Loading…
Add table
Reference in a new issue