org.hamcrest
Class Condition
java.lang.Object
org.hamcrest.Condition
public abstract class Condition
- 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NOT_MATCHED
public static final org.hamcrest.Condition.NotMatched<Object> NOT_MATCHED
matching
public abstract boolean matching(Matcher<T> match,
String message)
and
public abstract Condition and(Condition.Step super T,U> mapping)
matching
public final boolean matching(Matcher<T> match)
then
public final Condition then(Condition.Step super T,U> mapping)
notMatched
public static Condition notMatched()
matched
public static Condition matched(T theValue,
Description mismatch)
Copyright © 2002–2016 JUnit. All rights reserved.