程序包 org.hamcrest
类 Condition<T>
- java.lang.Object
- org.hamcrest.Condition<T>
public abstract class Condition<T> extends Object
A Condition implements part of a multi-step match. We sometimes need to write matchers that have a sequence of steps, where each step depends on the result of the previous step and we can stop processing as soon as a step fails. These classes provide infrastructure for writing such a sequence. Based on https://github.com/npryce/maybe-java
嵌套类概要
嵌套类 修饰符和类型 类 说明 static interface
Condition.Step<I,O>
字段概要
字段 修饰符和类型 字段 说明 static org.hamcrest.Condition.NotMatched<Object>
NOT_MATCHED
方法概要
所有方法 静态方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 abstract <U> Condition<U>
and(Condition.Step<? super T,U> mapping)
static <T> Condition<T>
matched(T theValue, Description mismatch)
boolean
matching(Matcher<T> match)
abstract boolean
matching(Matcher<T> match, String message)
static <T> Condition<T>
notMatched()
<U> Condition<U>
then(Condition.Step<? super T,U> mapping)
字段详细资料
NOT_MATCHED
public static final org.hamcrest.Condition.NotMatched<Object> NOT_MATCHED
方法详细资料
and
public abstract <U> Condition<U> and(Condition.Step<? super T,U> mapping)
then
public final <U> Condition<U> then(Condition.Step<? super T,U> mapping)
notMatched
public static <T> Condition<T> notMatched()
matched
public static <T> Condition<T> matched(T theValue, Description mismatch)