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

org.junit.AssumptionViolatedException Maven / Gradle / Ivy

There is a newer version: 2.12.15
Show newest version
package org.junit;

import org.hamcrest.Matcher;

/**
 * An exception class used to implement assumptions (state in which a given test
 * is meaningful and should or should not be executed). A test for which an assumption
 * fails should not generate a test case failure.
 *
 * @see org.junit.Assume
 * @since 4.12
 */
@SuppressWarnings("deprecation")
public class AssumptionViolatedException extends org.junit.internal.AssumptionViolatedException {
    private static final long serialVersionUID = 1L;

    /**
     * An assumption exception with the given actual value and a matcher describing 
     * the expectation that failed.
     */
    public  AssumptionViolatedException(T actual, Matcher matcher) {
        super(actual, matcher);
    }

    /**
     * An assumption exception with a message with the given actual value and a
     * matcher describing the expectation that failed.
     */
    public  AssumptionViolatedException(String message, T expected, Matcher matcher) {
        super(message, expected, matcher);
    }

    /**
     * An assumption exception with the given message only.
     */
    public AssumptionViolatedException(String message) {
        super(message);
    }

    /**
     * An assumption exception with the given message and a cause.
     */
    public AssumptionViolatedException(String assumption, Throwable t) {
        super(assumption, t);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy