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:
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
-
Constructor Summary
Constructors Constructor Description InternalAssumptionViolatedException(java.lang.String message)
InternalAssumptionViolatedException(java.lang.String message, java.lang.Throwable t)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
describeTo(org.hamcrest.Description description)
java.lang.String
getMessage()
-
-
-
Method Detail
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in classorg.junit.internal.AssumptionViolatedException
-
describeTo
public void describeTo(org.hamcrest.Description description)
- Specified by:
describeTo
in interfaceorg.hamcrest.SelfDescribing
- Overrides:
describeTo
in classorg.junit.internal.AssumptionViolatedException
-
-