public final class OptionalLongSubject extends Subject
OptionalLong subjects.| Modifier and Type | Method and Description |
|---|---|
void |
hasValue(long expected)
Fails if the
OptionalLong does not have the given value or the subject is null. |
void |
isEmpty()
Fails if the
OptionalLong is present or the subject is null. |
void |
isPresent()
Fails if the
OptionalLong is empty or the subject is null. |
static Subject.Factory<OptionalLongSubject,OptionalLong> |
optionalLongs() |
actualCustomStringRepresentation, check, equals, failWithActual, failWithActual, failWithoutActual, hashCode, ignoreCheck, isAnyOf, isEqualTo, isIn, isInstanceOf, isNoneOf, isNotEqualTo, isNotIn, isNotInstanceOf, isNotNull, isNotSameInstanceAs, isNull, isSameInstanceAs, toStringpublic void isPresent()
OptionalLong is empty or the subject is null.public void isEmpty()
OptionalLong is present or the subject is null.public void hasValue(long expected)
OptionalLong does not have the given value or the subject is null. More
sophisticated comparisons can be done using assertThat(optional.getAsLong())….public static Subject.Factory<OptionalLongSubject,OptionalLong> optionalLongs()
Copyright © 2020. All rights reserved.