Class AssumptionViolatedException

All Implemented Interfaces:
Serializable, org.hamcrest.SelfDescribing
Direct Known Subclasses:
AssumptionViolatedException

public class AssumptionViolatedException extends 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:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • fAssumption

      private final String fAssumption
    • fValueMatcher

      private final boolean fValueMatcher
    • fValue

      private final Object fValue
    • fMatcher

      private final org.hamcrest.Matcher<?> fMatcher
  • Constructor Details

    • AssumptionViolatedException

      @Deprecated public AssumptionViolatedException(String assumption, boolean hasValue, Object value, org.hamcrest.Matcher<?> matcher)
      Deprecated.
      Please use AssumptionViolatedException instead.
    • AssumptionViolatedException

      @Deprecated public AssumptionViolatedException(Object value, org.hamcrest.Matcher<?> matcher)
      Deprecated.
      Please use AssumptionViolatedException instead.
      An assumption exception with the given value (String or Throwable) and an additional failing Matcher.
    • AssumptionViolatedException

      @Deprecated public AssumptionViolatedException(String assumption, Object value, org.hamcrest.Matcher<?> matcher)
      Deprecated.
      Please use AssumptionViolatedException instead.
      An assumption exception with the given value (String or Throwable) and an additional failing Matcher.
    • AssumptionViolatedException

      @Deprecated public AssumptionViolatedException(String assumption)
      Deprecated.
      Please use AssumptionViolatedException instead.
      An assumption exception with the given message only.
    • AssumptionViolatedException

      @Deprecated public AssumptionViolatedException(String assumption, Throwable e)
      Deprecated.
      Please use AssumptionViolatedException instead.
      An assumption exception with the given message and a cause.
  • Method Details

    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable
    • describeTo

      public void describeTo(org.hamcrest.Description description)
      Specified by:
      describeTo in interface org.hamcrest.SelfDescribing