Skip to content

TCK Improvement: Throw meaningful error in white box subscriber verification when Probe.registerOnSubscribe isn't called #416

Closed
@jroper

Description

@jroper

Currently, none of the the SubscriberWhiteboxVerification tests check whether WhiteboxSubscriberProbe.registerOnSubscribe is invoked before it starts trying to use the puppet supplied by that invocation. So, if it wasn't invoked, it just throws an NPE:

java.lang.NullPointerException
	at org.reactivestreams.tck.SubscriberWhiteboxVerification$1.run(SubscriberWhiteboxVerification.java:83)
	at org.reactivestreams.tck.SubscriberWhiteboxVerification.subscriberTest(SubscriberWhiteboxVerification.java:497)
	at org.reactivestreams.tck.SubscriberWhiteboxVerification.required_exerciseWhiteboxHappyPath(SubscriberWhiteboxVerification.java:80)

It would be nice if this was checked, and a meaningful error message (saying that registerOnSubscribe hasn't been invoked) was thrown.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions