at.willhaben.willtest.util.ExceptionChecker Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
Core classes with as few dependencies as possible
package at.willhaben.willtest.util;
public class ExceptionChecker {
public static boolean isAssumptionViolation(Throwable throwable) {
String exceptionClassName = throwable.getClass().getName();
return exceptionClassName.equals("org.junit.AssumptionViolatedException") ||
exceptionClassName.equals("org.opentest4j.TestAbortedException");
}
public static boolean isAssertJMultipleFailureError(Throwable throwable) {
String exceptionClassName = throwable.getClass().getName();
return exceptionClassName.equals("org.assertj.core.error.AssertJMultipleFailuresError");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy