Interface PublisherProbe<T>

A test utility that allow to easily obtain an instrumented Publisher
(Mono or Flux) for tests involving control flow. For instance, you might
have a Mono.switchIfEmpty(Mono) and you want to make sure that your code
branched into the "if empty" case. The contract of this interface does not cover what
signals the Publisher emits, although factory methods of(Publisher)
and empty() produce probes that do emit signals like a common sequence.

The PublisherProbe acts as a probe capturing subscription, cancellation and
request events. Later, it can be used post completion to check if that particular
probe was hit.

Create a PublisherProbe out of a Publisher, ensuring that its
flux() and mono() versions will propagate signals from this
publisher while capturing subscription, cancellation and request events around it.

wasRequested

of

Create a PublisherProbe out of a Publisher, ensuring that its
flux() and mono() versions will propagate signals from this
publisher while capturing subscription, cancellation and request events around it.