mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
process inheritors of comparison exceptions the same way as comparison (IDEA-95469)
(cherry picked from commit ade51bec1b667357ce4b32bf4aabe03c9d41446b)
This commit is contained in:
@@ -89,8 +89,14 @@ public class JUnit4TestResultsSender extends RunListener {
|
||||
|
||||
private static boolean isComparisonFailure(Throwable throwable) {
|
||||
if (throwable == null) return false;
|
||||
final String throwableClassName = throwable.getClass().getName();
|
||||
return throwableClassName.equals(JUNIT_FRAMEWORK_COMPARISON_NAME) || throwableClassName.equals(ORG_JUNIT_COMPARISON_NAME);
|
||||
return isComparisonFailure(throwable.getClass());
|
||||
}
|
||||
|
||||
private static boolean isComparisonFailure(Class aClass) {
|
||||
if (aClass == null) return false;
|
||||
final String throwableClassName = aClass.getName();
|
||||
if (throwableClassName.equals(JUNIT_FRAMEWORK_COMPARISON_NAME) || throwableClassName.equals(ORG_JUNIT_COMPARISON_NAME)) return true;
|
||||
return isComparisonFailure(aClass.getSuperclass());
|
||||
}
|
||||
|
||||
private static boolean isAssertionError(Class throwableClass) {
|
||||
|
||||
Reference in New Issue
Block a user