public class AssertCompletable extends org.assertj.core.api.AbstractAssert<AssertCompletable,io.reactivex.Completable>
Assert class for Completable.
Uses TestSubscriber from Rx to subscribe to Completable and
perform assertions on the results.| Modifier and Type | Method and Description |
|---|---|
AssertCompletable |
after(long duration,
java.util.concurrent.TimeUnit timeUnit)
If a
TestScheduler is provided, advanced the time by the specified duration. |
static AssertCompletable |
assertThat(io.reactivex.Completable completable)
Create an
AssertCompletable instance for a Completable. |
static AssertCompletable |
assertThat(io.reactivex.Completable completable,
io.reactivex.schedulers.TestScheduler scheduler)
|
org.assertj.core.api.AbstractListAssert<?,? extends java.util.List<? extends java.lang.Throwable>,java.lang.Throwable> |
failures()
Create a
ListAssert from the error(s) emitted by the Completable. |
AssertCompletable |
hasCompleted()
Assert that the
AssertCompletable has completed. |
AssertCompletable |
hasNotCompleted()
Assert that the underlying
AssertCompletable has *not* completed. |
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 AssertCompletable assertThat(io.reactivex.Completable completable)
AssertCompletable instance for a Completable.completable - the Completable.public static AssertCompletable assertThat(io.reactivex.Completable completable, io.reactivex.schedulers.TestScheduler scheduler)
completable - the Completablescheduler - the test schedulerpublic AssertCompletable 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 AssertCompletable(Completable, TestScheduler) to construct
an AssertCompletable instance that can be used for async testing.duration - the time durationtimeUnit - the time unit of the durationpublic AssertCompletable hasCompleted()
AssertCompletable has completed.public AssertCompletable hasNotCompleted()
AssertCompletable has *not* completed.public org.assertj.core.api.AbstractListAssert<?,? extends java.util.List<? extends java.lang.Throwable>,java.lang.Throwable> failures()
ListAssert from the error(s) emitted by the Completable.