public final class Java8Matchers extends Object
| Modifier and Type | Method and Description |
|---|---|
static <I,O> org.hamcrest.Matcher<I> |
where(DescribableFunction<? super I,O> property,
org.hamcrest.Matcher<? super O> matcher)
Match a value/property derived from an object.
|
static <I,O> org.hamcrest.Matcher<I> |
where(DescribablePredicate<? super I> booleanProperty)
Match a
boolean property of an object which should be true. |
static <I,O> org.hamcrest.Matcher<I> |
where(String propertyDescription,
DescribableFunction<? super I,O> property,
org.hamcrest.Matcher<? super O> matcher)
Match a value/property derived from an object.
|
static <I,O> org.hamcrest.Matcher<I> |
where(String propertyDescription,
DescribablePredicate<? super I> booleanProperty)
Match a
boolean property of an object which should be true. |
static <I,O> org.hamcrest.Matcher<I> |
where(String entityDescription,
String propertyDescription,
java.util.function.Function<? super I,O> property,
org.hamcrest.Matcher<? super O> matcher)
Match a value/property derived from an object.
|
static <I,O> org.hamcrest.Matcher<I> |
whereNot(DescribablePredicate<? super I> booleanProperty)
Match a
boolean property of an object which should be false. |
static <I,O> org.hamcrest.Matcher<I> |
whereNot(String propertyDescription,
DescribablePredicate<? super I> booleanProperty)
Match a
boolean property of an object which should be false. |
public static <I,O> org.hamcrest.Matcher<I> whereNot(DescribablePredicate<? super I> booleanProperty)
boolean property of an object which should be false.booleanProperty - the predicate reolving the boolean property from the object.public static <I,O> org.hamcrest.Matcher<I> whereNot(String propertyDescription, DescribablePredicate<? super I> booleanProperty)
boolean property of an object which should be false.propertyDescription - a description of the property.booleanProperty - the predicate resolving the boolean property from the object.public static <I,O> org.hamcrest.Matcher<I> where(DescribablePredicate<? super I> booleanProperty)
boolean property of an object which should be true.booleanProperty - the predicate resolving the boolean property from the object.public static <I,O> org.hamcrest.Matcher<I> where(String propertyDescription, DescribablePredicate<? super I> booleanProperty)
boolean property of an object which should be true.propertyDescription - a description of the property.booleanProperty - the predicate resolving the boolean property from the object.public static <I,O> org.hamcrest.Matcher<I> where(DescribableFunction<? super I,O> property, org.hamcrest.Matcher<? super O> matcher)
property - the function which resolves the derived value to match.matcher - the Matcher for the derived value.public static <I,O> org.hamcrest.Matcher<I> where(String propertyDescription, DescribableFunction<? super I,O> property, org.hamcrest.Matcher<? super O> matcher)
propertyDescription - a description of the derived value.property - the function which resolves the derived value to match.matcher - the Matcher for the derived value.public static <I,O> org.hamcrest.Matcher<I> where(String entityDescription, String propertyDescription, java.util.function.Function<? super I,O> property, org.hamcrest.Matcher<? super O> matcher)
entityDescription - a description of the object the matched value is derived from.propertyDescription - a description of the derived value.property - the function which resolves the derived value to match.matcher - the Matcher for the derived value.Copyright © 2018. All rights reserved.