public final class TestSubscriber<T> extends Object implements org.reactivestreams.Subscriber<T>
| Constructor and Description |
|---|
TestSubscriber() |
| Modifier and Type | Method and Description |
|---|---|
TestSubscriber<T> |
expectCount(Integer expected) |
TestSubscriber<T> |
expectEquals(T expected) |
TestSubscriber<T> |
expectError(Class<? extends Throwable> expected,
String format,
Object... args) |
TestSubscriber<T> |
expectErrorMatch(Class<? extends Throwable> expected,
String patternString) |
TestSubscriber<T> |
expectThat(Consumer<T> expectation) |
void |
onComplete() |
void |
onError(Throwable t) |
void |
onNext(T t) |
void |
onSubscribe(org.reactivestreams.Subscription s) |
TestSubscriber<T> |
setPerformanceCallback(Consumer<Tuple2<Long,Long>> performanceCallback) |
TestSubscriber<T> |
setPerformanceLoggerName(Supplier<String> name) |
void |
verify(Duration duration) |
public TestSubscriber<T> expectCount(Integer expected)
public TestSubscriber<T> expectEquals(T expected)
public TestSubscriber<T> expectError(Class<? extends Throwable> expected, String format, Object... args)
public TestSubscriber<T> expectErrorMatch(Class<? extends Throwable> expected, String patternString)
public TestSubscriber<T> expectThat(Consumer<T> expectation)
public void onComplete()
onComplete in interface org.reactivestreams.Subscriber<T>public void onError(Throwable t)
onError in interface org.reactivestreams.Subscriber<T>public void onSubscribe(org.reactivestreams.Subscription s)
onSubscribe in interface org.reactivestreams.Subscriber<T>public TestSubscriber<T> setPerformanceCallback(Consumer<Tuple2<Long,Long>> performanceCallback)
public TestSubscriber<T> setPerformanceLoggerName(Supplier<String> name)
public void verify(Duration duration) throws InterruptedException
InterruptedExceptionCopyright © 2016 Pivotal Software, Inc.. All rights reserved.