程序包 org.junit
类 AssumptionViolatedException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.RuntimeException
- org.junit.internal.AssumptionViolatedException
- org.junit.AssumptionViolatedException
- 所有已实现的接口:
Serializable
,SelfDescribing
public class AssumptionViolatedException extends AssumptionViolatedException
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.
构造器概要
构造器 构造器 说明 AssumptionViolatedException(String message)
An assumption exception with the given message only.AssumptionViolatedException(String assumption, Throwable t)
An assumption exception with the given message and a cause.AssumptionViolatedException(String message, T expected, Matcher<T> matcher)
An assumption exception with a message with the given actual value and a matcher describing the expectation that failed.AssumptionViolatedException(T actual, Matcher<T> matcher)
An assumption exception with the given actual value and a matcher describing the expectation that failed.
方法概要
从类继承的方法 org.junit.internal.AssumptionViolatedException
describeTo, getMessage
构造器详细资料
AssumptionViolatedException
public AssumptionViolatedException(T actual, Matcher<T> matcher)
An assumption exception with the given actual value and a matcher describing the expectation that failed.
AssumptionViolatedException
public AssumptionViolatedException(String message, T expected, Matcher<T> matcher)
An assumption exception with a message with the given actual value and a matcher describing the expectation that failed.
AssumptionViolatedException
public AssumptionViolatedException(String message)
An assumption exception with the given message only.
AssumptionViolatedException
public AssumptionViolatedException(String assumption, Throwable t)
An assumption exception with the given message and a cause.