T - Type of the Optional valuepublic class ValueMatcher<T> extends TypeSafeMatcher<Optional<T>>
Optional.| Modifier and Type | Method and Description |
|---|---|
protected void |
describeMismatchSafely(Optional<T> optinal,
Description mismatchDescription) |
void |
describeTo(Description description) |
protected boolean |
matchesSafely(Optional<T> optional) |
static <T> Matcher<Optional<T>> |
value(Matcher<T> valueMatcher)
Create a matcher for the value of the
Optional. |
describeMismatch, matches_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toStringpublic static <T> Matcher<Optional<T>> value(Matcher<T> valueMatcher)
Optional.T - Type of the Optional valuevalueMatcher - Matcher for the valueprotected boolean matchesSafely(Optional<T> optional)
matchesSafely in class TypeSafeMatcher<Optional<T>>public void describeTo(Description description)
protected void describeMismatchSafely(Optional<T> optinal, Description mismatchDescription)
describeMismatchSafely in class TypeSafeMatcher<Optional<T>>Copyright © 2022. All rights reserved.