程序包 | 说明 |
---|---|
reactor.test |
Main test components supporting the testing and assertion of publishers.
|
限定符和类型 | 字段和说明 |
---|---|
static ValueFormatters.ToStringConverter |
ValueFormatters.DURATION_CONVERTER
Default
Duration ValueFormatters.ToStringConverter that removes the PT prefix and
switches to lower case . |
限定符和类型 | 方法和说明 |
---|---|
static ValueFormatters.ToStringConverter |
ValueFormatters.filtering(java.util.function.Predicate<java.lang.Object> predicate,
java.util.function.Function<java.lang.Object,java.lang.String> anyToString)
Create a value formatter that applies the given String conversion
Function
only to objects matching a given Predicate |
static <T> ValueFormatters.ToStringConverter |
ValueFormatters.forClass(java.lang.Class<T> tClass,
java.util.function.Function<T,java.lang.String> tToString)
Create a value formatter that is specific to a particular
Class , applying
the given String conversion Function provided the object is an instance of
that Class. |
static <T> ValueFormatters.ToStringConverter |
ValueFormatters.forClassMatching(java.lang.Class<T> tClass,
java.util.function.Predicate<T> tPredicate,
java.util.function.Function<T,java.lang.String> tToString)
Create a value formatter that is specific to a particular
Class and filters
based on a provided Predicate . |
ValueFormatters.ToStringConverter |
StepVerifierOptions.getValueFormatter()
Get the custom object formatter to use when producing messages.
|
限定符和类型 | 方法和说明 |
---|---|
StepVerifierOptions |
StepVerifierOptions.valueFormatter(ValueFormatters.ToStringConverter valueFormatter)
Set up a custom value formatter to be used in error messages when presenting
expected and actual values.
|