Package dev.aherscu.qa.testing.utils
Class Java8Matchers
- java.lang.Object
-
- dev.aherscu.qa.testing.utils.Java8Matchers
-
public final class Java8Matchers extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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 aboolean
property of an object which should betrue
.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 aboolean
property of an object which should betrue
.static <I,O>
org.hamcrest.Matcher<I>where(String entityDescription, String propertyDescription, 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 aboolean
property of an object which should befalse
.static <I,O>
org.hamcrest.Matcher<I>whereNot(String propertyDescription, DescribablePredicate<? super I> booleanProperty)
Match aboolean
property of an object which should befalse
.
-
-
-
Method Detail
-
whereNot
public static <I,O> org.hamcrest.Matcher<I> whereNot(DescribablePredicate<? super I> booleanProperty)
Match aboolean
property of an object which should befalse
.- Parameters:
booleanProperty
- the predicate reolving theboolean
property from the object.
-
whereNot
public static <I,O> org.hamcrest.Matcher<I> whereNot(String propertyDescription, DescribablePredicate<? super I> booleanProperty)
Match aboolean
property of an object which should befalse
.- Parameters:
propertyDescription
- a description of the property.booleanProperty
- the predicate resolving theboolean
property from the object.
-
where
public static <I,O> org.hamcrest.Matcher<I> where(DescribablePredicate<? super I> booleanProperty)
Match aboolean
property of an object which should betrue
.- Parameters:
booleanProperty
- the predicate resolving theboolean
property from the object.
-
where
public static <I,O> org.hamcrest.Matcher<I> where(String propertyDescription, DescribablePredicate<? super I> booleanProperty)
Match aboolean
property of an object which should betrue
.- Parameters:
propertyDescription
- a description of the property.booleanProperty
- the predicate resolving theboolean
property from the object.
-
where
public 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.- Parameters:
property
- the function which resolves the derived value to match.matcher
- theMatcher
for the derived value.
-
where
public 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.- Parameters:
propertyDescription
- a description of the derived value.property
- the function which resolves the derived value to match.matcher
- theMatcher
for the derived value.
-
where
public static <I,O> org.hamcrest.Matcher<I> where(String entityDescription, String propertyDescription, Function<? super I,O> property, org.hamcrest.Matcher<? super O> matcher)
Match a value/property derived from an object.- Parameters:
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
- theMatcher
for the derived value.
-
-