Class InternalAssumptionViolatedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.junit.internal.AssumptionViolatedException
com.carrotsearch.randomizedtesting.InternalAssumptionViolatedException
All Implemented Interfaces:
Serializable, org.hamcrest.SelfDescribing

class InternalAssumptionViolatedException extends org.junit.internal.AssumptionViolatedException
We have our own "custom" assumption class because of JUnit's internal closed-up architecture.

We currently subclass and substitute JUnit's internal AVE, but we could as well have our own exception and handle it properly in RandomizedRunner.

  • Field Details

    • message

      private final String message
  • Constructor Details

    • InternalAssumptionViolatedException

      public InternalAssumptionViolatedException(String message)
    • InternalAssumptionViolatedException

      public InternalAssumptionViolatedException(String message, Throwable t)
  • Method Details

    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class org.junit.internal.AssumptionViolatedException
    • describeTo

      public void describeTo(org.hamcrest.Description description)
      Specified by:
      describeTo in interface org.hamcrest.SelfDescribing
      Overrides:
      describeTo in class org.junit.internal.AssumptionViolatedException