public class TestSubscriber2<T>
extends rx.Subscriber<T>
public static <T> TestSubscriber2<T> createWithRequest(long initialRequest)
public void onStart()
onStart
in class rx.Subscriber<T>
public void onCompleted()
public void setProducer(rx.Producer p)
setProducer
in class rx.Subscriber<T>
public final int getCompletions()
public void onError(Throwable e)
public void onNext(T t)
public final int getValueCount()
public TestSubscriber2<T> requestMore(long n)
public TestSubscriber2<T> assertReceivedOnNext(List<T> items)
public final boolean awaitValueCount(int expected, long timeout, TimeUnit unit)
public TestSubscriber2<T> assertTerminalEvent()
public TestSubscriber2<T> assertUnsubscribed()
public TestSubscriber2<T> assertNoErrors()
public TestSubscriber2<T> awaitTerminalEvent()
public TestSubscriber2<T> awaitTerminalEvent(long timeout, TimeUnit unit)
public TestSubscriber2<T> awaitTerminalEventAndUnsubscribeOnTimeout(long timeout, TimeUnit unit)
public Thread getLastSeenThread()
public TestSubscriber2<T> assertCompleted()
public TestSubscriber2<T> assertNotCompleted()
public TestSubscriber2<T> assertError(Class<? extends Throwable> clazz)
public TestSubscriber2<T> assertError(Throwable throwable)
public TestSubscriber2<T> assertNoTerminalEvent()
public TestSubscriber2<T> assertNoValues()
public TestSubscriber2<T> assertValueCount(int count)
public TestSubscriber2<T> assertValues(T... values)
public TestSubscriber2<T> assertValue(T value)
public final TestSubscriber2<T> assertValuesAndClear(T expectedFirstValue, T... expectedRestValues)
public final TestSubscriber2<T> perform(rx.functions.Action0 action)
Copyright © 2013–2016. All rights reserved.