Class InternalAssumptionViolatedException

  • All Implemented Interfaces:
    java.io.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 Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String message  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void describeTo​(org.hamcrest.Description description)  
      java.lang.String getMessage()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • message

        private final java.lang.String message
    • Constructor Detail

      • InternalAssumptionViolatedException

        public InternalAssumptionViolatedException​(java.lang.String message)
      • InternalAssumptionViolatedException

        public InternalAssumptionViolatedException​(java.lang.String message,
                                                   java.lang.Throwable t)
    • Method Detail

      • getMessage

        public java.lang.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