public final class OptionalMatchers extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> org.hamcrest.Matcher<Optional<T>> |
emptyOptional()
Creates a Matcher that matches empty Optionals.
|
static org.hamcrest.Matcher<Optional<?>> |
optionalWithValue()
Creates a Matcher that matches any Optional with a value.
|
static <T> org.hamcrest.Matcher<Optional<? extends T>> |
optionalWithValue(org.hamcrest.Matcher<T> matcher)
Creates a Matcher that matches an Optional with a value that matches the given Matcher.
|
public static <T> org.hamcrest.Matcher<Optional<T>> emptyOptional()
public static org.hamcrest.Matcher<Optional<?>> optionalWithValue()
public static <T> org.hamcrest.Matcher<Optional<? extends T>> optionalWithValue(org.hamcrest.Matcher<T> matcher)
Copyright © 2017. All rights reserved.