T - the type of the Maybe.public class AssertMaybe<T> extends org.assertj.core.api.AbstractAssert<AssertMaybe<T>,io.reactivex.Maybe>
Assert class for Maybe.
Uses TestSubscriber from Rx to subscribe to Maybe and
perform assertions on the results.| Modifier and Type | Method and Description |
|---|---|
AssertMaybe<T> |
after(long duration,
java.util.concurrent.TimeUnit timeUnit)
If a
TestScheduler is provided, advanced the time by the specified duration. |
static <T> AssertMaybe<T> |
assertThat(io.reactivex.Maybe<T> maybe)
Create an
AssertMaybe instance for a Maybe. |
static <T> AssertMaybe<T> |
assertThat(io.reactivex.Maybe<T> maybe,
io.reactivex.schedulers.TestScheduler scheduler)
|
org.assertj.core.api.AbstractListAssert<?,? extends java.util.List<? extends java.lang.Throwable>,java.lang.Throwable> |
failures() |
AssertMaybe<T> |
hasCompleted()
Assert that the
Maybe has completed. |
AssertMaybe<T> |
hasNotCompleted()
Assert that the
Maybe has NOT completed. |
AssertMaybe<T> |
noValue()
Assert that the
Maybe has emitted no value. |
org.assertj.core.api.AbstractObjectAssert<?,? extends T> |
value()
Create an
ObjectAssert from the value emitted by the Maybe. |
as, as, asList, asString, describedAs, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasToString, inBinary, inHexadecimal, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, overridingErrorMessage, usingComparator, usingDefaultComparator, withFailMessage, withThreadDumpOnErrorpublic static <T> AssertMaybe<T> assertThat(io.reactivex.Maybe<T> maybe)
AssertMaybe instance for a Maybe.T - the return type of the Maybemaybe - the Maybe.public static <T> AssertMaybe<T> assertThat(io.reactivex.Maybe<T> maybe, io.reactivex.schedulers.TestScheduler scheduler)
T - the return type of the Maybemaybe - the maybescheduler - the test schedulerpublic org.assertj.core.api.AbstractObjectAssert<?,? extends T> value()
ObjectAssert from the value emitted by the Maybe.public AssertMaybe<T> noValue()
Maybe has emitted no value.public org.assertj.core.api.AbstractListAssert<?,? extends java.util.List<? extends java.lang.Throwable>,java.lang.Throwable> failures()
public AssertMaybe<T> hasCompleted()
Maybe has completed.public AssertMaybe<T> hasNotCompleted()
Maybe has NOT completed.public AssertMaybe<T> after(long duration, java.util.concurrent.TimeUnit timeUnit)
TestScheduler is provided, advanced the time by the specified duration.
Throws an IllegalStateException if there is no TestScheduler provided.
Use assertThat(Maybe, TestScheduler) to construct
an AssertMaybe instance that can be used for async testing.duration - the time durationtimeUnit - the time unit of the durationjava.lang.IllegalStateException - if called when no test scheduler was provided