程序包 | 说明 |
---|---|
reactor.test |
Main test components supporting the testing and assertion of publishers.
|
限定符和类型 | 方法和说明 |
---|---|
StepVerifier.ContextExpectations<T> |
StepVerifier.ContextExpectations.assertThat(java.util.function.Consumer<Context> assertingConsumer)
Apply custom assertions to the propagated
Context . |
StepVerifier.ContextExpectations<T> |
StepVerifier.ContextExpectations.contains(java.lang.Object key,
java.lang.Object value)
Check that the propagated
Context contains the given value associated
to the given key. |
StepVerifier.ContextExpectations<T> |
StepVerifier.ContextExpectations.containsAllOf(Context other)
|
StepVerifier.ContextExpectations<T> |
StepVerifier.ContextExpectations.containsAllOf(java.util.Map<?,?> other)
Check that the propagated
Context contains all of the key-value pairs
of the given Map . |
StepVerifier.ContextExpectations<T> |
StepVerifier.ContextExpectations.containsOnly(Context other)
|
StepVerifier.ContextExpectations<T> |
StepVerifier.ContextExpectations.containsOnly(java.util.Map<?,?> other)
Check that the propagated
Context contains all of the key-value pairs
of the given Map , and nothing else. |
StepVerifier.ContextExpectations<T> |
StepVerifier.Step.expectAccessibleContext()
Expect that after the
Subscription step, a Context has been
propagated. |
StepVerifier.ContextExpectations<T> |
StepVerifier.ContextExpectations.hasKey(java.lang.Object key)
Check that the propagated
Context contains a value for the given key. |
StepVerifier.ContextExpectations<T> |
StepVerifier.ContextExpectations.hasSize(int size)
Check that the propagated
Context is of the given size. |
StepVerifier.ContextExpectations<T> |
StepVerifier.ContextExpectations.matches(java.util.function.Predicate<Context> predicate)
Check that the propagated
Context matches a given Predicate . |
StepVerifier.ContextExpectations<T> |
StepVerifier.ContextExpectations.matches(java.util.function.Predicate<Context> predicate,
java.lang.String description)
Check that the propagated
Context matches a given Predicate
that is given a description. |