Class Matched<T>
- java.lang.Object
- org.assertj.core.api.Condition<T>
- org.springframework.boot.testsupport.assertj.Matched<T>
- Type Parameters:
T
- the type of object that the condition accepts
- All Implemented Interfaces:
org.assertj.core.api.Descriptable<org.assertj.core.api.Condition<T>>
public final class Matched<T> extends org.assertj.core.api.Condition<T>
Adapter class allowing a HamcrestMatcher
to be used as an AssertJCondition
.
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> org.assertj.core.api.Condition<T>
by(org.hamcrest.Matcher<? extends T> matcher)
boolean
matches(T value)
static <T> org.assertj.core.api.Condition<T>
when(org.hamcrest.Matcher<? extends T> matcher)