001package org.junit;
002
003import org.hamcrest.Matcher;
004
005/**
006 * An exception class used to implement <i>assumptions</i> (state in which a given test
007 * is meaningful and should or should not be executed). A test for which an assumption
008 * fails should not generate a test case failure.
009 *
010 * @see org.junit.Assume
011 * @since 4.12
012 */
013@SuppressWarnings("deprecation")
014public class AssumptionViolatedException extends org.junit.internal.AssumptionViolatedException {
015    private static final long serialVersionUID = 1L;
016
017    /**
018     * An assumption exception with the given <i>actual</i> value and a <i>matcher</i> describing 
019     * the expectation that failed.
020     */
021    public <T> AssumptionViolatedException(T actual, Matcher<T> matcher) {
022        super(actual, matcher);
023    }
024
025    /**
026     * An assumption exception with a message with the given <i>actual</i> value and a
027     * <i>matcher</i> describing the expectation that failed.
028     */
029    public <T> AssumptionViolatedException(String message, T expected, Matcher<T> matcher) {
030        super(message, expected, matcher);
031    }
032
033    /**
034     * An assumption exception with the given message only.
035     */
036    public AssumptionViolatedException(String message) {
037        super(message);
038    }
039
040    /**
041     * An assumption exception with the given message and a cause.
042     */
043    public AssumptionViolatedException(String message, Throwable t) {
044        super(message, t);
045    }
046}