public class NotificationMatchers
extends java.lang.Object
| Constructor and Description |
|---|
NotificationMatchers() |
| Modifier and Type | Method and Description |
|---|---|
static org.hamcrest.Matcher<rx.Notification> |
isCompletion()
A matcher that matches onCompleted Notifications
|
static org.hamcrest.Matcher<rx.Notification> |
isError(java.lang.Class<? extends java.lang.Throwable> errorClass)
A matcher that matches OnError notifications with a Throwable that is an instance of the given Class
|
static org.hamcrest.Matcher<rx.Notification> |
isErrorThat(org.hamcrest.Matcher<? extends java.lang.Throwable> errorMatcher)
A matcher that matches OnError notifications with a Throwable matching the given matcher
|
static org.hamcrest.Matcher<rx.Notification> |
isValue(java.lang.Object value)
A matcher that matches OnNext notifications with a value equal to the given value
|
static org.hamcrest.Matcher<rx.Notification> |
isValueThat(org.hamcrest.Matcher valueMatcher)
A matcher that matches OnNext notifications with a value matching the given matcher
|
public static org.hamcrest.Matcher<rx.Notification> isValueThat(org.hamcrest.Matcher valueMatcher)
valueMatcher - The matcher used to match the value of the OnNext Notificationpublic static org.hamcrest.Matcher<rx.Notification> isValue(java.lang.Object value)
value - The value compared to the value of the OnNext notificationpublic static org.hamcrest.Matcher<rx.Notification> isErrorThat(org.hamcrest.Matcher<? extends java.lang.Throwable> errorMatcher)
errorMatcher - The matcher used to match the Throwable of the OnError Notificationpublic static org.hamcrest.Matcher<rx.Notification> isError(java.lang.Class<? extends java.lang.Throwable> errorClass)
errorClass - The Class used to match the onError Notification's Throwablepublic static org.hamcrest.Matcher<rx.Notification> isCompletion()