Package org.junit.internal
Class AssumptionViolatedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.junit.internal.AssumptionViolatedException
-
- All Implemented Interfaces:
java.io.Serializable
,org.hamcrest.SelfDescribing
- Direct Known Subclasses:
AssumptionViolatedException
public class AssumptionViolatedException extends java.lang.RuntimeException implements org.hamcrest.SelfDescribing
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 Also:
Assume
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AssumptionViolatedException(java.lang.Object value, org.hamcrest.Matcher<?> matcher)
Deprecated.Please useAssumptionViolatedException
instead.AssumptionViolatedException(java.lang.String assumption)
Deprecated.Please useAssumptionViolatedException
instead.AssumptionViolatedException(java.lang.String assumption, boolean hasValue, java.lang.Object value, org.hamcrest.Matcher<?> matcher)
Deprecated.Please useAssumptionViolatedException
instead.AssumptionViolatedException(java.lang.String assumption, java.lang.Object value, org.hamcrest.Matcher<?> matcher)
Deprecated.Please useAssumptionViolatedException
instead.AssumptionViolatedException(java.lang.String assumption, java.lang.Throwable e)
Deprecated.Please useAssumptionViolatedException
instead.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
describeTo(org.hamcrest.Description description)
java.lang.String
getMessage()
-
-
-
Constructor Detail
-
AssumptionViolatedException
@Deprecated public AssumptionViolatedException(java.lang.String assumption, boolean hasValue, java.lang.Object value, org.hamcrest.Matcher<?> matcher)
Deprecated.Please useAssumptionViolatedException
instead.
-
AssumptionViolatedException
@Deprecated public AssumptionViolatedException(java.lang.Object value, org.hamcrest.Matcher<?> matcher)
Deprecated.Please useAssumptionViolatedException
instead.An assumption exception with the given value (String or Throwable) and an additional failingMatcher
.
-
AssumptionViolatedException
@Deprecated public AssumptionViolatedException(java.lang.String assumption, java.lang.Object value, org.hamcrest.Matcher<?> matcher)
Deprecated.Please useAssumptionViolatedException
instead.An assumption exception with the given value (String or Throwable) and an additional failingMatcher
.
-
AssumptionViolatedException
@Deprecated public AssumptionViolatedException(java.lang.String assumption)
Deprecated.Please useAssumptionViolatedException
instead.An assumption exception with the given message only.
-
AssumptionViolatedException
@Deprecated public AssumptionViolatedException(java.lang.String assumption, java.lang.Throwable e)
Deprecated.Please useAssumptionViolatedException
instead.An assumption exception with the given message and a cause.
-
-