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