564 |
|
public void threadAssertEquals(Object x, Object y) { |
565 |
|
try { |
566 |
|
assertEquals(x, y); |
567 |
< |
} catch (AssertionFailedError t) { |
568 |
< |
threadRecordFailure(t); |
569 |
< |
throw t; |
570 |
< |
} catch (Throwable t) { |
571 |
< |
threadUnexpectedException(t); |
567 |
> |
} catch (AssertionFailedError fail) { |
568 |
> |
threadRecordFailure(fail); |
569 |
> |
throw fail; |
570 |
> |
} catch (Throwable fail) { |
571 |
> |
threadUnexpectedException(fail); |
572 |
|
} |
573 |
|
} |
574 |
|
|
580 |
|
public void threadAssertSame(Object x, Object y) { |
581 |
|
try { |
582 |
|
assertSame(x, y); |
583 |
< |
} catch (AssertionFailedError t) { |
584 |
< |
threadRecordFailure(t); |
585 |
< |
throw t; |
583 |
> |
} catch (AssertionFailedError fail) { |
584 |
> |
threadRecordFailure(fail); |
585 |
> |
throw fail; |
586 |
|
} |
587 |
|
} |
588 |
|
|