public final class GuavaOptionalSubject extends Subject<GuavaOptionalSubject,Optional<?>>
Optional
subjects.
If you are looking for a java.util.Optional
subject, please read
faq#java8
Modifier and Type | Method and Description |
---|---|
void |
hasValue(Object expected)
Fails if the
Optional <T> does not have the given value or the subject is null. |
void |
isAbsent()
Fails if the
Optional <T> is present or the subject is null. |
void |
isPresent()
Fails if the
Optional <T> is absent or the subject is null. |
actual, actualAsString, actualCustomStringRepresentation, check, check, equals, fail, fail, fail, failComparing, failComparing, failWithActual, failWithActual, failWithBadResults, failWithCustomSubject, failWithoutActual, failWithoutActual, failWithoutSubject, failWithRawMessage, failWithRawMessageAndCause, getSubject, hashCode, ignoreCheck, internalCustomName, isAnyOf, isEqualTo, isIn, isInstanceOf, isNoneOf, isNotEqualTo, isNotIn, isNotInstanceOf, isNotNull, isNotSameAs, isNull, isSameAs, named, toString
Copyright © 2018. All rights reserved.