public class OptionalSubject<T> extends Subject<OptionalSubject<T>,com.google.common.base.Optional<T>>
Optional
<T>
subjects.Subject.HasField
failureStrategy
Modifier and Type | Method | Description |
---|---|---|
void |
hasValue(Object expected) |
Fails if the
Optional <T> does not have the given value. |
void |
isAbsent() |
Fails if the
Optional <T> is present. |
void |
isPresent() |
Fails if the
Optional <T> is absent. |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
check, equals, fail, fail, fail, failWithBadResults, failWithCustomSubject, failWithoutSubject, failWithRawMessage, getDisplaySubject, getSubject, hasField, hashCode, internalCustomName, is, isA, isEqualTo, isInstanceOf, isNotA, isNotEqualTo, isNotInstanceOf, isNotNull, isNotSameAs, isNull, isSameAs, labeled, named
public void isPresent()
Optional
<T>
is absent.public void isAbsent()
Optional
<T>
is present.public void hasValue(Object expected)
Optional
<T>
does not have the given value.Copyright © 2019. All rights reserved.