Class SubscriberWhiteboxVerification.BlackboxProbe<T>
java.lang.Object
org.reactivestreams.tck.SubscriberWhiteboxVerification.BlackboxProbe<T>
- All Implemented Interfaces:
SubscriberWhiteboxVerification.SubscriberProbe<T>
- Direct Known Subclasses:
SubscriberWhiteboxVerification.BlackboxSubscriberProxy, SubscriberWhiteboxVerification.WhiteboxSubscriberProbe
- Enclosing class:
SubscriberWhiteboxVerification<T>
public static class SubscriberWhiteboxVerification.BlackboxProbe<T>
extends Object
implements SubscriberWhiteboxVerification.SubscriberProbe<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final TestEnvironment.Receptacle<T> protected final TestEnvironmentprotected final TestEnvironment.Promise<Throwable> protected final TestEnvironment.Promise<Subscriber<? super T>> -
Constructor Summary
ConstructorsConstructorDescriptionBlackboxProbe(TestEnvironment env, TestEnvironment.Promise<Subscriber<? super T>> subscriber) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidexpectCompletion(long timeoutMillis) voidexpectCompletion(long timeoutMillis, String msg) <E extends Throwable>
EexpectError(Class<E> expected) <E extends Throwable>
EexpectError(Class<E> expected, long timeoutMillis) voidexpectError(Throwable expected) voidexpectError(Throwable expected, long timeoutMillis) <E extends Throwable>
voidexpectErrorWithMessage(Class<E> expected, String requiredMessagePart) voidexpectNext(T expected) voidexpectNext(T expected, long timeoutMillis) voidvoidexpectNone(long withinMillis) voidMust be called by the test subscriber when it has received an `onComplete` event.voidregisterOnError(Throwable cause) Must be called by the test subscriber when it has received an `onError` event.voidregisterOnNext(T element) Must be called by the test subscriber when it has received an`onNext` event.Subscriber<? super T> sub()
-
Field Details
-
env
-
subscriber
-
elements
-
error
-
-
Constructor Details
-
BlackboxProbe
public BlackboxProbe(TestEnvironment env, TestEnvironment.Promise<Subscriber<? super T>> subscriber)
-
-
Method Details
-
registerOnNext
Description copied from interface:SubscriberWhiteboxVerification.SubscriberProbeMust be called by the test subscriber when it has received an`onNext` event.- Specified by:
registerOnNextin interfaceSubscriberWhiteboxVerification.SubscriberProbe<T>
-
registerOnComplete
public void registerOnComplete()Description copied from interface:SubscriberWhiteboxVerification.SubscriberProbeMust be called by the test subscriber when it has received an `onComplete` event.- Specified by:
registerOnCompletein interfaceSubscriberWhiteboxVerification.SubscriberProbe<T>
-
registerOnError
Description copied from interface:SubscriberWhiteboxVerification.SubscriberProbeMust be called by the test subscriber when it has received an `onError` event.- Specified by:
registerOnErrorin interfaceSubscriberWhiteboxVerification.SubscriberProbe<T>
-
expectNext
- Throws:
InterruptedException
-
expectNext
- Throws:
InterruptedException
-
expectNext
- Throws:
InterruptedException
-
sub
-
expectCompletion
- Throws:
InterruptedException
-
expectCompletion
- Throws:
InterruptedException
-
expectCompletion
- Throws:
InterruptedException
-
expectErrorWithMessage
public <E extends Throwable> void expectErrorWithMessage(Class<E> expected, String requiredMessagePart) throws InterruptedException - Throws:
InterruptedException
-
expectError
- Throws:
InterruptedException
-
expectError
public <E extends Throwable> E expectError(Class<E> expected, long timeoutMillis) throws InterruptedException - Throws:
InterruptedException
-
expectError
- Throws:
InterruptedException
-
expectError
- Throws:
InterruptedException
-
expectNone
- Throws:
InterruptedException
-
expectNone
- Throws:
InterruptedException
-