Package reactor.test
@NullMarked
package reactor.test
Main test components supporting the testing and assertion of publishers.
-
ClassDescriptionA
StepVerifierprovides a declarative way of creating a verifiable script for an asyncPublishersequence, by expressing expectations about the events that will happen upon subscription.Exposes post-verification state assertions.Allow to set expectations about theContextpropagated during theSubscriptionphase.Define a builder for explicitly expecting an initializingSubscriptionas first signal.Define a builder for terminal states.Define a builder for expecting main sequence individual signals.Options for aStepVerifier, including the initial request amount,VirtualTimeSchedulersupplier and toggles for some checks.An utility class to createValueFormatters.ToStringConverterFunctionthat convert objects toString.ValueFormatters.Extractor<CONTAINER>An extractor of data wrapped in aBiFunctionaiming at producing a customizedStringrepresentation of a container type and its contained elements, each element being potentially itself converted toStringusing aValueFormatters.ToStringConverter: it only considers specific container types, seeValueFormatters.Extractor.getTargetClass()it can further filter these container instances usingValueFormatters.Extractor.matches(Object)it can be applied to arbitrary objects, as it will default toString.valueOf(Object)on non-matching containers it can apply aValueFormatters.ToStringConverterto the content, passed as the second parameter of theBiFunctionit reconstructs theStringrepresentation of the container byexplodingit and thenjoiningit with {#code ", "} delimiter, as well as customValueFormatters.Extractor.prefix(Object)andValueFormatters.Extractor.suffix(Object)