Package org.reactivestreams.tck
Class SubscriberWhiteboxVerification.BlackboxSubscriberProxy<T>
- java.lang.Object
-
- org.reactivestreams.tck.SubscriberWhiteboxVerification.BlackboxProbe<T>
-
- org.reactivestreams.tck.SubscriberWhiteboxVerification.BlackboxSubscriberProxy<T>
-
- All Implemented Interfaces:
org.reactivestreams.Subscriber<T>
,SubscriberWhiteboxVerification.SubscriberProbe<T>
- Enclosing class:
- SubscriberWhiteboxVerification<T>
public static class SubscriberWhiteboxVerification.BlackboxSubscriberProxy<T> extends SubscriberWhiteboxVerification.BlackboxProbe<T> implements org.reactivestreams.Subscriber<T>
This class is intented to be used asSubscriber
decorator and should be used inpub.subscriber(...)
calls, in order to allow intercepting calls on the underlyingSubscriber
. This delegation allows the proxy to implementSubscriberWhiteboxVerification.BlackboxProbe
assertions.
-
-
Field Summary
-
Fields inherited from class org.reactivestreams.tck.SubscriberWhiteboxVerification.BlackboxProbe
elements, env, error, subscriber
-
-
Constructor Summary
Constructors Constructor Description BlackboxSubscriberProxy(TestEnvironment env, org.reactivestreams.Subscriber<T> subscriber)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onComplete()
void
onError(java.lang.Throwable cause)
void
onNext(T t)
void
onSubscribe(org.reactivestreams.Subscription s)
-
Methods inherited from class org.reactivestreams.tck.SubscriberWhiteboxVerification.BlackboxProbe
expectCompletion, expectCompletion, expectCompletion, expectError, expectError, expectError, expectError, expectErrorWithMessage, expectNext, expectNext, expectNext, expectNone, expectNone, registerOnComplete, registerOnError, registerOnNext, sub
-
-
-
-
Constructor Detail
-
BlackboxSubscriberProxy
public BlackboxSubscriberProxy(TestEnvironment env, org.reactivestreams.Subscriber<T> subscriber)
-
-
Method Detail
-
onSubscribe
public void onSubscribe(org.reactivestreams.Subscription s)
- Specified by:
onSubscribe
in interfaceorg.reactivestreams.Subscriber<T>
-
onError
public void onError(java.lang.Throwable cause)
- Specified by:
onError
in interfaceorg.reactivestreams.Subscriber<T>
-
onComplete
public void onComplete()
- Specified by:
onComplete
in interfaceorg.reactivestreams.Subscriber<T>
-
-