Deprecated
use the TestSubscriber instead.
| Modifier and Type | Field and Description |
|---|---|
| private final Observer | |
| private static final Observer | |
| private final List | |
| private final List | |
| private final List |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv final void | assertionError(String
the message to use for the error message)Combines an assertion error message with the current completion and error state of this TestSubscriber, giving more information when some assertXXX check fails. |
| public void | assertReceivedOnNext(List<T>
the sequence of items expected to have been observed items)Assert that a particular sequence of items was received in order. |
| public void | |
| public List | Returns: aList containing one item for each item or notification received by this observer, in
the order in which they were observed or receivedGet a list containing all of the items and notifications received by this observer, where the items
will be given as-is, any error notifications will be represented by their |
| public List | Returns: a list of Notifications representing calls to this observer'sonCompleted methodGet the |
| public List | Returns: a list of Throwables passed to this observer'sonError methodGet the |
| public List | Returns: a list of items observed by this observer, in the order in which they were observedGet the sequence of items observed by this observer, as an ordered |
| public void | onCompleted()
Implements rx. Observable has finished sending push-based notifications.
|
| public void | onError(Throwable
the exception encountered by the Observable e)Implements rx. Observable has experienced an error condition.
|
| public void | onNext(T
the item emitted by the Observable t)Implements rx. |
| delegate | back to summary |
|---|---|
| private final Observer<T> delegate | |
| INERT | back to summary |
|---|---|
| private static final Observer<Object> INERT | |
| onCompletedEvents | back to summary |
|---|---|
| private final List<Notification<T>> onCompletedEvents | |
| onErrorEvents | back to summary |
|---|---|
| private final List<Throwable> onErrorEvents | |
| onNextEvents | back to summary |
|---|---|
| private final List<T> onNextEvents | |
| TestObserver | back to summary |
|---|---|
| public TestObserver(Observer<T> delegate) | |
| TestObserver | back to summary |
|---|---|
public TestObserver()
| |
| assertionError | back to summary |
|---|---|
| pack-priv final void assertionError(String message) Combines an assertion error message with the current completion and error state of this TestSubscriber, giving more information when some assertXXX check fails.
| |
| assertReceivedOnNext | back to summary |
|---|---|
| public void assertReceivedOnNext(List<T> items) Assert that a particular sequence of items was received in order.
| |
| assertTerminalEvent | back to summary |
|---|---|
| public void assertTerminalEvent() Assert that a single terminal event occurred, either
| |
| getEvents | back to summary |
|---|---|
| public List Get a list containing all of the items and notifications received by this observer, where the items
will be given as-is, any error notifications will be represented by their | |
| getOnCompletedEvents | back to summary |
|---|---|
| public List Get the
| |
| getOnErrorEvents | back to summary |
|---|---|
| public List Get the | |
| getOnNextEvents | back to summary |
|---|---|
| public List Get the sequence of items observed by this observer, as an ordered
| |
| onCompleted | back to summary |
|---|---|
| public void onCompleted() Implements rx. Doc from rx. Notifies the Observer that the
The
| |
| onError | back to summary |
|---|---|
| public void onError(Throwable e) Implements rx. Doc from rx. Notifies the Observer that the
If the | |
| onNext | back to summary |
|---|---|
| public void onNext(T t) Implements rx. Doc from rx. Provides the Observer with a new item to observe.
The
The
| |