001    package org.junit;
002    
003    import 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")
014    public 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        @Deprecated
022        public <T> AssumptionViolatedException(T actual, Matcher<T> matcher) {
023            super(actual, matcher);
024        }
025    
026        /**
027         * An assumption exception with a message with the given <i>actual</i> value and a
028         * <i>matcher</i> describing the expectation that failed.
029         */
030        @Deprecated
031        public <T> AssumptionViolatedException(String message, T actual, Matcher<T> matcher) {
032            super(message, actual, matcher);
033        }
034    
035        /**
036         * An assumption exception with the given message only.
037         */
038        public AssumptionViolatedException(String message) {
039            super(message);
040        }
041    
042        /**
043         * An assumption exception with the given message and a cause.
044         */
045        public AssumptionViolatedException(String message, Throwable t) {
046            super(message, t);
047        }
048    }