All Downloads are FREE. Search and download functionalities are using the official Maven repository.

at.willhaben.willtest.util.ExceptionChecker Maven / Gradle / Ivy

There is a newer version: 3.1.10
Show newest version
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